This PR adds a python package that enables requirements checking and templating for SOLARNET metadata attributes within FITS files.
The SOLARNET attributes are split between:
SOLARNET_global_fits_attr_schema.yaml: Attributes only required for Primary HDU and do not need to be repeated for supplemental HDUs.
SOLARNET_variable_fits_attr_schema.yaml: Attributes required for all OBS HDUs.
This package utilizes conditional requirements for metadata attributes. There are some attributes which are required for all FITS HDUs. However, there are are also some attributes which are conditionally required based on the HDU contents, or the values of other attributes.
To enable conditional attribute requirements for the SOLARNET metadata standards, we introduce two additional kewords:
OBS_TYPE: Type of observatory. A string (from a limited/discrete list) uniquely identifying the type of observatory.
This details whether the observatory is ground-based, earth-orbiting or deep-space and can be used to determine the required metadata attributes for the observatory.
INST_TYP: Type of instrument. A string (from a limited/discrete list) uniquely identifying the type of instrument.
This details whether the instrument is Imager or Spectrograph and can be used to determine the required metadata attributes for the instrument.
This PR adds a python package that enables requirements checking and templating for SOLARNET metadata attributes within FITS files.
The SOLARNET attributes are split between:
SOLARNET_global_fits_attr_schema.yaml
: Attributes only required for Primary HDU and do not need to be repeated for supplemental HDUs.SOLARNET_variable_fits_attr_schema.yaml
: Attributes required for all OBS HDUs.This package utilizes conditional requirements for metadata attributes. There are some attributes which are required for all FITS HDUs. However, there are are also some attributes which are conditionally required based on the HDU contents, or the values of other attributes.
To enable conditional attribute requirements for the SOLARNET metadata standards, we introduce two additional kewords:
OBS_TYPE
: Type of observatory. A string (from a limited/discrete list) uniquely identifying the type of observatory.ground-based
,earth-orbiting
ordeep-space
and can be used to determine the required metadata attributes for the observatory.INST_TYP
: Type of instrument. A string (from a limited/discrete list) uniquely identifying the type of instrument.Imager
orSpectrograph
and can be used to determine the required metadata attributes for the instrument.