Reference/API#
astropy.nddata Package#
The astropy.nddata
subpackage provides the NDData
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, …). This is more than
just numpy.ndarray
objects, because it provides metadata that cannot
be easily provided by a single array.
Functions#
|
Add a smaller array at a given position in a larger array. |
|
Converts an array of bit fields to a boolean (or integer) mask array according to a bit mask constructed from the supplied bit flags (see |
|
Downsample a data array by applying a function to local blocks. |
|
Upsample a data array by block replication. |
|
A convenience function for creating bit flags maps by subclassing an existing map and adding additional flags supplied as keyword arguments. |
|
Extract a smaller array of the given shape and position from a larger array. |
|
Generate a CCDData object from a FITS file. |
|
Write CCDData object to FITS file. |
|
Converts input bit flags to a single integer value (bit mask) or |
|
Get slices for the overlapping part of a small and a large array. |
|
Reshape a data array into blocks. |
|
Convert decimal points to indices, given a subsampling factor. |
|
Decorator to wrap functions that could accept an NDData instance with its properties passed as function arguments. |
Classes#
A base class for bit flag name maps used to describe data quality (DQ) flags of images by provinding a mapping from a mnemonic flag name to a flag value. |
|
|
A class describing basic CCD data. |
|
Configuration parameters for |
|
Create a cutout object from a 2D array. |
|
The purpose of this class is to provide a dictionary for containing arrays of flags for the |
This exception should be used to indicate cases in which uncertainties with two different classes can not be propagated. |
|
Indicates that a value is not an integer that is a power of 2. |
|
|
Inverse variance uncertainty assuming first order Gaussian error propagation. |
This exception should be used to indicate that an uncertainty instance has not been associated with a parent |
|
Mixin class to add arithmetic to an NDData object. |
|
|
A container for |
|
An |
Base metaclass that defines the interface for N-dimensional datasets with associated meta information used in |
|
|
Implements |
Mixin class to connect NDData to the astropy input/output registry. |
|
Mixin to provide slicing on objects using the |
|
|
This is the metaclass for uncertainty classes used with |
Raised when determining the overlap of non-overlapping arrays. |
|
Raised when arrays only partially overlap. |
|
|
Standard deviation uncertainty assuming first order gaussian error propagation. |
|
This class implements any unknown uncertainty type. |
|
Variance uncertainty assuming first order Gaussian error propagation. |
astropy.nddata.bitmask Module#
A module that provides functions for manipulating bit masks and data quality (DQ) arrays.
Functions#
|
Converts an array of bit fields to a boolean (or integer) mask array according to a bit mask constructed from the supplied bit flags (see |
|
Converts input bit flags to a single integer value (bit mask) or |
|
A convenience function for creating bit flags maps by subclassing an existing map and adding additional flags supplied as keyword arguments. |
Classes#
A base class for bit flag name maps used to describe data quality (DQ) flags of images by provinding a mapping from a mnemonic flag name to a flag value. |
|
Indicates that a value is not an integer that is a power of 2. |
astropy.nddata.utils Module#
This module includes helper functions for array operations.
Functions#
|
Extract a smaller array of the given shape and position from a larger array. |
|
Add a smaller array at a given position in a larger array. |
|
Convert decimal points to indices, given a subsampling factor. |
|
Get slices for the overlapping part of a small and a large array. |
Classes#
Raised when determining the overlap of non-overlapping arrays. |
|
Raised when arrays only partially overlap. |
|
|
Create a cutout object from a 2D array. |