DataBrowser๏
- class DataBrowser[source]๏
DataBrowser is a class that provides a unified interface for searching and loading data from the telescope data directory.
It provides:
Search for files matching the current filters and return them as different types of objects.
Types of objects:
ImageSetofScienceImageImageSetofReferenceImageImageSetofCalibrationImageImageSetofBackgroundImageSetofErrormapImageSetofMaskCatalogSetofCatalog
Methods๏
- search(self, pattern='*.fits', return_type='path')๏
Search for FITS files matching the current attributes and return them grouped by telescope or as objects.
This method will search for the files in the searchpath defined by the current filters (observatory, telkey, objname, telname, filter, obsdate).
- Parameters:
pattern (str) โ Filename pattern to match (e.g.,
'*.fits').return_type (str) โ
'path','science','reference','calibration','background','errormap','mask'or'imginfo'to convert paths to objects.
- Returns:
output โ
If
return_type``=โpathโ, returns ``dict[telname] = list of file paths.If
return_type``=โimginfoโ, returns ``astropy.table.Tableof imginfo.If
return_type``=โscienceโ, ``'reference','calibration','mask','background','errormap', returns'ImageSet'.If
return_type``=โcatalogโ``, returns CatalogSet.
- Return type:
Dict, Table, ImageSet, CatalogSet
Properties๏
Key Properties
Property |
Description |
|---|---|
|
Get the keys of the current filters. |
|
Get the search path of the current filters. |