SODA grid problem in pyroms ...

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
turuncu
Posts: 128
Joined: Tue Feb 01, 2005 8:21 pm
Location: Istanbul Technical University (ITU)
Contact:

SODA grid problem in pyroms ...

#1 Unread post by turuncu »

Hi,

I try to create initial condition file using pyroms but get_nc_BGrid_SODA call gives me following error,

Code: Select all

In [22]: src_grd = pyroms_toolbox.BGrid_SODA.get_nc_BGrid_SODA(src_grid_file, name=src_grid_name, area='global')---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
/Volumes/dali/ActiveWorks/works/roms.ncl/apps/med/pyroms/<ipython-input-22-a26b83b91381> in <module>()
----> 1 src_grd = pyroms_toolbox.BGrid_SODA.get_nc_BGrid_SODA(src_grid_file, name=src_grid_name, area='global')

/Volumes/dali/progs/pyroms/32/lib/python2.7/site-packages/pyroms_toolbox/BGrid_SODA/get_nc_BGrid_SODA.pyc in get_nc_BGrid_SODA(grdfile, name, area, xrange, yrange, ystart)
     25 
     26     depth = nc.variables['DEPTH'][:]
---> 27     dep = nc.variables['DEPTH_bnds'][:]
     28     depth_bnds = np.zeros(depth.shape[0]+1)
     29     depth_bnds[:-1] = dep[:,0]

KeyError: 'DEPTH_bnds'
The problem is original SODA file in the following link

http://dsrs.atmos.umd.edu/DATA/soda_2.1.6/

does not contain variable DEPTH_bnds, MASK_UV etc. Is there anybody that can give the link for this version of SODA grid file?

Best regards,

--ufuk

turuncu
Posts: 128
Joined: Tue Feb 01, 2005 8:21 pm
Location: Istanbul Technical University (ITU)
Contact:

Re: SODA grid problem in pyroms ...

#2 Unread post by turuncu »

Hi,

I wrote a NCL script to create SODA grid file from SODA data file. It basically creates the the grid file which includes DEPTH_bnds, MASK_T and MASK_UV variables. It works in my case. You can get and try it :)

Regards,

--ufuk
Attachments
SODA_grid.ncl
NCL script to create SODA grid file ...
(2.83 KiB) Downloaded 354 times

Post Reply