Image#
- class prose.Image#
Image object containing image data and metadata.
This is a Python Data Class, so that most attributes described below can be used as keyword-arguments when instantiated.
Methods
__init__([data, metadata, catalogs, ...])asdict([image_dtype, low_data])copy([data])Copy of image object
cutout(coords, shape[, wcs, sources, ...])Return a cutout Image instance.
data_cutouts(sources, shape)Extract cutouts from image.
get(name)Get computed value
load(filepath)Load an image from a file.
plot_catalog(name[, color, label, n])Plot catalog stars
plot_model(data[, figsize, cmap, c, contour])Plot the data and a model side by side.
save(filepath[, image_dtype, low_data])Save the image to a file using pickle.
set(name, value)Set a computed value
show([cmap, ax, figsize, zscale, frame, ...])Show image data
writeto(destination)Write image to FITS file
Attributes
catalogsCatalogs associated with the image contained in a dictionary of pandas dataframes
computedA dictionary containing any user and block-defined attributes
dataImage data
datedatetime of the observation
decDeclination as an astropy Quantity
discardWhether image as been discarded by a block
exposureExposure time as an astropy Quantity
filterFilter name
fits_headerSame as
header(backward compatibility)fovRA-DEC field of view of the image in degrees
headerFITS header associated with the image (optional)
jdJulian Date of the observation
labelA conveniant {Telescope}_{Date}_{Object}_{Filter} string
metadataImage metadata
night_datedate of the night when night started.
originImage origin
pixel_scalePixel scale (or plate scale) as an astropy Quantity
plate_solvedReturn whether the image is plate solved.
raRight-Ascension as an astropy Quantity
shapeImage.data shape
skycoordAstropy SkyCoord object based on header RAn, DEC.
sourcesImage sources.
wcsastropy.wcs.WCS object associated with the FITS
Image.header.