diff --git a/Examples/Doc/Notebooks/EbasMetadata.ipynb b/Examples/Doc/Notebooks/EbasMetadata.ipynb index 12178816791f15ed8df7ea8c7e5fe2cba44652f2..e6381ab5d151f60f9a0b241a0737f6154f724bd4 100644 --- a/Examples/Doc/Notebooks/EbasMetadata.ipynb +++ b/Examples/Doc/Notebooks/EbasMetadata.ipynb @@ -57,7 +57,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This code sequence lists all possible metadata elements in EBAS. Each line contains the tag (the tag used in the Nasa Ames files) and the key (the key used in the io object's metadata).\n", + "This code sequence lists all possible metadata elements in EBAS. Each line contains the Nasa Ames tag (the tag used in the Nasa Ames files), the NetCDF tag (attribute name used in NetCDF files) and the object key (the key used in the io object's metadata).\n", "We only list metadata which are allowed either as global metadata (main) or as variable metadata (vname)" ] }, @@ -72,146 +72,150 @@ "name": "stdout", "output_type": "stream", "text": [ - "Data definition: datadef\n", - "Data license: license\n", - "Citation: citation\n", - "Set type code: type\n", - "Timezone: timezone\n", - "Timeref: timeref\n", - "File name: filename\n", - "Represents DOI: doi\n", - "Contains data from DOI: doi_list\n", - "File creation: creation_time\n", - "Export state: export_state\n", - "Export filter: export_filter\n", - "Startdate: startdate\n", - "Revision date: revdate\n", - "Version: revision\n", - "Version description: revdesc\n", - "Input dataset: input_dataset\n", - "Software: software\n", - "Statistics: statistics\n", - "Data level: datalevel\n", - "Period code: period\n", - "Resolution code: resolution\n", - "Sample duration: duration\n", - "Orig. time res.: rescode_sample\n", - "Station code: station_code\n", - "Platform code: platform_code\n", - "Station name: station_name\n", - "Station WDCA-ID: station_wdca_id\n", - "Station GAW-ID: station_gaw_id\n", - "Station GAW-Name: station_gaw_name\n", - "Station AIRS-ID: station_airs_id\n", - "Station other IDs: station_other_ids\n", - "Station state/province: station_state_code\n", - "Station land use: station_landuse\n", - "Station setting: station_setting\n", - "Station GAW type: station_gaw_type\n", - "Station WMO region: station_wmo_region\n", - "Station latitude: station_latitude\n", - "Station longitude: station_longitude\n", - "Station altitude: station_altitude\n", - "Measurement latitude: mea_latitude\n", - "Measurement longitude: mea_longitude\n", - "Measurement altitude: mea_altitude\n", - "Measurement height: mea_height\n", - "Regime: regime\n", - "Component: comp_name\n", - "Unit: unit\n", - "Matrix: matrix\n", - "Laboratory code: lab_code\n", - "Instrument type: instr_type\n", - "Instrument name: instr_name\n", - "Instrument manufacturer: instr_manufacturer\n", - "Instrument model: instr_model\n", - "Instrument serial number: instr_serialno\n", - "Sensor type: sensor_type\n", - "Analytical laboratory code: ana_lab_code\n", - "Analytical measurement technique: ana_technique\n", - "Analytical instrument name: ana_instr_name\n", - "Analytical instrument manufacturer: ana_instr_manufacturer\n", - "Analytical instrument model: ana_instr_model\n", - "Analytical instrument serial number: ana_instr_serialno\n", - "Ext. lab. code: ext_lab\n", - "Method ref: method\n", - "Standard method: std_method\n", - "Calibration scale: cal_scale\n", - "Calibration standard ID: cal_std_id\n", - "Secondary standard ID: sec_std_id\n", - "Inlet type: inlet_type\n", - "Inlet description: inlet_desc\n", - "Inlet tube material: inlet_tube_material\n", - "Inlet tube outer diameter: inlet_tube_outerD\n", - "Inlet tube inner diameter: inlet_tube_innerD\n", - "Inlet tube length: inlet_tube_length\n", - "Time from entry inlet line to entry of converter: time_inlet_to_converter\n", - "Duration of stay in converter or bypass line: time_converter_or_bypass_line\n", - "Duration of stay in converter: time_stay_converter\n", - "Converter temperature: converter_temp\n", - "Maintenance description: maintenance_desc\n", - "Flow rate: flow_rate\n", - "Filter face velocity: filter_face_velocity\n", - "Exposed filter area: filter_area\n", - "Filter description: filter_descr\n", - "Medium: medium\n", - "Coating/Solution: coating_solution\n", - "Filter prefiring: filter_prefiring\n", - "Filter conditioning: filter_conditioning\n", - "Filter type: filter_type\n", - "Sample preparation: sample_prep\n", - "Blank correction: blank_corr\n", - "Artifact correction: artifact_corr\n", - "Artifact correction description: artifact_corr_desc\n", - "Charring correction: charring_corr\n", - "Ozone correction: ozone_corr\n", - "Water vapor correction: watervapor_corr\n", - "Zero/span check type: zero_span_type\n", - "Zero/span check interval: zero_span_interval\n", - "Humidity/temperature control: hum_temp_ctrl\n", - "Humidity/temperature control description: hum_temp_ctrl_desc\n", - "Volume std. temperature: vol_std_temp\n", - "Volume std. pressure: vol_std_pressure\n", - "Detection limit: detection_limit\n", - "Detection limit expl.: detection_limit_desc\n", - "Upper range limit: upper_range_limit\n", - "Measurement uncertainty: uncertainty\n", - "Measurement uncertainty expl.: uncertainty_desc\n", - "Zero/negative values code: zero_negative\n", - "Zero/negative values: zero_negative_desc\n", - "Absorption cross section: abs_cross_section\n", - "Mass absorption cross section: mass_abs_cross_section\n", - "Multi-scattering correction factor: multi_scattering_corr_fact\n", - "Maximum attenuation: max_attenuation\n", - "Leakage factor zeta: leakage_factor_zeta\n", - "Compensation threshold attenuation 1: comp_thresh_atten1\n", - "Compensation threshold attenuation 2: comp_thresh_atten2\n", - "Compensation parameter k min: comp_param_kmin\n", - "Compensation parameter k max: comp_param_kmax\n", - "Coincidence correction: coincidence_corr\n", - "Charge type: charge_type\n", - "Inlet diffusion loss data: inlet_diffusion_loss_data\n", - "CPC default pulse width: cpc_default_pulse_width\n", - "QA measure ID: qm_id\n", - "QA measure description: qm_desc\n", - "QA date: qa_date\n", - "QA outcome: qa_outcome\n", - "QA bias: qa_bias\n", - "QA variability: qa_variability\n", - "QA document name: qa_doc_name\n", - "QA document date: qa_doc_date\n", - "QA document URL: qa_doc_url\n", - "Originator: originator\n", - "Submitter: submitter\n", - "Acknowledgement: acknowledgements\n", - "Comment: comment\n" + "Nasa Ames tag NetCDF attribute Object key\n", + "--------------------------------------------- ----------------------------------- ----------\n", + "Data definition data_definition datadef\n", + "Data license data_license license\n", + "Citation citation citation\n", + "Set type code set_type_code type\n", + "Timezone timezone timezone\n", + "Timeref timeref timeref\n", + "File name file_name filename\n", + "Represents DOI represents_doi doi\n", + "Contains data from DOI contains_doi doi_list\n", + "File creation file_creation creation_time\n", + "Export state export_state export_state\n", + "Export filter export_filter export_filter\n", + "Startdate startdate startdate\n", + "Revision date revision_date revdate\n", + "Version version revision\n", + "Version description version_description revdesc\n", + "Input dataset input_dataset input_dataset\n", + "Software software software\n", + "Statistics statistics statistics\n", + "Data level data_level datalevel\n", + "Period code period_code period\n", + "Resolution code resolution_code resolution\n", + "Sample duration sample_duration duration\n", + "Orig. time res. orig_time_res rescode_sample\n", + "Station code station_code station_code\n", + "Platform code platform_code platform_code\n", + "Station name station_name station_name\n", + "Station WDCA-ID station_wdca_id station_wdca_id\n", + "Station GAW-ID station_gaw_id station_gaw_id\n", + "Station GAW-Name station_gaw_name station_gaw_name\n", + "Station AIRS-ID station_airs_id station_airs_id\n", + "Station other IDs station_other_ids station_other_ids\n", + "Station state/province station_state_province station_state_code\n", + "Station land use station_land_use station_landuse\n", + "Station setting station_setting station_setting\n", + "Station GAW type station_gaw_type station_gaw_type\n", + "Station WMO region station_wmo_region station_wmo_region\n", + "Station latitude station_latitude station_latitude\n", + "Station longitude station_longitude station_longitude\n", + "Station altitude station_altitude station_altitude\n", + "Measurement latitude measuremenet_latitude mea_latitude\n", + "Measurement longitude measurement_longitude mea_longitude\n", + "Measurement altitude measurement_altitude mea_altitude\n", + "Measurement height measurement_height mea_height\n", + "Regime regime regime\n", + "Component component comp_name\n", + "Unit unit unit\n", + "Matrix matrix matrix\n", + "Laboratory code laboratory_code lab_code\n", + "Instrument type instrument_type instr_type\n", + "Instrument name instrument_name instr_name\n", + "Instrument manufacturer instrument_manufacturer instr_manufacturer\n", + "Instrument model instrument_model instr_model\n", + "Instrument serial number instrument_serial_number instr_serialno\n", + "Sensor type sensor_type sensor_type\n", + "Analytical laboratory code analytical_laboratory_code ana_lab_code\n", + "Analytical measurement technique analytical_measurement_technique ana_technique\n", + "Analytical instrument name analytical_instrument_name ana_instr_name\n", + "Analytical instrument manufacturer analytical_instrument_manufacturer ana_instr_manufacturer\n", + "Analytical instrument model analytical_instrument_model ana_instr_model\n", + "Analytical instrument serial number analytical_instrument_serial_number ana_instr_serialno\n", + "Ext. lab. code ext_lab_code ext_lab\n", + "Method ref method_ref method\n", + "Standard method standard_method std_method\n", + "Calibration scale calibration_scale cal_scale\n", + "Calibration standard ID calibration_standard_id cal_std_id\n", + "Secondary standard ID secondary_standard_id sec_std_id\n", + "Inlet type inlet_type inlet_type\n", + "Inlet description inlet_description inlet_desc\n", + "Inlet tube material inlet_tube_material inlet_tube_material\n", + "Inlet tube outer diameter inlet_tube_outer_diameter inlet_tube_outerD\n", + "Inlet tube inner diameter inlet_tube_inner_diameter inlet_tube_innerD\n", + "Inlet tube length inlet_tube_length inlet_tube_length\n", + "Time from entry inlet line to entry of converter time_from_entry_inlet_line_to_entry_of_converter time_inlet_to_converter\n", + "Duration of stay in converter or bypass line duration_of_stay_in_converter_or_bypass_line time_converter_or_bypass_line\n", + "Duration of stay in converter duration_of_stay_in_converter time_stay_converter\n", + "Converter temperature converter_temperature converter_temp\n", + "Maintenance description maintenance_description maintenance_desc\n", + "Flow rate flow_rate flow_rate\n", + "Filter face velocity filter_face_velocity filter_face_velocity\n", + "Exposed filter area exposed_filter_area filter_area\n", + "Filter description filter_description filter_descr\n", + "Medium medium medium\n", + "Coating/Solution coating_solution coating_solution\n", + "Filter prefiring filter_prefiring filter_prefiring\n", + "Filter conditioning filter_conditioning filter_conditioning\n", + "Filter type filter_type filter_type\n", + "Sample preparation sample_preparation sample_prep\n", + "Blank correction blank_correction blank_corr\n", + "Artifact correction artifact_correction artifact_corr\n", + "Artifact correction description artifact_correction_description artifact_corr_desc\n", + "Charring correction charring_correction charring_corr\n", + "Ozone correction ozone_correction ozone_corr\n", + "Water vapor correction water_vapor_correction watervapor_corr\n", + "Zero/span check type zero_span_check_type zero_span_type\n", + "Zero/span check interval zero_span_check_interval zero_span_interval\n", + "Humidity/temperature control humidity_temperaure_control hum_temp_ctrl\n", + "Humidity/temperature control description humidity_temperaure_control_description hum_temp_ctrl_desc\n", + "Volume std. temperature volume_std_temperature vol_std_temp\n", + "Volume std. pressure volume_std_pressure vol_std_pressure\n", + "Detection limit detection_limit detection_limit\n", + "Detection limit expl. detection_limit_expl detection_limit_desc\n", + "Upper range limit upper_range_limit upper_range_limit\n", + "Measurement uncertainty measurement_uncertainty uncertainty\n", + "Measurement uncertainty expl. measurement_uncertainty_expl uncertainty_desc\n", + "Zero/negative values code zero_negative_values_code zero_negative\n", + "Zero/negative values zero_negative_values zero_negative_desc\n", + "Absorption cross section absorption_cross_section abs_cross_section\n", + "Mass absorption cross section mass_absorption_cross_section mass_abs_cross_section\n", + "Multi-scattering correction factor multi_scattering_correction_factor multi_scattering_corr_fact\n", + "Maximum attenuation maximum_attenuation max_attenuation\n", + "Leakage factor zeta leakage_factor_zeta leakage_factor_zeta\n", + "Compensation threshold attenuation 1 compensation_threshold_attenuation_1 comp_thresh_atten1\n", + "Compensation threshold attenuation 2 compensation_threshold_attenuation_2 comp_thresh_atten2\n", + "Compensation parameter k min compensation_parameter_k_min comp_param_kmin\n", + "Compensation parameter k max compensation_parameter_k_max comp_param_kmax\n", + "Coincidence correction coincidence_correction coincidence_corr\n", + "Charge type charge_type charge_type\n", + "Inlet diffusion loss data inlet_diffusion_loss_data inlet_diffusion_loss_data\n", + "CPC default pulse width cpc_default_pulse_width cpc_default_pulse_width\n", + "QA measure ID qa_measure_id qm_id\n", + "QA measure description qa_measure_description qm_desc\n", + "QA date qa_date qa_date\n", + "QA outcome qa_outcome qa_outcome\n", + "QA bias qa_bias qa_bias\n", + "QA variability qa_variability qa_variability\n", + "QA document name qa_document_name qa_doc_name\n", + "QA document date qa_document_date qa_doc_date\n", + "QA document URL qa_document_url qa_doc_url\n", + "Originator originator originator\n", + "Submitter submitter submitter\n", + "Acknowledgement acknowledgement acknowledgements\n", + "Comment comment comment\n" ] } ], "source": [ + "print(f'{\"Nasa Ames tag\":45s} {\"NetCDF attribute\":35s} Object key')\n", + "print(f'{\"-\"*45} {\"-\"*35} ----------')\n", "for elem in [x for x in meta.metadata if x['main'] or x['vname']]:\n", " if not 'renamed_tag' in elem:\n", - " print(\"{:45s} {}\".format(elem['tag']+\":\", elem['key']))" + " print(f'{elem[\"tag\"]:45s} {elem[\"nc_tag\"]:35s} {elem[\"key\"]}')" ] }, { @@ -375,13 +379,6 @@ "source": [ "meta.metadata_keys['instr_manufacturer']['tag']" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {