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:

  1. Search for files matching the current filters and return them as different types of objects.

    Types of objects:

    • ImageSet of ScienceImage

    • ImageSet of ReferenceImage

    • ImageSet of CalibrationImage

    • ImageSet of Background

    • ImageSet of Errormap

    • ImageSet of Mask

    • CatalogSet of Catalog

__init__(foldertype=None)[source]๏ƒ

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.Table of 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

keys

Get the keys of the current filters.

searchpath

Get the search path of the current filters.