dbekaert / StaMPS

Stanford Method for Persistent Scatterers
http://homepages.see.leeds.ac.uk/~earahoo/stamps/
GNU General Public License v3.0
237 stars 120 forks source link

'Error opening file', while using mt_prep_isce for smallbaseline processing more than 1020 files #33

Open yuluenter opened 3 years ago

yuluenter commented 3 years ago

I have a small baseline network of 160 SLCs. This network contains 622 interferograms image pairs, which are processed and generated by ISCE software. I first used "make_small_baselines_isce" to create the small baseline interferograms listed, everything is fine. But when I use "mt_prep_isce" for preprocessing, the following error occurs like below.

`opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210524_20210605/reference.slc [file 1010]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210524_20210605/secondary.slc [file 1011]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210524_20210611/reference.slc [file 1012]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210524_20210611/secondary.slc [file 1013]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210524_20210617/reference.slc [file 1014]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210524_20210617/secondary.slc [file 1015]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210530_20210605/reference.slc [file 1016]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210530_20210605/secondary.slc [file 1017]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210530_20210611/reference.slc [file 1018]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210530_20210611/secondary.slc [file 1019]... opening /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210530_20210617/reference.slc [file 1020]... Error opening file /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/20210530_20210617/reference.slc terminate called after throwing an instance of 'char const*' Aborted (core dumped)

psclonlat /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/psclonlat.in pscands.1.ij pscands.1.ll opening pscands.1.ij... Error opening file pscands.1.ij

pscdem /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/pscdem.in pscands.1.ij pscands.1.hgt opening pscands.1.ij... pscdem: Error opening file pscands.1.ij

pscphase /mnt/f/ma_landslide/stack1/merged/INSAR_20200803/SMALL_BASELINES/pscphase.in pscands.1.ij pscands.1.ph opening pscands.1.ij... Error opening file pscands.1.ij`

I am quite sure that the memory and hard disk space are sufficient. And the file that need to be opened is not broken. And the "selsbc_patch" program is compiled correctly. Because when I shrink the size of small baseline network to reduce the number of interferograms pairs, the entire "mt_prep_isce" script can run smoothly when the number of opened files is less than 1020. I was able to locate the error at the line 198 of the src/selsbc_patch.c file, but I am very unfamiliar with the C language, and I don’t know how to fix it. Does anyone have good suggestions? Thanks so much!

PeymanPython commented 2 years ago

@yuluenter Could you please let me know what is the process of preparing data in ISCE for the SBAS method in StaMPS? I did the PS completely with pleasant results but I was wondering how is the process for SBAS.

Cheers Peyman

saeedazadnejad commented 2 years ago

Dear Yuluenter

I have the same problem. Have you been able to find a solution?

yuluenter commented 2 years ago

Dear Yuluenter

I have the same problem. Have you been able to find a solution?

Unfortunately, I failed to solve this problem. In the end, I chose to reduce the number of interferograms pairs.

saeedazadnejad commented 2 years ago

I found the problem. You need to upade selsbc_patch.c (last version on github) in src folder and install stamps again.

yuluenter commented 2 years ago

Hi @saeedazadnejad , I want to confirm the last version of selsbc_patch.c is this 4 years ago filehttps://github.com/dbekaert/StaMPS/blob/master/src/selsbc_patch.c ?

saeedazadnejad commented 2 years ago

Yes, it works. Install it.

yuluenter commented 2 years ago

Yes, it works. Install it.

Thank you! I will try it!

saeedazadnejad commented 2 years ago

Yes, it works. Install it.

Thank you! I will try it!

Sorry, I forgot to tell you that before running mt_prep_isce you must run this ( ulimit -n 100000) in terminal. Good luck

qin-xi commented 2 years ago

Installing g++-7 and gcc-7 and make the SatMPS/src again(use the g++-7)