-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More integration tests for GRIB1 files. * Test coverage for timeRangeIndicators. * Add Polar Stereo South coverage for GRIB1. * Add Reduced GG coverage for GRIB 1. * Add coverage for identification of y-wind in GRIB1. * Add coverage for CF-mapping in GRIB1. * Widen reduced GG GRIB1 test to cover ML level type. * Refactor test_reduced_gg_grib1 into TestBasicLoad. * Tidy new tests.
- Loading branch information
1 parent
640ebf4
commit d44fdf9
Showing
19 changed files
with
949 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/iris_grib/tests/results/integration/load_convert/sample_file_loads/bulletin_40bytes.cml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" ?> | ||
<cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
<cube dtype="float64" long_name="icao_standard_atmosphere_reference_height" units="m"> | ||
<attributes> | ||
<attribute name="GRIB_PARAM" value="GRIB2:d000c003n003"/> | ||
</attributes> | ||
<coords> | ||
<coord> | ||
<dimCoord id="1d45e087" points="[15]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int64"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="9c8bdf81" points="[367902.]" shape="(1,)" standard_name="forecast_reference_time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/> | ||
</coord> | ||
<coord datadims="[0]"> | ||
<dimCoord id="77a50eb5" points="[ 90. , 88.75, 87.5 , ..., -87.5 , -88.75, | ||
-90. ]" shape="(145,)" standard_name="latitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6371229.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord datadims="[1]"> | ||
<dimCoord circular="True" id="f913a8b3" points="[ 0. , 1.25, 2.5 , ..., 356.25, 357.5 , | ||
358.75]" shape="(288,)" standard_name="longitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6371229.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord> | ||
<dimCoord id="cb784457" points="[367917.]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="e2d6f010" points="[0.]" shape="(1,)" units="Unit('unknown')" value_type="float64"> | ||
<attributes> | ||
<attribute name="GRIB_fixed_surface_type" value="11"/> | ||
</attributes> | ||
</dimCoord> | ||
</coord> | ||
</coords> | ||
<cellMethods/> | ||
<data checksum="0x47eb69cc" dtype="float64" mask_checksum="0x12cff8b4" shape="(145, 288)"/> | ||
</cube> | ||
</cubes> |
47 changes: 47 additions & 0 deletions
47
src/iris_grib/tests/results/integration/load_convert/sample_file_loads/bulletin_41bytes.cml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" ?> | ||
<cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
<cube dtype="float64" units="unknown"> | ||
<attributes> | ||
<attribute name="GRIB_PARAM" value="GRIB1:t001c085n002"/> | ||
</attributes> | ||
<coords> | ||
<coord> | ||
<dimCoord id="1d45e087" points="[72]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int32"/> | ||
</coord> | ||
<coord datadims="[0]"> | ||
<dimCoord id="98bcd589" points="[ 45. , 43.5, 42. , 40.5, 39. , 37.5, 36. , | ||
34.5, 33. , 31.5, 30. , 28.5, 27. , 25.5, | ||
24. , 22.5, 21. , 19.5, 18. , 16.5, 15. , | ||
13.5, 12. , 10.5, 9. , 7.5, 6. , 4.5, | ||
3. , 1.5, 0. , -1.5, -3. , -4.5, -6. , | ||
-7.5, -9. , -10.5, -12. , -13.5, -15. , -16.5, | ||
-18. , -19.5, -21. , -22.5, -24. , -25.5, -27. , | ||
-28.5, -30. , -31.5, -33. , -34.5, -36. , -37.5, | ||
-39. , -40.5, -42. , -43.5, -45. ]" shape="(61,)" standard_name="latitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord datadims="[1]"> | ||
<dimCoord id="160a738f" points="[-30. , -28.5, -27. , -25.5, -24. , -22.5, -21. , | ||
-19.5, -18. , -16.5, -15. , -13.5, -12. , -10.5, | ||
-9. , -7.5, -6. , -4.5, -3. , -1.5, 0. , | ||
1.5, 3. , 4.5, 6. , 7.5, 9. , 10.5, | ||
12. , 13.5, 15. , 16.5, 18. , 19.5, 21. , | ||
22.5, 24. , 25.5, 27. , 28.5, 30. , 31.5, | ||
33. , 34.5, 36. , 37.5, 39. , 40.5, 42. , | ||
43.5, 45. , 46.5, 48. , 49.5, 51. , 52.5, | ||
54. , 55.5, 57. , 58.5, 60. ]" shape="(61,)" standard_name="longitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord> | ||
<auxCoord id="61bde96d" long_name="originating_centre" points="['unknown centre lfpw']" shape="(1,)" units="Unit('no_unit')" value_type="string"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="cb784457" points="[379872.]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/> | ||
</coord> | ||
</coords> | ||
<cellMethods/> | ||
<data checksum="0x6b50c19a" dtype="float64" shape="(61, 61)"/> | ||
</cube> | ||
</cubes> |
34 changes: 34 additions & 0 deletions
34
...is_grib/tests/results/integration/load_convert/sample_file_loads/mapped_cf_data_grib1.cml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" ?> | ||
<cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
<cube dtype="float64" long_name="sea_surface_temperature" standard_name="sea_surface_temperature" units="K"> | ||
<attributes> | ||
<attribute name="GRIB_PARAM" value="GRIB1:t128c098n034"/> | ||
</attributes> | ||
<coords> | ||
<coord> | ||
<dimCoord id="1d45e087" points="[0]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int32"/> | ||
</coord> | ||
<coord datadims="[0]"> | ||
<dimCoord id="98bcd589" points="[ 90., 89., 88., ..., -88., -89., -90.]" shape="(181,)" standard_name="latitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord datadims="[1]"> | ||
<dimCoord circular="True" id="160a738f" points="[ 0., 1., 2., ..., 357., 358., 359.]" shape="(360,)" standard_name="longitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord> | ||
<auxCoord id="61bde96d" long_name="originating_centre" points="['European Centre for Medium Range Weather Forecasts']" shape="(1,)" units="Unit('no_unit')" value_type="string"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="6eef7051" long_name="pressure" points="[500]" shape="(1,)" units="Unit('hPa')" value_type="int32"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="cb784457" points="[317364.]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/> | ||
</coord> | ||
</coords> | ||
<cellMethods/> | ||
<data checksum="0xaf017271" dtype="float64" shape="(181, 360)"/> | ||
</cube> | ||
</cubes> |
39 changes: 39 additions & 0 deletions
39
...rib/tests/results/integration/load_convert/sample_file_loads/polar_stereo_south_grib1.cml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" ?> | ||
<cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
<cube dtype="float64" units="unknown"> | ||
<attributes> | ||
<attribute name="GRIB_PARAM" value="GRIB1:t002c007n061"/> | ||
</attributes> | ||
<coords> | ||
<coord> | ||
<dimCoord bounds="[[0., 1.]]" id="1d45e087" points="[0.5]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="float64"/> | ||
</coord> | ||
<coord> | ||
<auxCoord id="61bde96d" long_name="originating_centre" points="['US National Weather Service, National Centres for Environmental Prediction']" shape="(1,)" units="Unit('no_unit')" value_type="string"/> | ||
</coord> | ||
<coord datadims="[1]"> | ||
<dimCoord id="71946cd5" points="[-1901416.77987822, -1896653.77987822, | ||
-1891890.77987822, ..., 3423617.22012178, | ||
3428380.22012178, 3433143.22012178]" shape="(1121,)" standard_name="projection_x_coordinate" units="Unit('m')" value_type="float64"> | ||
<polarStereographic central_lat="-90.0" central_lon="-105.0" ellipsoid="GeogCS(6367470.0)" false_easting="0.0" false_northing="0.0" scale_factor_at_projection_origin="None" true_scale_lat="60.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord datadims="[0]"> | ||
<dimCoord id="88c2c643" points="[-7613145.49149694, -7608382.49149694, | ||
-7603619.49149694, ..., -3431231.49149694, | ||
-3426468.49149694, -3421705.49149694]" shape="(881,)" standard_name="projection_y_coordinate" units="Unit('m')" value_type="float64"> | ||
<polarStereographic central_lat="-90.0" central_lon="-105.0" ellipsoid="GeogCS(6367470.0)" false_easting="0.0" false_northing="0.0" scale_factor_at_projection_origin="None" true_scale_lat="60.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord> | ||
<dimCoord bounds="[[380337., 380338.]]" id="cb784457" points="[380337.5]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/> | ||
</coord> | ||
</coords> | ||
<cellMethods> | ||
<cellMethod method="sum"> | ||
<coord name="time"/> | ||
</cellMethod> | ||
</cellMethods> | ||
<data checksum="0x75146405" dtype="float64" mask_checksum="0xdbe0da54" shape="(881, 1121)"/> | ||
</cube> | ||
</cubes> |
45 changes: 45 additions & 0 deletions
45
src/iris_grib/tests/results/integration/load_convert/sample_file_loads/reduced_gg_grib1.cml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" ?> | ||
<cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
<cube dtype="float64" long_name="air_temperature" standard_name="air_temperature" units="K"> | ||
<attributes> | ||
<attribute name="GRIB_PARAM" value="GRIB1:t128c098n130"/> | ||
</attributes> | ||
<coords> | ||
<coord> | ||
<dimCoord id="1d45e087" points="[0]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int32"/> | ||
</coord> | ||
<coord datadims="[0]"> | ||
<auxCoord id="98bcd589" points="[ 87.86379884, 87.86379884, 87.86379884, ..., | ||
-87.86379884, -87.86379884, -87.86379884]" shape="(6114,)" standard_name="latitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</auxCoord> | ||
</coord> | ||
<coord> | ||
<dimCoord id="c9091dc6" long_name="level_pressure" points="[2.00004005]" shape="(1,)" units="Unit('Pa')" value_type="float64"/> | ||
</coord> | ||
<coord datadims="[0]"> | ||
<auxCoord id="160a738f" points="[ 0., 18., 36., ..., 306., 324., 342.]" shape="(6114,)" standard_name="longitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</auxCoord> | ||
</coord> | ||
<coord> | ||
<dimCoord id="38fd0305" points="[1]" shape="(1,)" standard_name="model_level_number" units="Unit('1')" value_type="int32"> | ||
<attributes> | ||
<attribute name="positive" value="up"/> | ||
</attributes> | ||
</dimCoord> | ||
</coord> | ||
<coord> | ||
<auxCoord id="61bde96d" long_name="originating_centre" points="['European Centre for Medium Range Weather Forecasts']" shape="(1,)" units="Unit('no_unit')" value_type="string"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="a5c170db" long_name="sigma" points="[0.]" shape="(1,)" units="Unit('1')" value_type="float64"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="cb784457" points="[326292.]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/> | ||
</coord> | ||
</coords> | ||
<cellMethods/> | ||
<data checksum="0x6fe0ee2c" dtype="float64" shape="(6114,)"/> | ||
</cube> | ||
</cubes> |
31 changes: 31 additions & 0 deletions
31
...is_grib/tests/results/integration/load_convert/sample_file_loads/second_order_packing.cml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" ?> | ||
<cubes xmlns="urn:x-iris:cubeml-0.2"> | ||
<cube dtype="float64" units="unknown"> | ||
<attributes> | ||
<attribute name="GRIB_PARAM" value="GRIB1:t001c085n008"/> | ||
</attributes> | ||
<coords> | ||
<coord> | ||
<dimCoord id="1d45e087" points="[0]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int32"/> | ||
</coord> | ||
<coord datadims="[0]"> | ||
<dimCoord id="98bcd589" points="[57. , 56.9, 56.8, ..., 35.2, 35.1, 35. ]" shape="(221,)" standard_name="latitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord datadims="[1]"> | ||
<dimCoord id="160a738f" points="[-11. , -10.9, -10.8, ..., 16.8, 16.9, 17. ]" shape="(281,)" standard_name="longitude" units="Unit('degrees')" value_type="float64"> | ||
<geogCS earth_radius="6367470.0"/> | ||
</dimCoord> | ||
</coord> | ||
<coord> | ||
<auxCoord id="61bde96d" long_name="originating_centre" points="['unknown centre lfpw']" shape="(1,)" units="Unit('no_unit')" value_type="string"/> | ||
</coord> | ||
<coord> | ||
<dimCoord id="cb784457" points="[-17259552.]" shape="(1,)" standard_name="time" units="Unit('hours since 1970-01-01 00:00:00', calendar='standard')" value_type="float64"/> | ||
</coord> | ||
</coords> | ||
<cellMethods/> | ||
<data checksum="0x7c584569" dtype="float64" shape="(221, 281)"/> | ||
</cube> | ||
</cubes> |
Oops, something went wrong.