Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Tue Jul 23, 2019 6:20 pm




Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Author Message
PostPosted: Sun Apr 08, 2018 12:34 pm 
Offline

Joined: Tue Aug 22, 2017 5:38 pm
Posts: 8
Location: Second Institute of Oceanography
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


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 08, 2018 4:01 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3633
Location: IMS/UAF, USA
Sorry about that. I had cleaned up some of those, but not all. Do a "git pull" to get the fix.


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 09, 2018 1:47 pm 
Offline

Joined: Tue Aug 22, 2017 5:38 pm
Posts: 8
Location: Second Institute of Oceanography
kate wrote:
Sorry about that. I had cleaned up some of those, but not all. Do a "git pull" to get the fix.

It worked ! Thank you very much :D
WangQian


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group