diff --git a/Docker/Dockerfile b/Docker/Dockerfile index f5037eaf..33bc3f58 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -37,9 +37,9 @@ SHELL ["conda", "run", "-n", "RTC", "/bin/bash", "-c"] WORKDIR /home/rtc_user/OPERA # installing OPERA s1-reader -RUN curl -sSL https://github.com/isce-framework/s1-reader/archive/refs/tags/v0.2.2.tar.gz -o s1_reader_src.tar.gz &&\ +RUN curl -sSL https://github.com/isce-framework/s1-reader/archive/refs/tags/v0.2.4.tar.gz -o s1_reader_src.tar.gz &&\ tar -xvf s1_reader_src.tar.gz &&\ - ln -s s1-reader-0.2.2 s1-reader &&\ + ln -s s1-reader-0.2.4 s1-reader &&\ rm s1_reader_src.tar.gz &&\ python -m pip install ./s1-reader diff --git a/Docker/environment.yml b/Docker/environment.yml index 7ee611da..6c49cf55 100644 --- a/Docker/environment.yml +++ b/Docker/environment.yml @@ -4,7 +4,7 @@ channels: dependencies: - python>=3.9,<3.10 - gdal>=3.0 - - s1reader>=0.2.2 + - s1reader>=0.2.4 - numpy>=1.20 - pybind11>=2.5 - pyre>=1.11.2 diff --git a/src/rtc/h5_prep.py b/src/rtc/h5_prep.py index 41a2c866..df4c7879 100644 --- a/src/rtc/h5_prep.py +++ b/src/rtc/h5_prep.py @@ -490,6 +490,13 @@ def get_metadata_dict(product_id: str, else: mosaic_snap_y = float(mosaic_snap_y) + # average azimuth pixel spacing + try: + average_zero_doppler_spacing_in_meters = \ + burst_in.average_azimuth_pixel_spacing + except AttributeError: + average_zero_doppler_spacing_in_meters = '(UNSPECIFIED)' + # Geometric accuracy estimated_geometric_accuracy_bias_y = \ cfg_in.groups.processing.geocoding.estimated_geometric_accuracy_bias_y @@ -745,6 +752,12 @@ def get_metadata_dict(product_id: str, ALL_PRODUCTS, burst_in.azimuth_time_interval, 'Time interval in the along-track direction of the source data'], + 'metadata/sourceData/averageZeroDopplerSpacingInMeters': # 1.6.7 + ['source_data_average_zero_doppler_spacing_in_meters', + ALL_PRODUCTS, + average_zero_doppler_spacing_in_meters, + 'Average pixel spacing in meters between consecutive lines' + ' in the along-track direction of the source data'], 'metadata/sourceData/slantRangeSpacing': # 1.6.7 ['source_data_slant_range_spacing', ALL_PRODUCTS,