pop_db

Warning

Deprecated code.

Script to populate database with STIS anneal month start and end times.

This is used by the STIS darks and bias reference file pipeline to determine the start and end of each anneal period, and to retrieve the appropriate dark and bias files.

refstis.pop_db.get_directories()[source]

Loop over the anneal monitor directory and return list of directories containing anneal observations

Returns

list, containing directory paths

Return type

directories

refstis.pop_db.grab_anneal_mjds()[source]

Loop over anneal directories and return a list of tuples containing useful mjd info to be populated into anneal database

Returns

list, full of tupes containing information for database

Return type

anneal_info

refstis.pop_db.main()[source]

Main function to retrieve anneal info and populate database

refstis.pop_db.pop_database(anneal_info)[source]

Populate anneal database with information gained pulled from anneal monitor observations

Parameters

anneal_info – list, list of tuples to be populated into db

Returns

Return type

None