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'
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