specdash.input.sdss package

Submodules

specdash.input.sdss.driver module

class specdash.input.sdss.driver.FitsDataDriver[source]

Bases: specdash.input.DataDriver

MASK_BITS = {0: 'NOPLUG', 1: 'BADTRACE', 2: 'BADFLAT', 3: 'BADARC', 4: 'MANYBADCOLUMNS', 5: 'MANYREJECTED', 6: 'LARGESHIFT', 7: 'BADSKYFIBER', 8: 'NEARWHOPPER', 9: 'WHOPPER', 10: 'SMEARIMAGE', 11: 'SMEARHIGHSN', 12: 'SMEARMEDSN', 16: 'NEARBADPIXEL', 17: 'LOWFLAT', 18: 'FULLREJECT', 19: 'PARTIALREJECT', 20: 'SCATTEREDLIGHT', 21: 'CROSSTALK', 22: 'NOSKY', 23: 'BRIGHTSKY', 24: 'NODATA', 25: 'COMBINEREJ', 26: 'BADFLUXFACTOR', 27: 'BADSKYCHI', 28: 'REDMONSTER'}
classmethod get_catalog_name()[source]

Gets the name of the catalog which the driver is processing data for. E.g., SDSS

classmethod get_data_from_specid(specid, trace_name=None)[source]
classmethod get_spectrum_path(specid)[source]

returns a non empty string if specid is found in file system. Else, returns an empty string or None

classmethod get_trace_list_from_fits(name, hdulist=None, file_object=None)[source]
classmethod is_file_from_catalog(hdulist)[source]

returns True if the file’s HDLUList can be identified as belonging to this catalog. False otherwise

classmethod is_specid_from_catalog(specid)[source]

returns True if the file’s HDLUList can be identified as belonging to this catalog. False otherwise

Module contents