Skip to content

Commit

Permalink
move the metadata field ceosAnalysisReadyDataPixelCoordinateConventio…
Browse files Browse the repository at this point in the history
…n as an attribute of boundingBox
  • Loading branch information
gshiroma committed Sep 11, 2023
1 parent 346176e commit dbb4f49
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/rtc/h5_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def get_metadata_dict(product_id: str,
# RTC algorithm
rtc_algorithm = cfg_in.groups.processing.rtc.algorithm_type
if rtc_algorithm == 'area_projection':
rtc_algorithm = 'Area-Based SAR Radiometric Terrain Correction (RTC-AP)'
rtc_algorithm = ('Area-Based SAR Radiometric Terrain Correction'
' (RTC-AP)')

# burst and mosaic snap values
burst_snap_x = cfg_in.groups.processing.geocoding.bursts_geogrid.x_snap
Expand Down Expand Up @@ -879,15 +880,6 @@ def get_metadata_dict(product_id: str,
'backscatter_dB = 10*log10(backscatter_linear)',
'Equation to convert provided backscatter to decibel (dB)'],

# 1.7.8
('metadata/processingInformation/parameters/geocoding/'
'/ceosAnalysisReadyDataPixelCoordinateConvention'):
['processing_information_'
'ceos_analysis_ready_data_pixel_coordinate_convention',
ALL_PRODUCTS,
'ULC',
'CEOS Analysis Ready Data (CARD) pixel coordinate convention'],

# 4.4
('metadata/processingInformation/parameters/geocoding/'
'burstGeogridSnapX'):
Expand Down Expand Up @@ -1117,18 +1109,26 @@ def get_metadata_dict(product_id: str,
]

metadata_dict['identification/boundingBox'] = \
[None,
['bounding_box',
ALL_PRODUCTS,
np.array(xy_bounding_box), # 1.7.5
'Bounding box of the product, in order of xmin, ymin, xmax, ymax']

# Attribute `epsg` for HDF5 dataset /identification/boundingBox
metadata_dict['identification/boundingBox[epsg]'] = \
[None,
['bounding_box_epsg_code',
ALL_PRODUCTS,
str(epsg_geogrid),
'Bounding box EPSG code']

# 1.7.8
metadata_dict['identification/boundingBox'
'[pixel_coordinate_convention]'] = \
['bounding_box_pixel_coordinate_convention',
ALL_PRODUCTS,
'Upper left corner (ULC)',
'Bounding box pixel coordinate convention']

metadata_dict['identification/burstID'] = \
['burst_id',
ALL_PRODUCTS,
Expand Down

0 comments on commit dbb4f49

Please sign in to comment.