RubinDirectoryCollection¶
- class toasty.collection.RubinDirectoryCollection(dirname, unit=None)[source]¶
Bases:
ImageCollectionLoad up imagery from a directory containing FITS files capturing a Rubin Observatory tract.
The directory will be searched for files whose names end in
.fits. In each of those files, the HDUs beyond the first will be treated as separate science images that should be individually loaded. The images will be trimmed according to theirDATASECspecification before being returned.This class requires the
ccdprocpackage to trim FITS CCD datasets.Methods Summary
Generate a sequence of
toasty.image.ImageDescriptionitems associated with this collection.images()Generate a sequence of
toasty.image.Imageitems associated with this collection.Methods Documentation
- descriptions()[source]¶
Generate a sequence of
toasty.image.ImageDescriptionitems associated with this collection.Each description will have an added string attribute
collection_idthat gives a unique textual identifer for the item in the collection.Unlike
ImageCollection.images(), this function does cause the full data for each image to be loaded.
- images()[source]¶
Generate a sequence of
toasty.image.Imageitems associated with this collection.Each image will have an added string attribute
collection_idthat gives a unique textual identifer for the item in the collection.