Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiCSBAS04op_mask_unw.py #310

Open
AfifJanur opened this issue Nov 17, 2023 · 4 comments
Open

LiCSBAS04op_mask_unw.py #310

AfifJanur opened this issue Nov 17, 2023 · 4 comments

Comments

@AfifJanur
Copy link

Dear Prof Yumorishita

LiCSBAS04op_mask_unw.py ver1.3.5 20210105 Y. Morishita
LiCSBAS04op_mask_unw.py -i GEOCml1GACOS -o GEOCml1GACOSmask -c 0.1

Calculate coh_avg and define mask (<=0.1)
/home/afifjanur/LiCSBAS/bin/LiCSBAS04op_mask_unw.py:176: DeprecationWarning: np.bool is a deprecated alias for the builtin bool. To silence this warning, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
bool_mask = np.zeros((length, width), dtype=np.bool)
Traceback (most recent call last):
File "/home/afifjanur/LiCSBAS/bin/LiCSBAS04op_mask_unw.py", line 326, in
sys.exit(main())
File "/home/afifjanur/LiCSBAS/bin/LiCSBAS04op_mask_unw.py", line 191, in main
coh = io_lib.read_img(ccfile, length, width)
File "/home/afifjanur/LiCSBAS/LiCSBAS_lib/LiCSBAS_io_lib.py", line 199, in read_img
data = np.fromfile(file, dtype=dtype).reshape((length, width))
ValueError: cannot reshape array of size 0 into shape (3077,2842)

I have this error when I try to run batch processing. Do you know how to fix it?

@yumorishita
Copy link
Owner

I guess one of the cc files is empty. Please check the file size of cc files.

@AfifJanur
Copy link
Author

Yes, it turns out there are several empty CC files. I have also checked the LiCSAR data, the cc data is not available. Do you know how to fix it?

@yumorishita
Copy link
Owner

LiCSBAS cannot fix it. (CC: @espiritocz)

@espiritocz
Copy link

what is the frame id and the ifg pair(s) so i can check/fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants