Skip to content

Commit

Permalink
remove az/rg resolution in meters from RTC-S1-STATIC metadata; substi…
Browse files Browse the repository at this point in the history
…tute underbars with dashes in product type
  • Loading branch information
gshiroma committed Sep 11, 2023
1 parent ce8186e commit 346176e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/rtc/h5_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ def get_metadata_dict(product_id: str,
the field is not saved on the GeoTIFF file
'''

# product type. Update "RTC_S1" and "RTC_S1_STATIC" to
# "RTC_S1" and "RTC_S1_STATIC", respectively.
product_type = \
cfg_in.groups.primary_executable.product_type.replace('_', '-')

# orbit files
orbit_files = [os.path.basename(f) for f in cfg_in.orbit_path]

Expand Down Expand Up @@ -539,7 +544,7 @@ def get_metadata_dict(product_id: str,
'identification/productType':
['product_type',
ALL_PRODUCTS,
cfg_in.groups.primary_executable.product_type,
product_type,
'Product type'],
'identification/project':
['project',
Expand Down Expand Up @@ -743,12 +748,12 @@ def get_metadata_dict(product_id: str,
' of the source data'],
'metadata/sourceData/azimuthResolutionInMeters': # 1.6.7
['source_data_azimuth_resolution_in_meters',
ALL_PRODUCTS,
STANDARD_RTC_S1_ONLY,
azimuth_resolution,
'Azimuth resolution of the source data in meters'],
'metadata/sourceData/slantRangeResolutionInMeters': # 1.6.7
['source_data_slant_range_resolution_in_meters',
ALL_PRODUCTS,
STANDARD_RTC_S1_ONLY,
slant_range_resolution,
'Slant-range resolution of the source data in meters'],

Expand Down

0 comments on commit 346176e

Please sign in to comment.