LCL problem in v1.0 #1771
stavrosdafis
started this conversation in
General
Replies: 1 comment 2 replies
-
This looks rather similar to the initial issue discussed in #1705. Would you be able to find an example vertical profile from your data that exhibits this particular issue, and share the data for that example? It is known that NaNs in the pressure, temperature, and/or dewpoint fields will cause this particular error (see #1705 (comment)), and hopefully a fix will be coming soon in MetPy v1.0.1! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am experiencing a problem with the calculation of LCL, related to the discussion in ticket #1200
c70ee01
I checked the thermo.py script and everything seems to be aligned with the closed discussions mentioned above.
Despite that, I keep receiving the following error when working with ARPEGE data and I checked that the problem appears over mountainous areas (if that helps). It is easy to skip the calculation of LCL by using other approaches but I also want to calculate other thermodynamic parameters in which the metpy LCL calculation is used (e.g. EL).
Any help will be very much appreciated.
"""
Traceback (most recent call last):
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "Plot.py", line 270, in METP
el, _ = EL(pressure[:, ind_lat, ind_lon] * units('Pa'),
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/metpy/xarray.py", line 677, in wrapper
return func(*args, **kwargs)
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/metpy/units.py", line 320, in wrapper
return func(*args, **kwargs)
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/metpy/calc/thermo.py", line 599, in el
lcl_p, _ = lcl(pressure[0], temperature[0], dewpt[0])
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/metpy/xarray.py", line 677, in wrapper
return func(*args, **kwargs)
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/metpy/units.py", line 320, in wrapper
return func(*args, **kwargs)
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/metpy/calc/thermo.py", line 357, in lcl
lcl_p = so.fixed_point(_lcl_iter, pressure.m, args=(pressure.m, w, temperature),
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/scipy/optimize/minpack.py", line 916, in fixed_point
return _fixed_point_helper(func, x0, args, xtol, maxiter, use_accel)
File "/home/dafis/anaconda3/envs/pyn_env/lib/python3.8/site-packages/scipy/optimize/minpack.py", line 870, in _fixed_point_helper
raise RuntimeError(msg)
RuntimeError: Failed to converge after 50 iterations, value is nan
"""
Beta Was this translation helpful? Give feedback.
All reactions