1- # (C) British Crown Copyright 2010 - 2016 , Met Office
1+ # (C) British Crown Copyright 2010 - 2017 , Met Office
22#
33# This file is part of Iris.
44#
3434
3535if tests .GRIB_AVAILABLE :
3636 import gribapi
37+ from iris .fileformats .grib ._load_convert import _MDI as MDI
3738
3839
3940@tests .skip_data
@@ -50,10 +51,10 @@ def test_latlon_forecast_plev(self):
5051 iris .save (cubes , temp_file_path )
5152 expect_diffs = {'totalLength' : (4837 , 4832 ),
5253 'productionStatusOfProcessedData' : (0 , 255 ),
53- 'scaleFactorOfRadiusOfSphericalEarth' : (4294967295 ,
54+ 'scaleFactorOfRadiusOfSphericalEarth' : (MDI ,
5455 0 ),
5556 'shapeOfTheEarth' : (0 , 1 ),
56- 'scaledValueOfRadiusOfSphericalEarth' : (4294967295 ,
57+ 'scaledValueOfRadiusOfSphericalEarth' : (MDI ,
5758 6367470 ),
5859 'typeOfGeneratingProcess' : (0 , 255 ),
5960 'generatingProcessIdentifier' : (128 , 255 ),
@@ -70,10 +71,10 @@ def test_rotated_latlon(self):
7071 iris .save (cubes , temp_file_path )
7172 expect_diffs = {'totalLength' : (648196 , 648191 ),
7273 'productionStatusOfProcessedData' : (0 , 255 ),
73- 'scaleFactorOfRadiusOfSphericalEarth' : (4294967295 ,
74+ 'scaleFactorOfRadiusOfSphericalEarth' : (MDI ,
7475 0 ),
7576 'shapeOfTheEarth' : (0 , 1 ),
76- 'scaledValueOfRadiusOfSphericalEarth' : (4294967295 ,
77+ 'scaledValueOfRadiusOfSphericalEarth' : (MDI ,
7778 6367470 ),
7879 'longitudeOfLastGridPoint' : (392109982 , 32106370 ),
7980 'latitudeOfLastGridPoint' : (19419996 , 19419285 ),
@@ -91,10 +92,10 @@ def test_time_mean(self):
9192 cubes = iris .load (source_grib )
9293 expect_diffs = {'totalLength' : (21232 , 21227 ),
9394 'productionStatusOfProcessedData' : (0 , 255 ),
94- 'scaleFactorOfRadiusOfSphericalEarth' : (4294967295 ,
95+ 'scaleFactorOfRadiusOfSphericalEarth' : (MDI ,
9596 0 ),
9697 'shapeOfTheEarth' : (0 , 1 ),
97- 'scaledValueOfRadiusOfSphericalEarth' : (4294967295 ,
98+ 'scaledValueOfRadiusOfSphericalEarth' : (MDI ,
9899 6367470 ),
99100 'longitudeOfLastGridPoint' : (356249908 , 356249809 ),
100101 'latitudeOfLastGridPoint' : (- 89999938 , - 89999944 ),
0 commit comments