acdc.database.calculate_dark.measure_darkrate

measure_darkrate(filename, apertures=None)[source]

For an input dark dataset, record exposure information including observation time, observatory latitude & longitude. Measure dark rate at specified regions of the COS FUV detector at a given time interval in order to accumulate enough counts for a measurement. (Taken from the STScI COS team”s dark monitor, dark_monitor.py, and modified. Original authors include Justin Ely, Mees Fix, Dzhuliya Dashtamirova.)

Parameters:
  • filename (str) – Name of dark dataset.

  • apertures (dict) – Output from get_aperture_region(). This is passed in to avoid running get_aperture_region() many times within this function.

Returns:

dark_df (pandas.dataframe) – Pandas dataframe with information for each dark measurement.