reader

class dorado.reader[source] [edit on github]

Bases: object

readers need to have a dirscan method and a savewrok method. Readers should also probably have a mkceres method.

Methods Summary

diread(dirarray)

diread intakes a filepath array and catalogues the contents by either 'is file' or 'is directory' and returns the resulting lists.

force16(hdu)

An unfinished convinience function for forcing the datatype of CCDData to be 16-bit instead of 32-bit for consistency and filesize optimization.

newdat()

newdat is an nfinished function that will scan the '$user/.dorado/data/raw' directory for new data to be processed.

Methods Documentation

diread(dirarray)[source] [edit on github]

diread intakes a filepath array and catalogues the contents by either ‘is file’ or ‘is directory’ and returns the resulting lists.

Parameters:
dirarray: str array

array containing the path to the desired directory.

Returns
——-
force16(hdu)[source] [edit on github]

An unfinished convinience function for forcing the datatype of CCDData to be 16-bit instead of 32-bit for consistency and filesize optimization.

Parameters:
hdu: CCDData

hdu to force 16-bit datatype.

Returns
——-
NOTE:: in the future this will handle arrays of data instead of single HDU’s and will allow for specifying the bit datatype.
newdat()[source] [edit on github]

newdat is an nfinished function that will scan the ‘$user/.dorado/data/raw’ directory for new data to be processed.

Parameters:
Returns: