GeoscienceAustralia / PyRate

A Python tool for estimating velocity and time-series from Interferometric Synthetic Aperture Radar (InSAR) data.
https://geoscienceaustralia.github.io/PyRate/
Apache License 2.0
199 stars 69 forks source link

Error Handling: error raise message is incorrect #362

Closed adeane-ga closed 2 years ago

adeane-ga commented 2 years ago

Very simple problem and fix Line 315 of prepifg_helper.py has an error exception message that states the wrong case.

https://github.com/GeoscienceAustralia/PyRate/blob/8203989e7d9b675491e79610cff04728d8dc3973/pyrate/core/prepifg_helper.py#L314-L317

Should state:

ifgxfirst must be less than ifgxlast

adu461386118 commented 2 years ago

agree, ifgxfirst and ifgxlast are two longitude values, ifgxfirst should be smaller than ifgxlast,

adeane-ga commented 2 years ago

Closing this issue because it was fixed with this merge into develop: https://github.com/GeoscienceAustralia/PyRate/pull/369

Thanks.