insarlab / MintPy

Miami InSAR time-series software in Python
https://mintpy.readthedocs.io
Other
555 stars 244 forks source link

FileExistsError: NO two *.prm files found! for prep_gmtsar.py #1199

Closed laxmangeo closed 1 month ago

laxmangeo commented 1 month ago

Hi, Sir, when I run prep_gmtsar.py below error has came 1_mintpy my directory structure is E:\GMTSAR1\joshimath\intf_all ├── geometry │ └── topo_ll.grd ├── intf_all │ ├──2021009_2021021 │ │ ├── S1_20210110_ALL_F3.LED │ │ ├── S1_20210110_ALL_F3.PRM │ │ ├── S1_20210122_ALL_F3.LED │ │ ├── S1_20210122_ALL_F3.PRM │ │ ├── baseline.txt
│ │ ├── corr.grd │ │ ├── corr_ll.grd │ │ ├── unwrap.grd │ │ └── unwrap_ll.grd │ ├── 2021009_2021033 │ └── ... └── mintpy └──timeseries.txt please suggest me

welcome[bot] commented 1 month 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.

soroushyasini commented 1 month ago

hi, I've encountered this error before. I believe you should rename .LED and .PRM files like this : 20210110.LED, 20210110.PRM and so on

laxmangeo commented 1 month ago

Hi, I was renamed files like 20210110.LED, 20210110.PRM after i ran prep_gmtsar.py i got the new error prep_mitpy

soroushyasini commented 1 month ago

I did not know this issue since I've never encountered it. but i think perhaps it's related to the config file. can you provide me the config file specially the part for setting GMTSAR data path ?

soroushyasini commented 1 month ago

also we can check baseline.txt file, can you provide one of them here ?

laxmangeo commented 1 month ago

yes you are right , this issue from baseline.txt , i solved it , but prep_mintpy1 TypeError: Can't broadcast (410, 350) -> (390, 330)

soroushyasini commented 1 month ago

happy to see that you solve them and yet here are new problems to solve :) this issue is exactly the same issue I am struggling with it , check this link below :

https://github.com/gmtsar/gmtsar/issues/921

i checked each unwrap_ll and corr_ll files that GMTSAR created, they are slightly different in term of pixel size and X,Y dimension. and that is why Mintpy can not make a array of rasters since it need same-sized rasters as input. as far as i know, the problem is because of GMTSAR and not for Mintpy. by the way, i am glad if you find any solution and share it to me.

laxmangeo commented 1 month ago

have you used any region cut at the time of unwrapping? in my case I did that, Now I tried region cut at the generation of interferograms ( batch_tops.config file), problem was solved.

soroushyasini commented 1 month ago

no i did not cut them. interesting... so did you cut by lat/long or by radar coordinates ? and second question, how did you run gmtsar? i mean did you use batch_processing.csh ?

laxmangeo commented 1 month ago

I cut in radar coordinates, I'm using batch_processing.csh

soroushyasini commented 1 month ago

ok I got it, thanks for your help. i guess this issue can be closed as Completed.