Hello everyone, when I use pyroms to make clim with the example named Palau_HYCOM,I meet a mistake like this:
File "make_clm.py", line 34, in <module>
src_grd = pyroms_toolbox.Grid_HYCOM.get_nc_Grid_HYCOM('/run/media/root/8E2A6BBD2A6BA0C7/data/HYCOM_SCS_grid.nc')
File "/opt/pyroms/lib/python3.6/site-packages/pyroms_toolbox/Grid_HYCOM/get_nc_Grid_HYCOM.py", line 44, in get_nc_Grid_HYCOM
bottom = int((nlev-1) - bottom)
TypeError: only size-1 arrays can be converted to Python scalars
I search in google, the error may be due to bottom is an array ,not a number.
Could anyone help me with this? Thanks in advance!
My python is Python 3.6.4 |Anaconda custom (64-bit). and my linux is centos7.
Wangqian
error with pyroms.get_nc_Grid_HYCOM.py
Re: error with pyroms.get_nc_Grid_HYCOM.py
Sorry about that. I had cleaned up some of those, but not all. Do a "git pull" to get the fix.
Re: error with pyroms.get_nc_Grid_HYCOM.py
It worked ! Thank you very muchkate wrote:Sorry about that. I had cleaned up some of those, but not all. Do a "git pull" to get the fix.
WangQian