Skip to content

Commit

Permalink
Adding support for GDT 32678 and 32769.
Browse files Browse the repository at this point in the history
In templates.py, adding template classes for templates 32678 and 32679.
  • Loading branch information
EricEngle-NOAA committed Nov 1, 2023
1 parent ef1c55e commit f7ecf04
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions grib2io/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,12 @@ def __get__(self, obj, objtype=None):
elif obj.gdtn == 40:
projparams['proj'] = 'eqc'
elif obj.gdtn == 32769:
# TODO: Work in progress...
#projparams['o_proj'] = 'longlat'
#projparams['proj'] = 'ob_tran'
projparams['o_proj'] = 'longlat'
projparams['proj'] = 'ob_tran'
projparams['o_lat_p'] = 90.0 - obj.latitudeCenterGridpoint
#projparams['o_lon_p'] = obj.longitudeCenterGridpoint - 360.0 if obj.longitudeCenterGridpoint > 180.0 else obj.longitudeCenterGridpoint
#projparams['o_lon_p'] = 180.0 - (360. - obj.longitudeCenterGridpoint)
projparams['o_lon_p'] = 0
return projparams
def __set__(self, obj, value):
raise RuntimeError
Expand Down

0 comments on commit f7ecf04

Please sign in to comment.