dvas.config.definitions package

Copyright (c) 2020-2022 MeteoSwiss, contributors listed in AUTHORS.

Distributed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Submodules

dvas.config.definitions.csvorigmeta module

Copyright (c) 2020-2022 MeteoSwiss, contributors listed in AUTHORS.

Distributed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Module contents: Required attributes definition for .config.ConfigManager.OrigMeta class.

dvas.config.definitions.csvorigmeta.PARAMETER_PATTERN_PROP = {'^\\w+$': {'oneOf': [{'type': 'null'}, {'type': 'string'}, {'type': 'number'}, {'type': 'boolean'}]}}

Parameter pattern properties (JSON_SCHEMA)

Type:

dict

dvas.config.definitions.csvorigmeta.KEY = 'CSVOrigMeta'

Config manager key name

Type:

str

dvas.config.definitions.flg module

Copyright (c) 2020-2022 MeteoSwiss, contributors listed in AUTHORS.

Distributed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Module contents: Required attributes definition for .config.ConfigManager.Flag class.

dvas.config.definitions.flg.PARAMETER_PATTERN_PROP = {'^bit_pos$': {'maximum': 62, 'minimum': 0, 'type': 'integer'}, '^flg_desc$': {'type': 'string'}, '^flg_name$': {'type': 'string'}}

Parameter pattern properties (JSON_SCHEMA)

Type:

dict

dvas.config.definitions.flg.CONST_LABELS = [{'bit_pos': 0, 'flg_desc': 'No original data existing for this point (i.e. out of bound)', 'flg_name': 'no_original_data'}, {'bit_pos': 1, 'flg_desc': 'Invalid data (e.g. NaN value for real GDP measurement)', 'flg_name': 'is_invalid'}, {'bit_pos': 2, 'flg_desc': 'Invalid data (e.g. NaN uct value for real GDP gph measurement) that was corrected following official GRUAN instructions', 'flg_name': 'was_invalid'}, {'bit_pos': 3, 'flg_desc': 'Interpolated values', 'flg_name': 'is_interpolated'}, {'bit_pos': 4, 'flg_desc': 'GDPs are incompatible with one another', 'flg_name': 'is_GDP_incompatible'}, {'bit_pos': 5, 'flg_desc': 'A valid CWS measure exists for this measurement point', 'flg_name': 'has_valid_cws'}, {'bit_pos': 6, 'flg_desc': 'Prelaunch data', 'flg_name': 'is_prelaunch_data'}, {'bit_pos': 7, 'flg_desc': 'Ascent data', 'flg_name': 'is_ascent_data'}, {'bit_pos': 8, 'flg_desc': 'Descent data', 'flg_name': 'is_descent_data'}, {'bit_pos': 9, 'flg_desc': 'Measurement is in the PBL (i.e. x < PBLH)', 'flg_name': 'is_in_PBL'}, {'bit_pos': 10, 'flg_desc': 'Measurement is in the FT (i.e. x < tropopause and x > PBLH)', 'flg_name': 'is_in_FT'}, {'bit_pos': 11, 'flg_desc': 'Measurement is in the UTLS', 'flg_name': 'is_in_UTLS'}, {'bit_pos': 12, 'flg_desc': 'Measurement is in the MUS', 'flg_name': 'is_in_MUS'}]

Constant labels

Type:

list

dvas.config.definitions.flg.KEY = 'Flg'

Config manager key name

Type:

str

dvas.config.definitions.flg.NODE_GEN = ''

Node name able to be generated by regexp

Type:

str

dvas.config.definitions.model module

Copyright (c) 2020-2022 MeteoSwiss, contributors listed in AUTHORS.

Distributed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Module contents: Required attributes definition for .config.ConfigManager.Model class.

dvas.config.definitions.model.LABEL_VAL_DEF = {'mid': ''}

Default values of labels

Type:

dict

dvas.config.definitions.model.CONST_LABELS = [{'mdl_desc': 'Null instrument type', 'mdl_name': ''}]

Constant labels

Type:

list

dvas.config.definitions.model.PARAMETER_PATTERN_PROP = {'^mdl_desc$': {'type': 'string'}, '^mdl_name$': {'oneOf': [{'pattern': '[a-zA-Z0-9]+(([a-zA-Z0-9])|([\\-\\_\\(\\)]))*[a-zA-Z0-9]', 'type': 'string'}, {'const': ''}]}, '^mid$': {'type': 'string'}}

Parameter pattern properties (JSON_SCHEMA)

Type:

dict

dvas.config.definitions.model.KEY = 'Model'

Config manager key name

Type:

str

dvas.config.definitions.model.NODE_GEN = ''

Node name able to be generated by regexp

Type:

str

dvas.config.definitions.origdata module

Copyright (c) 2020-2022 MeteoSwiss, contributors listed in AUTHORS.

Distributed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Module contents: Required attributes definition for .config.ConfigManager.OrigData class.

dvas.config.definitions.origdata.EXPR_FIELD_KEYS = ['edt', 'srn', 'pid', 'tags', 'metadata']

Fields keys passed to expression interpreter

Type:

list

dvas.config.definitions.origdata.NODE_PATTERN = ['[a-zA-Z0-9]+(([a-zA-Z0-9])|([\\-\\_\\(\\)]))*[a-zA-Z0-9]', '(?:(([a-z0-9]+(([a-z0-9])|([\\_]))*(?:(?<!_flag)))|([a-z0-9]+(([a-z0-9])|([\\_]))*(?:(?<=_flag)))))']

Node pattern

Type:

list

dvas.config.definitions.origdata.LABEL_VAL_DEF = {'csv_comment': '#', 'csv_delim_whitespace': False, 'csv_delimiter': ';', 'csv_encoding': 'utf_8', 'csv_header': 'infer', 'csv_index_col': None, 'csv_na_values': None, 'csv_skip_blank_lines': True, 'csv_skipfooter': 0, 'csv_skipinitialspace': False, 'csv_skiprows': 0, 'csv_use_default': False, 'metadata': {}, 'tags': []}

Default values of labels

Type:

dict

dvas.config.definitions.origdata.PARAMETER_PATTERN_PROP = {'^csv_comment$': {'enum': ['#'], 'type': 'string'}, '^csv_delim_whitespace$': {'type': 'boolean'}, '^csv_delimiter$': {'anyOf': [{'type': 'null'}, {'type': 'string'}]}, '^csv_encoding$': {'anyOf': [{'type': 'null'}, {'type': 'string'}]}, '^csv_header$': {'oneOf': [{'type': 'null'}, {'minimum': 0, 'type': 'integer'}, {'const': 'infer'}]}, '^csv_index_col$': {'oneOf': [{'type': 'null'}, {'const': False}]}, '^csv_na_values$': {'anyOf': [{'type': 'null'}, {'type': 'string'}, {'items': {'type': 'string'}, 'minItems': 1, 'type': 'array', 'uniqueItems': True}]}, '^csv_skip_blank_lines$': {'type': 'boolean'}, '^csv_skipfooter$': {'minimum': 0, 'type': 'integer'}, '^csv_skipinitialspace$': {'type': 'boolean'}, '^csv_skiprows$': {'oneOf': [{'minimum': 0, 'type': 'integer'}, {'type': 'string'}]}, '^csv_use_default$': {'type': 'boolean'}, '^edt$': {'type': 'string'}, '^metadata$': {'oneOf': [{'type': 'null'}, {'additionalProperties': False, 'patternProperties': {'^[\\w\\.]+$': {'oneOf': [{'type': 'null'}, {'type': 'string'}, {'type': 'number'}]}}, 'type': 'object'}]}, '^pid$': {'type': 'string'}, '^srn$': {'type': 'string'}, '^tags$': {'items': {'type': 'string'}, 'type': 'array', 'uniqueItems': True}, '^value$': {'type': 'string'}}

Parameter pattern properties (JSON_SCHEMA)

Type:

dict

dvas.config.definitions.origdata.KEY = 'OrigData'

Config manager key name

Type:

str

dvas.config.definitions.prm module

Copyright (c) 2020-2023 MeteoSwiss, contributors listed in AUTHORS.

Distributed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Module contents: Required attributes definition for .config.ConfigManager.Parameter class.

dvas.config.definitions.prm.LABEL_VAL_DEF = {'prm_cmt': '', 'prm_desc': '', 'prm_plot': '', 'prm_unit': ''}

Default values of labels

Type:

dict

dvas.config.definitions.prm.PARAMETER_PATTERN_PROP = {'^prm_cmt$': {'type': 'string'}, '^prm_desc$': {'type': 'string'}, '^prm_name$': {'type': 'string'}, '^prm_plot$': {'type': 'string'}, '^prm_unit$': {'type': 'string'}}

Parameter pattern properties (JSON_SCHEMA)

Type:

dict

dvas.config.definitions.prm.KEY = 'Prm'

Config manager key name

Type:

str

dvas.config.definitions.prm.NODE_GEN = 'prm_name'

Node name able to be generated by regexp

Type:

str

dvas.config.definitions.tag module

Copyright (c) 2020-2022 MeteoSwiss, contributors listed in AUTHORS.

Distributed under the terms of the GNU General Public License v3.0 or later.

SPDX-License-Identifier: GPL-3.0-or-later

Module contents: Required attributes definition for .config.ConfigManager.Tag class.

dvas.config.definitions.tag.PARAMETER_PATTERN_PROP = {'^tag_desc$': {'type': 'string'}, '^tag_name$': {'type': 'string'}}

Parameter pattern properties (JSON_SCHEMA)

Type:

dict

dvas.config.definitions.tag.CONST_LABELS = [{'tag_desc': 'None', 'tag_name': ''}, {'tag_desc': 'Original profile unaltered by dvas', 'tag_name': 'is_original'}, {'tag_desc': 'Cleaned-up profile', 'tag_name': 'is_cleaned'}, {'tag_desc': 'Profile is resampled onto a regular time-step grid', 'tag_name': 'is_resampled'}, {'tag_desc': 'Synchronized profile', 'tag_name': 'is_synchronized'}, {'tag_desc': 'GRUAN Data Product', 'tag_name': 'is_gdp'}, {'tag_desc': 'Combined working measurement standard', 'tag_name': 'is_cws'}, {'tag_desc': 'Profile minus CWS', 'tag_name': 'is_delta'}, {'tag_desc': 'Empty data', 'tag_name': 'is_empty'}]

Constant node values

Type:

list

dvas.config.definitions.tag.KEY = 'Tag'

Config manager key name

Type:

str

dvas.config.definitions.tag.NODE_GEN = 'tag_name'

Node name able to be generated by regexp

Type:

str