Skip to content

Commit

Permalink
Merge pull request #252 from ASFHyP3/remove_legacy_option
Browse files Browse the repository at this point in the history
remove legacy option in the arguments of the prepare_rtc_job and subm…
  • Loading branch information
cirrusasf authored Dec 22, 2023
2 parents 244a532 + 4550892 commit 07dd086
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ 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).

## [4.0.1]
### Removed
* Legacy option in the `dem_name` argument of `prepare_rtc_job` and `submit_rtc_job` functions in hyp3.py.

## [4.0.0]
### Added
* The HyP3 SDK now explicitly supports Python 3.9-3.12
Expand Down
12 changes: 6 additions & 6 deletions src/hyp3_sdk/hyp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def submit_rtc_job(self,
resolution: Literal[10, 20, 30] = 30,
scale: Literal['amplitude', 'decibel', 'power'] = 'power',
speckle_filter: bool = False,
dem_name: Literal['copernicus', 'legacy'] = 'copernicus') -> Batch:
dem_name: Literal['copernicus'] = 'copernicus') -> Batch:
"""Submit an RTC job
Args:
Expand All @@ -264,8 +264,8 @@ def submit_rtc_job(self,
resolution: Desired output pixel spacing in meters
scale: Scale of output image; power, decibel or amplitude
speckle_filter: Apply an Enhanced Lee speckle filter
dem_name: Name of the DEM to use for processing. `copernicus` will use the Copernicus GLO-30 Public DEM,
while `legacy` will use the DEM with the best coverage from ASF's legacy SRTM/NED datasets.
dem_name: Name of the DEM to use for processing. `copernicus` is the only option, and it will use
the Copernicus GLO-30 Public DEM.
Returns:
A Batch object containing the RTC job
Expand All @@ -288,7 +288,7 @@ def prepare_rtc_job(cls,
resolution: Literal[10, 20, 30] = 30,
scale: Literal['amplitude', 'decibel', 'power'] = 'power',
speckle_filter: bool = False,
dem_name: Literal['copernicus', 'legacy'] = 'copernicus') -> dict:
dem_name: Literal['copernicus'] = 'copernicus') -> dict:
"""Submit an RTC job
Args:
Expand All @@ -305,8 +305,8 @@ def prepare_rtc_job(cls,
resolution: Desired output pixel spacing in meters
scale: Scale of output image; power, decibel or amplitude
speckle_filter: Apply an Enhanced Lee speckle filter
dem_name: Name of the DEM to use for processing. `copernicus` will use the Copernicus GLO-30 Public DEM,
while `legacy` will use the DEM with the best coverage from ASF's legacy SRTM/NED datasets.
dem_name: Name of the DEM to use for processing. `copernicus` is the only option, and it will use
the Copernicus GLO-30 Public DEM.
Returns:
A dictionary containing the prepared RTC job
Expand Down

0 comments on commit 07dd086

Please sign in to comment.