ESMG / pyroms

Python tools for the Regional Ocean Modeling System (ROMS)
Other
138 stars 88 forks source link

Update grid.py to fix bug in spherical handling #7

Closed JamiePringle closed 6 years ago

JamiePringle commented 6 years ago

this old code assumed that spherical = nc.variables['spherical'][:] returns a string if the netcdf type is char. This is not true, it returns a sequence of bytes. I put in code to convert it, and if it fails assumes it is an integer.

This bug was only triggered if spherical was "F"