Closed tshreve closed 2 months ago
👋 Thanks for opening your first issue here! Please filled out the template with as much details as possible. We appreciate that you took the time to contribute! Make sure you read our contributing guidelines.
I am glad to hear you find it useful @tshreve. If data_unit
and disp_unit
are the same, the code is supposed to skip and return directly, it would be nice to figure out why it did not: https://github.com/insarlab/MintPy/blob/08ae3f3081d3c3790cbdc3d68b93db84c287dd74/src/mintpy/utils/plot.py#L1657-L1659
Please feel free to open a PR to submit your change. Could you also share an example data and metadata files for testing?
Hi @yunjunz, you can download the data and metadata files here. Since there is no UNIT
defined in the .xml
or .vrt
files, maybe the issue is related to the data_unit
being attributed incorrectly as 'm'
?
I was able to reproduce the error above, thank you for the data files. The data_unit
is recognized as radian
, slightly different from the user-specified rad
. If you run --unit radian
, it will work. However, the code should also work if one type --unit rad
. I think modifying utils.plot.scale_data2disp_unit()
in the part below, as you suggested (to not grab WAVELENGTH
if not necessary), is the right way to go. Could you issue a PR for it?
Hi, I've found
save_kmz.py
very useful to quickly visualize in Google Earth a geocoded, wrapped interferogram processed with ISCE2. However, I've been running:and receiving the following error message:
I fixed this issue by modifying
plot.py
to not calculatephase2range
ifdata_unit
anddisp_unit
are both'radian'
. Happy to share this mod, but was first wondering if there is already a built-in fix. Thanks in advance!System information