Code: Select all
pyroms_toolbox.nc_create_roms_bdry_file
The function call is:
Code: Select all
nc_create_roms_bdry_file(filename, grd, ocean_time)
so I tried:
Code: Select all
pyroms_toolbox.nc_create_roms_bdry_file('test_bry.nc', grd, 0)
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyroms_toolbox/nc_create_roms_bdry_file.py", line 86, in nc_create_roms_bdry_file
nc.variables['ocean_time'].long_name = ocean_time.long_name
AttributeError: 'str' object has no attribute 'long_name'
EDIT: I'd also like to know what ocean_time.field is supposed to be. Looking at the CDL file I only see long_name, units, and calendar as attributes.