Closed falkamelung closed 1 year ago
It turns out this is a missing-decimal issue (this is TerraSAR-X). If I give another decimal 25.87937,-80.12414
I get 1713/747
and it runs through. It would be good to have view.py
would display an additional decimal if a high-enough zoom factor is reached.
reference_point.py inputs/ifgramStack.h5 -c avgSpatialCoh.h5 --lookup inputs/geometryRadar.h5 -m maskConnComp.h5 -l 25.87937 -L -80.12414
--------------------------------------------------
input reference point in lat/lon: (25.87937, -80.12414)
input reference point in y/x: (1713, 747)
mask: maskConnComp.h5
I remember having similar issues before. Thank you @falkamelung for reporting this and locating the cause! It should have been fixed now by the PR above. Cheers.
Description of the problem Although having carefully selected the reference point, I occasionally get the error message
ValueError: input reference point is in masked OUT area defined by maskConnComp.h5!
. Digging into this, I noticed thatview.py
andreference_point.py
have differenty/x
coordinates for the same geographic coordinates.I am using
mintpy.reference.lalo = 25.8794,-80.1241
. According toview.py
, the radar coordinates are y/x= 1713.7/747.7 (see screenshot below, mask value=1). However,reference_point.py
, which shows the same lat/long coordinates, showsy/x: (1711, 745)
. So the coordinates are off by 2 pixels??view.py showing different Y/X coordinates:
Full script that generated the error
Full error message
System information
Operating system: Linux
Python environment: conda:
python --version Python 3.9.15
MintPy version:
development (latest)
Your custom / default template file (if the bug is related to a specific dataset):