rchive is Dorado’s tooling for file/data handling. rchive can make a data directory to work in, obtain the date for location of data folders, search and catalogue data folders, read in data series, write data series, and construct file strings for other functions.

rchive’s goal is to create a consistent file IO pattern for Dorado and its derivatives to work off of; while keeping data organized and safe.

rchive will soon allow for more robust saving of data series.


dorado.rchive Package

This is the docstring for the examplesubpkg package. Normally you would have whatever.py files in this directory implementing some modules, but this is just an example sub-package, so it doesn’t actually do anything.



checkdir returns lists

file_string(directory, imname)

file_string takes a directory filestring and image filename and combines them into a single filestring.

get_im(directory, imname)

get_im intakes a filename and directory of a fits image and returns the data and header of the image.


get_night obtains a timestring for the most recent(previous) night.

get_series(directory, imlist[, unit])

plate_solve takes fits image file data and the corresponding file string to the data and calls nova.astrometry.net to obtain and then integrate WCS into the HDU.


mkwrkdir creates standard data processing working directories.

write_series(directory, series, target[, expath])

write_series intakes a series of CCD images, a target name for filestring creation and a data directory path and writes the series to the directory.