Skip to content

Commit

Permalink
fix product_type
Browse files Browse the repository at this point in the history
  • Loading branch information
gshiroma committed Sep 11, 2023
1 parent 3122e0c commit e4b4d37
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/rtc/h5_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,6 @@ 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 All @@ -401,6 +396,10 @@ def get_metadata_dict(product_id: str,
# product type
product_type = cfg_in.groups.primary_executable.product_type

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

# product version
product_version_runconfig = cfg_in.groups.product_group.product_version
product_version = get_product_version(product_version_runconfig)
Expand Down Expand Up @@ -552,7 +551,7 @@ def get_metadata_dict(product_id: str,
'identification/productType':
['product_type',
ALL_PRODUCTS,
product_type,
product_type_metadata_value,
'Product type'],
'identification/project':
['project',
Expand Down

0 comments on commit e4b4d37

Please sign in to comment.