From 251dae02b1097dd7bb71f392951df2f6d69fbd9b Mon Sep 17 00:00:00 2001 From: "Gustavo H. X. Shiroma" Date: Sun, 24 Sep 2023 20:23:52 -0700 Subject: [PATCH 1/4] Do not uppercase GeoTIFF metadata values --- src/rtc/h5_prep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtc/h5_prep.py b/src/rtc/h5_prep.py index caa9951..5f0a8a6 100644 --- a/src/rtc/h5_prep.py +++ b/src/rtc/h5_prep.py @@ -1199,7 +1199,7 @@ def all_metadata_dict_to_geotiff_metadata_dict(metadata_dict): if key is None: continue if isinstance(value, str): - geotiff_metadata_dict[key.upper()] = str(value).upper() + geotiff_metadata_dict[key.upper()] = str(value) continue geotiff_metadata_dict[key.upper()] = value From ed670c579bc59cd37db91aebc2b178357f1150a3 Mon Sep 17 00:00:00 2001 From: "Gustavo H. X. Shiroma" Date: Sun, 24 Sep 2023 20:26:33 -0700 Subject: [PATCH 2/4] Update version --- Docker/Dockerfile | 2 +- build_docker_image.sh | 2 +- src/rtc/version.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Docker/Dockerfile b/Docker/Dockerfile index 92b1cc1..154641e 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -2,7 +2,7 @@ FROM oraclelinux:8 LABEL author="OPERA ADT" \ description="RTC cal/val release R4" \ - version="1.0.0-final" + version="1.0.1-final" RUN yum -y update &&\ yum -y install curl &&\ diff --git a/build_docker_image.sh b/build_docker_image.sh index dc788c9..1727937 100755 --- a/build_docker_image.sh +++ b/build_docker_image.sh @@ -2,7 +2,7 @@ REPO=opera IMAGE=rtc -TAG=final_1.0.0 +TAG=final_1.0.1 echo "IMAGE is $REPO/$IMAGE:$TAG" diff --git a/src/rtc/version.py b/src/rtc/version.py index 7a58c6e..dc0bfb4 100644 --- a/src/rtc/version.py +++ b/src/rtc/version.py @@ -1 +1 @@ -VERSION='1.0.0' +VERSION='1.0.1' From 8ff8919d09a2e7467443525ac83f1e796f9cc10c Mon Sep 17 00:00:00 2001 From: "Gustavo H. X. Shiroma" Date: Sun, 24 Sep 2023 20:32:10 -0700 Subject: [PATCH 3/4] Update bbox coordinate convention --- src/rtc/h5_prep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtc/h5_prep.py b/src/rtc/h5_prep.py index 5f0a8a6..d78edc6 100644 --- a/src/rtc/h5_prep.py +++ b/src/rtc/h5_prep.py @@ -1095,7 +1095,7 @@ def get_metadata_dict(product_id: str, '[pixel_coordinate_convention]'] = \ ['bounding_box_pixel_coordinate_convention', ALL_PRODUCTS, - 'Upper left corner (ULC)', + "Edges/corners", 'Bounding box pixel coordinate convention'] metadata_dict['identification/burstID'] = \ From cb5a3192dc88b1be4b038a812957bbdef5e08098 Mon Sep 17 00:00:00 2001 From: "Gustavo H. X. Shiroma" Date: Sun, 24 Sep 2023 20:33:05 -0700 Subject: [PATCH 4/4] remove double "=" from backscatter dB conversion --- src/rtc/h5_prep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtc/h5_prep.py b/src/rtc/h5_prep.py index d78edc6..7791516 100644 --- a/src/rtc/h5_prep.py +++ b/src/rtc/h5_prep.py @@ -860,7 +860,7 @@ def get_metadata_dict(product_id: str, ['processing_information' '_output_backscatter_decibel_conversion_equation', ALL_PRODUCTS, - 'backscatter_dB = 10*log10(backscatter_linear)', + '10*log10(backscatter_linear)', 'Equation to convert provided backscatter to decibel (dB)'], # 4.4