MintPy icon indicating copy to clipboard operation
MintPy copied to clipboard

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

Open laxmangeo opened this issue 1 year ago • 1 comments

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

laxmangeo avatar May 22 '24 10:05 laxmangeo

👋 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.

welcome[bot] avatar May 22 '24 10:05 welcome[bot]

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

soroushyasini avatar May 26 '24 09:05 soroushyasini

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

laxmangeo avatar May 27 '24 06:05 laxmangeo

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 avatar May 27 '24 12:05 soroushyasini

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

soroushyasini avatar May 27 '24 12:05 soroushyasini

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

laxmangeo avatar May 28 '24 05:05 laxmangeo

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.

soroushyasini avatar May 28 '24 20:05 soroushyasini

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.

laxmangeo avatar May 31 '24 05:05 laxmangeo

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 ?

soroushyasini avatar May 31 '24 19:05 soroushyasini

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

laxmangeo avatar Jun 03 '24 04:06 laxmangeo

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

soroushyasini avatar Jun 03 '24 06:06 soroushyasini