Skip to content

Commit c4675bd

Browse files
committed
Add support for data
1 parent 9986f54 commit c4675bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/iris/fileformats/grib/_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def data(self):
101101
'unsupported quasi-regular grid.')
102102

103103
template = grid_section['gridDefinitionTemplateNumber']
104-
if template in (0, 1, 5, 90):
104+
if template in (0, 1, 5, 12, 90):
105105
# We can ignore the first two bits (i-neg, j-pos) because
106106
# that is already captured in the coordinate values.
107107
if grid_section['scanningMode'] & 0x3f:

lib/iris/tests/unit/fileformats/grib/message/test__GribMessage.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ def section_3(self, scanning_mode):
214214
return _example_section_3(5, scanning_mode)
215215

216216

217+
class Test_data__grid_template_12(tests.IrisTest, Mixin_data__grid_template):
218+
def section_3(self, scanning_mode):
219+
return _example_section_3(12, scanning_mode)
220+
221+
217222
class Test_data__grid_template_90(tests.IrisTest, Mixin_data__grid_template):
218223
def section_3(self, scanning_mode):
219224
section_3 = _example_section_3(90, scanning_mode)

0 commit comments

Comments
 (0)