diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ecb3b8..f3999df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.7.1] + +### Added +* The back-projection product now includes the elevation.dem.rsc file. + ## [0.7.0] ### Changed diff --git a/src/hyp3_srg/back_projection.py b/src/hyp3_srg/back_projection.py index a62f6ba..bc89a9c 100644 --- a/src/hyp3_srg/back_projection.py +++ b/src/hyp3_srg/back_projection.py @@ -77,6 +77,7 @@ def create_product(work_dir) -> Path: gslc_path = list(work_dir.glob('S1*.geo'))[0] product_name = gslc_path.with_suffix('').name orbit_path = work_dir / f'{product_name}.orbtiming' + rsc_path = work_dir / 'elevation.dem.rsc' zip_path = work_dir / f'{product_name}.zip' parameter_file = work_dir / f'{product_name}.txt' @@ -89,6 +90,7 @@ def create_product(work_dir) -> Path: with zipfile.ZipFile(zip_path, 'w', compression=zipfile.ZIP_STORED) as z: z.write(gslc_path, gslc_path.name) z.write(orbit_path, orbit_path.name) + z.write(rsc_path, rsc_path.name) z.write(parameter_file, parameter_file.name) return zip_path