Moved inline Measured Parameters Config (MPC) schema into a dedicated file src/opera/pge/base/schema/iso_metadata_measured_parameters_config_schema.yaml
Added fields to MPC schema:
attribute_type: The parameter's EOS AdditionalAttributeDataTypeCode (info) [REQUIRED]
Must be one of: geographicIdentifier, qualityInformation, instrumentInformation, sensorInformation, contentInformation, platformInformation, citation.identifier, descriptiveKeyword, processingInformation, processingParameter, or commandLineArgument
display_name: Override for parameter's display name that is normally derived from the metadata variable name. [OPTIONAL]
attribute_data_type: Override for parameter's data type that is normally guessed from metadata variable's Python type. (info) [OPTIONAL]
Must be one of: string, float, int, boolean, date, time, dateTime, dateString, timeString, or dateTimeString
Updated DSWx-S1 PGE to use the new MPC fields to populate the ISO XML template, falling back to guesses for absent, non-required fields.
Affected Issues
514
Testing
Manually ran unit tests, injecting a copy statement to pull out the temporary ISO XML files for diffing.
# in test_dswx_s1_pge.py @ line 290
shutil.copy(expected_iso_metadata_file, '/tmp/.')
Ran int test on dev-pge, checking the produced XML files
Description
src/opera/pge/base/schema/iso_metadata_measured_parameters_config_schema.yaml
attribute_type
: The parameter's EOS AdditionalAttributeDataTypeCode (info) [REQUIRED]geographicIdentifier
,qualityInformation
,instrumentInformation
,sensorInformation
,contentInformation
,platformInformation
,citation.identifier
,descriptiveKeyword
,processingInformation
,processingParameter
, orcommandLineArgument
display_name
: Override for parameter's display name that is normally derived from the metadata variable name. [OPTIONAL]attribute_data_type
: Override for parameter's data type that is normally guessed from metadata variable's Pythontype
. (info) [OPTIONAL]string
,float
,int
,boolean
,date
,time
,dateTime
,dateString
,timeString
, ordateTimeString
Affected Issues
514
Testing