dace_query.monitoring package

Submodules

dace_query.monitoring.monitoring module

dace_query.monitoring.monitoring.Monitoring: MonitoringClass = <dace_query.monitoring.monitoring.MonitoringClass object>

Monitoring instance

class dace_query.monitoring.monitoring.MonitoringClass(dace_instance: DaceClass | None = None)

Bases: object

The monitoring class. Use to retrieve data from the monitoring module.

A monitoring instance is already provided, to use it :

>>> from dace_query.monitoring import Monitoring
query_transfer_by_night(instrument: str, pipeline: str, night: str, output_format: str | None = None) dict[str, ndarray] | DataFrame | Table | dict

Query the monitoring database to retrieve data in the chosen format for the specified instrument, night and pipeline.

All available formats are defined in this section (see Output formats).

Available pipeline names are:
  • TRANSFER: From remote archive to Geneva archive (Transfer)

  • GENEVA: From reduction in Geneva to DACE import (Reduction and import)

  • FULL: From remote archive to DACE import (Transfer, reduction and import)

The supported combinations are indicated below and described as (instrument name; date of the night; pipeline name) :

  • HARPS, NIGHT, [ TRANSFER, GENEVA, FULL ]

  • ESPRESSO, NIGHT, [ TRANSFER, GENEVA, FULL ]

  • CORALIE14, NIGHT, [ TRANSFER, GENEVA, FULL ]

  • ECAM, NIGHT, [ TRANSFER ]

  • HARPN, NIGHT, [ TRANSFER ]

Parameters:
  • instrument (str) – The instrument name

  • pipeline (str) – The pipeline name

  • night (str) – The date of the night

  • output_format (Optional[strs]) – Type of data returns

Returns:

The desired data in the chosen output format

Return type:

dict[str, ndarray] or DataFrame or Table or dict

>>> from dace_query.monitoring import Monitoring
>>> values = Monitoring.query_transfer_by_night(instrument='HARPS', pipeline='FULL', night='2022-11-08')
query_transfer_by_period(instrument: str, pipeline: str, period: tuple[str, str], output_format: str | None = None) dict[str, ndarray] | DataFrame | Table | dict

Query the monitoring database ot retrieve data in the chosen format for the specified instrument, period and period.

All available formats are defined in this section (see Output formats).

Available pipeline names are:
  • TRANSFER: From remote archive to Geneva archive (Transfer)

  • GENEVA: From reduction in Geneva to DACE import (Reduction and import)

  • FULL: From remote archive to DACE import (Transfer, reduction and import)

The supported combinations are indicated below and described as (instrument name; period dates; pipeline name):

  • HARPS, PERIOD, [ TRANSFER, GENEVA, FULL ]

  • ESPRESSO, PERIOD, [TRANSFER, GENEVA, FULL]

  • CORALIE14, PERIOD, [TRANSFER, GENEVA, FULL]

  • ECAM, PERIOD, [ TRANSFER ]

  • HARPN, PERIOD, [ GENEVA ]

Parameters:
  • instrument (str) – The instrument name

  • pipeline (str) – The pipeline name

  • period (tuple[str, str]) – The periods

  • output_format (Optional[str]) – Type of data returns

Returns:

The desired data in the chosen output format

Return type:

dict[str, ndarray] or DataFrame or Table or dict

>>> from dace_query.monitoring import Monitoring
>>> values = Monitoring.query_transfer_by_period(instrument='HARPS', pipeline='FULL', period=('2022-11-07', '2022-11-09'))
query_transfer_by_program(instrument: str, pipeline: str, program: str, output_format: str | None = None) dict[str, ndarray] | DataFrame | Table | dict

Query the monitoring database to retrieve data in the chosen format for the specified instrument, pipeline and program.

All available formats are defined in this section (see Output formats).

Available pipeline names are:
  • TRANSFER: From remote archive to Geneva archive (Transfer)

  • GENEVA: From reduction in Geneva to DACE import (Reduction and import)

  • FULL: From remote archive to DACE import (Transfer, reduction and import)

The supported combinations are indicated below and described as (instrument name; program name; pipeline name):

  • HARPS, PROGRAM, [ TRANSFER, FULL ]

  • ESPRESSO, PROGRAM, [ TRANSFER, FULL ]

Parameters:
  • instrument (str) – The instrument name

  • pipeline (str) – The pipeline name

  • program (str) – The program name

  • output_format (Optional[str]) – Type of data returns

Returns:

The desired data in the chosen output format

Return type:

dict[str, ndarray] or DataFrame or Table or dict

>>> from dace_query.monitoring import Monitoring
>>> values = Monitoring.query_transfer_by_program(instrument='ESPRESSO', pipeline='TRANSFER', program='110.245W.001')
query_transfer_by_target(instrument: str, pipeline: str, target: str, output_format: str | None = None)

Query the monitoring database to retrieve data in the chosen format for the specified instrument, pipeline and target.

All available formats are defined in this section (see Output formats).

Available pipeline names are:
  • TRANSFER: From remote archive to Geneva archive (Transfer)

  • GENEVA: From reduction in Geneva to DACE import (Reduction and import)

  • FULL: From remote archive to DACE import (Transfer, reduction and import)

The supported combinations are indicated below and described as (instrument name; target name; pipeline name):

  • HARPS, TARGET, [ TRANSFER, FULL ]

  • ESPRESSO, TARGET, [ TRANSFER, FULL ]

Parameters:
  • instrument (str) – The instrument name

  • pipeline (str) – The pipeline name

  • target (str) – The target name

  • output_format (Optional[str]) – Type of data returns

Returns:

The desired data in the chosen output format

Return type:

dict[str, ndarray] or DataFrame or Table or dict

>>> from dace_query.monitoring import Monitoring
>>> values = Monitoring.query_transfer_by_target(instrument='ESPRESSO', pipeline='TRANSFER', target='L 513-23')

Module contents