ImageFileCollection([location, keywords, ...]) | Representation of a collection of image files. |
Base class for grouping images hierarchically into a tree based on metadata
This class can be used directly, though subclasses for a few common cases are provided in this package.
Parameters: | table : astropy.table.Table instance
tree_keys : list of str
index_key : str
|
---|---|
Raises: | TypeError
|
Attributes
table | astropy.table.Table of metadata used to group rows. |
tree_keys | list of str, Table columns to be used in grouping the rows. |
index_key | str, Name of column whose values uniquely identify each row. |
Walk the grouped tree
The functionality provided is similar to that in os.walk: starting at the top of tree, yield a tuple of return values indicating parents, children and rows at each level of the tree.
Parameters: | None |
---|---|
Returns: | parents, children, index : lists parents : list
children : list
index : list
|
FITS image with WCS
A FITS images with a few convenience methods defined, including easy access to WCS transforms.
Parameters: | filepath : str
kwd : dict, optional
|
---|
Attributes
data | Image data; will be scaled by default using BZERO and BSCALE |
header | FITS header for this file |
wcs | WCS object for this file |
Save FITS file.
Parameters: | fname : str
clobber : bool, optional
|
---|
Shift image by an integer number of pixels without interpolation.
Parameters: | int_shift : list-like of two integers
in_place : bool, optional
|
---|---|
Raises: | ValueError
|
Wrapper around astropy.wcs function that handles a single tuple gracefully.
Parameters: | pix : numpy array either of dimension 2 (e.g. [xpix, ypix]) or Nx2
|
---|---|
Returns: | numpy.ndarray with same shape as pix.
|
Wrapper around astropy.wcs function that handles a single tuple gracefully.
Parameters: | sky : numpy array either of dimension 2 (e.g. [xpix, ypix]) or Nx2
|
---|---|
Returns: | numpy.ndarray with same shape as sky.
|