From f7ecf0410ef46dc5e9d5458d7613520c879c586e Mon Sep 17 00:00:00 2001 From: Eric Engle Date: Sun, 17 Sep 2023 21:39:56 -0400 Subject: [PATCH] Adding support for GDT 32678 and 32769. In templates.py, adding template classes for templates 32678 and 32679. --- grib2io/templates.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/grib2io/templates.py b/grib2io/templates.py index be7f38f..8b5cd19 100644 --- a/grib2io/templates.py +++ b/grib2io/templates.py @@ -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