RubinDirectoryCollection

class toasty.collection.RubinDirectoryCollection(dirname, unit=None)[source]

Bases: ImageCollection

Load 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 their DATASEC specification before being returned.

This class requires the ccdproc package to trim FITS CCD datasets.

Methods Summary

descriptions()

Generate a sequence of toasty.image.ImageDescription items associated with this collection.

images()

Generate a sequence of toasty.image.Image items associated with this collection.

Methods Documentation

descriptions()[source]

Generate a sequence of toasty.image.ImageDescription items associated with this collection.

Each description will have an added string attribute collection_id that 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.Image items associated with this collection.

Each image will have an added string attribute collection_id that gives a unique textual identifer for the item in the collection.