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

Known issues and FAQ #244

Open
yumorishita opened this issue Apr 6, 2023 · 19 comments
Open

Known issues and FAQ #244

yumorishita opened this issue Apr 6, 2023 · 19 comments
Labels
good first issue Good for newcomers

Comments

@yumorishita
Copy link
Owner

Unfortunately, I cannot update this LiCSBAS repository for a reason.
All known issues are solved in LiCSBAS2 and it will keep updated. I recommend using LiCSBAS2 if you encounter an issue.

@yumorishita yumorishita added the good first issue Good for newcomers label Apr 6, 2023
@yumorishita
Copy link
Owner Author

ValueError: keyword grid_b is not recognized
#228
#224
#219
Downgrade matplotlib, e.g., to 3.1.

@yumorishita
Copy link
Owner Author

ValueError: A colormap named "SCM.roma0" is already registered
#176 (comment)
#195 (comment)
#198
Downgrade matplotlib, e.g., to 3.4.2.

@yumorishita
Copy link
Owner Author

Step16 (LiCSBAS16_filt_ts.py) get stuck.
#62
#86
Try p16_n_para="1".

p16_n_para="" # default: # of usable CPU

@terramare55
Copy link

Problem solved. It worked!
Thank you again

@yumorishita
Copy link
Owner Author

ModuleNotFoundError: No module named '_gdal'

#299

@yumorishita
Copy link
Owner Author

yumorishita commented Jan 29, 2024

If you have any requests or questions about LiCSAR products (not LiCSBAS), please send an email to 'Contact us' shown at the bottom of https://comet.nerc.ac.uk/COMET-LiCS-portal/.
#323 (comment)

@yumorishita
Copy link
Owner Author

Merge frames: #24

@yumorishita
Copy link
Owner Author

In step13:

File "LiCSBAS/bin/LiCSBAS13_sb_inv.py", line 785, in main
refy1s, refx1s = refy1s[0], refx1s[0] ## Only first index
IndexError: index 0 is out of bounds for axis 0 with size 0

In step12:

File "LiCSBAS/bin/LiCSBAS12_loop_closure.py", line 356, in main
refy1 = refyx[0][0] # start from 0, not 1
IndexError: index 0 is out of bounds for axis 0 with size 0

#6
#56
#63
#284
#295

The cause of the error is

  • The number of interferograms is too small
  • Too many unwrapping errors are included

Try

  • change p11_unw_thre, p11_coh_thre, and/or p12_loop_thre
  • crop the area by step05
  • improve unwrapping quality and/or increase unwrapped data if you created them manually

@marchelgamaliel
Copy link

thank you sir for your response, can you give me some explanation of the variable p11_unw_thre, p11_coh_thre, and/or p12_loop_thre?

@yumorishita
Copy link
Owner Author

About reference point: #102, #266

@yumorishita yumorishita mentioned this issue Mar 10, 2024
@yumorishita
Copy link
Owner Author

LiCSBAS04op_mask_unw.py ver1.3.5 20210105 Y. Morishita
LiCSBAS04op_mask_unw.py -i GEOCml1 -o GEOCml1mask -c 0.1
LiCSBAS/bin/LiCSBAS04op_mask_unw.py:176: FutureWarning: In the future np.bool will be defined as the corresponding NumPy scalar.
bool_mask = np.zeros((length, width), dtype=np.bool)
Traceback (most recent call last):
File "LiCSBAS/bin/LiCSBAS04op_mask_unw.py", line 326, in
sys.exit(main())
^^^^^^
File "LiCSBAS/bin/LiCSBAS04op_mask_unw.py", line 176, in main
bool_mask = np.zeros((length, width), dtype=np.bool)
^^^^^^^
File "miniconda3/envs/licsbas/lib/python3.11/site-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'bool'.
np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, 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.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?

#307 (comment)

@yumorishita
Copy link
Owner Author

Discussion about parameter tuning for a specific case or interpretation of a specific result is out of the scope of the issues in this repository. Please carefully read the LiCSBAS paper, understand the logic, try changing the parameters, and check the result yourself.

@yumorishita
Copy link
Owner Author

LiCSBAS_plot_ts.py and LiCSBAS_cum2vel.py

...
Reading TS_GEOCml1clip/cum_filt.h5
Traceback (most recent call last):
File "LiCSBAS/bin/LiCSBAS_plot_ts.py", line 363, in
refx1, refx2, refy1, refy2 = [int(s) for s in re.split('[:/]', refarea)]
File "re.py", line 231, in split
return _compile(pattern, flags).split(string, maxsplit)
TypeError: cannot use a string pattern on a bytes-like object

Modify
refarea = cumh5['refarea'][()] to refarea = cumh5['refarea'][()].decode('utf-8')

#40
#65
#96

@yumorishita yumorishita changed the title Known issues Known issues and FAQ May 9, 2024
@yumorishita
Copy link
Owner Author

Traceback (most recent call last):
File "LiCSBAS/bin/LiCSBAS11_check_unw.py", line 348, in
sys.exit(main())
File "LiCSBAS/bin/LiCSBAS11_check_unw.py", line 281, in main
os.symlink(os.path.relpath(rasorg, ifg_rasdir), os.path.join(ifg_rasdir, rasname))
PermissionError: [Errno 1] Operation not permitted: '...unw.png' -> '/media/...unw.png'

#89
#277

  • Please check the format of the disk
  • Recommend not using mounted disk

@yumorishita
Copy link
Owner Author

yumorishita commented Jun 8, 2024

Searching latest epoch for mli...
Traceback (most recent call last):
File "LiCSBAS2/bin/LiCSBAS01_get_geotiff.py", line 500, in
sys.exit(main())
^^^^^^
File "LiCSBAS2/bin/LiCSBAS01_get_geotiff.py", line 213, in main
response = requests.get(url)
^^^^^^^^^^^^^^^^^
File "miniconda3/envs/licsbas/lib/python3.12/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "miniconda3/envs/licsbas/lib/python3.12/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "miniconda3/envs/licsbas/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "miniconda3/envs/licsbas/lib/python3.12/site-packages/requests/sessions.py", line 725, in send
history = [resp for resp in gen]
^^^^^^^^^^^^^^^^^^^^^^
File "miniconda3/envs/licsbas/lib/python3.12/site-packages/requests/sessions.py", line 191, in resolve_redirects
raise TooManyRedirects(
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.

or

Download geotiff of unw and cc
Traceback (most recent call last):
  File "LiCSBAS2/bin/LiCSBAS01_get_geotiff.py", line 500, in <module>
    sys.exit(main())
             ^^^^^^
  File "LiCSBAS2/bin/LiCSBAS01_get_geotiff.py", line 340, in main
    print('{} IFGs available from {} to {}'.format(n_ifg, imdates[0], imdates[-1]), flush=True)
                                                          ~~~~~~~^^^
IndexError: list index out of range

The bug was fixed in LiCSBAS2 (yumorishita/LiCSBAS2#55). Please use LiCSBAS2 or apply the fix in your local LiCSBAS script.

@yumorishita
Copy link
Owner Author

What are vel(1) and vel(2) in LiCSBAS_plot_ts.py?

They correspond to cum*.h5 files indicated by -i and --i2 options. By default vel(1) and vel(2) are velocities of filtered and unfiltered time series, respectively.

#117 (comment)

@yumorishita
Copy link
Owner Author

Cannot download files or the downloading speed is slow in LiCSBAS01_get_geotiff.py.

It could be because of LiCSAR server maintenance and there is nothing to do from the LiCSBAS side. Please contact COMET.
https://comet.nerc.ac.uk/comet-lics-portal/
comet@leeds.ac.uk

@MIEMESSI
Copy link

Dear Professor, can LICSBAS process cc and unw data processed by envi

@yumorishita
Copy link
Owner Author

Yes, as long as you prepare the files with the correct format for LiCSBAS.
https://github.com/yumorishita/LiCSBAS/wiki/file_structure#input-for-step-1-1-or-steps-0-3-to-0-5-output-of-step-0-2

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

No branches or pull requests

4 participants