acdc.database.update_db

Functions

populate_darkevents

Populate the hstcal database.

populate_darks

Populate the Darks database table.

populate_solar

Populate the Solar database table.

update_cos_dark

update_dark_events

populate_darkevents(files, dbname='dark_events', db_table='all')[source]

Populate the hstcal database. This can be used to add new files or ingest all data from scratch.

Parameters:
  • files (array-like) – Names of dark exposure corrtags.

  • dbname (str) – The name of the database to update.

  • db_table (sqlalchemy.Table) – Name of table to update, defaults to ‘all’, but could be DarkEvents.

populate_darks(files, dbname='cos_dark', db_table=<class 'acdc.database.schema.Darks'>)[source]

Populate the Darks database table. This can be used to add new files or ingest all data from scratch. In order to properly get interpolated solar flux values for dark observations, Solar table must be populated before the Darks table.

Parameters:
  • files (array-like) – Names of COS dark files to ingest.

  • dbname (str) – The name of the database to update.

  • db_table (sqlalchemy.Table) – Name of table to update, defaults to Darks.

populate_solar(files, dbname='cos_dark', db_table=<class 'acdc.database.schema.Solar'>)[source]

Populate the Solar database table. This can be used to add new files or ingest all data from scratch. In order to properly get interpolated solar flux values for dark observations, Solar table must be populated before the Darks table.

Parameters:
  • files (array-like) – Names of solar flux files to parse.

  • dbname (str) – The location of the SQLite database, with full path, e.g. /path/to/cos_dark.db If in the current directory, do not include . or ./

  • db_table (sqlalchemy.Table) – Name of table to update, defaults to Solar.