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

LiCSBAS11_check_unw.py #455

Closed
zahraforoodi opened this issue Feb 12, 2025 · 4 comments
Closed

LiCSBAS11_check_unw.py #455

zahraforoodi opened this issue Feb 12, 2025 · 4 comments

Comments

@zahraforoodi
Copy link

Hi, dear
I install requires packages, but I face the error in step 11.
LiCSBAS_check_install.py

Python version: 3.11.3
OK

Check required modues and versions
astropy(5.1) OK
bs4(4.12.2) OK
h5py(3.7.0) OK
matplotlib(3.7.1) OK
numpy(1.24.3) OK
psutil(5.9.0) OK
requests(2.29.0) OK
statsmodels(0.13.5) OK
gdal(3.6.2) OK

Check LiCSBAS commands
OK

Check LiCSBAS library
OK

LiCSBAS install is OK

%%%
but I face the error
LiCSBAS11_check_unw.py ver1.3.3 20210402 Y. Morishita
LiCSBAS11_check_unw.py -d GEOCml10maskclip -u 0.3 -c 0.05

coh_thre : 0.05
unw_cov_thre : 0.3

Size : 101 x 101

Reading unw and cc data...
0/ 30th unw to identify valid area...
0/ 30th cc and unw...

0/30 ifgs are discarded from further processing.
ifg dates unw_cov coh_av
Traceback (most recent call last):
File "/home/zahra/LiCSBAS/bin/LiCSBAS11_check_unw.py", line 356, in
sys.exit(main())
^^^^^^
File "/home/zahra/LiCSBAS/bin/LiCSBAS11_check_unw.py", line 331, in main
plot_lib.plot_network(ifgdates, bperp, [], pngfile)
File "/home/zahra/LiCSBAS/LiCSBAS_lib/LiCSBAS_plot_lib.py", line 285, in plot_network
ax.grid(b=True, which='major')
File "/home/zahra/.pyenv/versions/miniconda3-3.9-4.9.2/envs/licsbas/lib/python3.11/site-packages/matplotlib/axes/_base.py", line 3194, in grid
self.xaxis.grid(visible, which=which, **kwargs)
File "/home/zahra/.pyenv/versions/miniconda3-3.9-4.9.2/envs/licsbas/lib/python3.11/site-packages/matplotlib/axis.py", line 1660, in grid
self.set_tick_params(which='major', **gridkw)
File "/home/zahra/.pyenv/versions/miniconda3-3.9-4.9.2/envs/licsbas/lib/python3.11/site-packages/matplotlib/axis.py", line 932, in set_tick_params
kwtrans = self._translate_tick_params(kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zahra/.pyenv/versions/miniconda3-3.9-4.9.2/envs/licsbas/lib/python3.11/site-packages/matplotlib/axis.py", line 1076, in _translate_tick_params
raise ValueError(
ValueError: keyword grid_b is not recognized; valid keywords are ['size', 'width', 'color', 'tickdir', 'pad', 'labelsize', 'labelcolor', 'zorder', 'gridOn', 'tick1On', 'tick2On', 'label1On', 'label2On', 'length', 'direction', 'left', 'bottom', 'right', 'top', 'labelleft', 'labelbottom', 'labelright', 'labeltop', 'labelrotation', 'grid_agg_filter', 'grid_alpha', 'grid_animated', 'grid_antialiased', 'grid_clip_box', 'grid_clip_on', 'grid_clip_path', 'grid_color', 'grid_dash_capstyle', 'grid_dash_joinstyle', 'grid_dashes', 'grid_data', 'grid_drawstyle', 'grid_figure', 'grid_fillstyle', 'grid_gapcolor', 'grid_gid', 'grid_in_layout', 'grid_label', 'grid_linestyle', 'grid_linewidth', 'grid_marker', 'grid_markeredgecolor', 'grid_markeredgewidth', 'grid_markerfacecolor', 'grid_markerfacecoloralt', 'grid_markersize', 'grid_markevery', 'grid_mouseover', 'grid_path_effects', 'grid_picker', 'grid_pickradius', 'grid_rasterized', 'grid_sketch_params', 'grid_snap', 'grid_solid_capstyle', 'grid_solid_joinstyle', 'grid_transform', 'grid_url', 'grid_visible', 'grid_xdata', 'grid_ydata', 'grid_zorder', 'grid_aa', 'grid_c', 'grid_ds', 'grid_ls', 'grid_lw', 'grid_mec', 'grid_mew', 'grid_mfc', 'grid_mfcalt', 'grid_ms']

@yumorishita
Copy link
Owner

#244 (comment)

@zahraforoodi
Copy link
Author

Thanks for your help. But, I used LiCSBAS2.

@yumorishita
Copy link
Owner

No, I think you used LiCSBAS because the log said

File "/home/zahra/LiCSBAS/bin/LiCSBAS11_check_unw.py", line 356, in

and

File "/home/zahra/LiCSBAS/LiCSBAS_lib/LiCSBAS_plot_lib.py", line 285, in plot_network
ax.grid(b=True, which='major')

but in LiCSBAS2 the line is ax.grid(which='major')
https://github.com/yumorishita/LiCSBAS2/blob/f1e2592dfb37cfde243f644fcfe554ab4b67bba7/LiCSBAS_lib/LiCSBAS_plot_lib.py#L290

Please use LiCSBAS2.

@zahraforoodi
Copy link
Author

Thank you. My problem was solved.

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

2 participants