forked from openclimatefix/ocf_datapipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add test for checking physical limits and zeroes in NWP data o…
- Loading branch information
Showing
59 changed files
with
505 additions
and
2 deletions.
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
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
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 @@ | ||
{} |
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,3 @@ | ||
{ | ||
"zarr_format": 2 | ||
} |
188 changes: 188 additions & 0 deletions
188
tests/data/nwp_data/test_with_zeros_n_limits.zarr/.zmetadata
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,188 @@ | ||
{ | ||
"metadata": { | ||
".zattrs": {}, | ||
".zgroup": { | ||
"zarr_format": 2 | ||
}, | ||
"UKV/.zarray": { | ||
"chunks": [ | ||
1, | ||
1, | ||
10, | ||
352, | ||
274 | ||
], | ||
"compressor": { | ||
"blocksize": 0, | ||
"clevel": 5, | ||
"cname": "lz4", | ||
"id": "blosc", | ||
"shuffle": 1 | ||
}, | ||
"dtype": "<f2", | ||
"fill_value": "NaN", | ||
"filters": null, | ||
"order": "C", | ||
"shape": [ | ||
1, | ||
9, | ||
10, | ||
704, | ||
548 | ||
], | ||
"zarr_format": 2 | ||
}, | ||
"UKV/.zattrs": { | ||
"Conventions": "CF-1.7", | ||
"GRIB_centre": "egrr", | ||
"GRIB_centreDescription": "U.K. Met Office - Exeter", | ||
"GRIB_edition": 2, | ||
"GRIB_subCentre": 0, | ||
"_ARRAY_DIMENSIONS": [ | ||
"variable", | ||
"init_time", | ||
"step", | ||
"y", | ||
"x" | ||
], | ||
"institution": "U.K. Met Office - Exeter" | ||
}, | ||
"init_time/.zarray": { | ||
"chunks": [ | ||
9 | ||
], | ||
"compressor": { | ||
"blocksize": 0, | ||
"clevel": 5, | ||
"cname": "lz4", | ||
"id": "blosc", | ||
"shuffle": 1 | ||
}, | ||
"dtype": "<i8", | ||
"fill_value": null, | ||
"filters": null, | ||
"order": "C", | ||
"shape": [ | ||
9 | ||
], | ||
"zarr_format": 2 | ||
}, | ||
"init_time/.zattrs": { | ||
"_ARRAY_DIMENSIONS": [ | ||
"init_time" | ||
], | ||
"calendar": "proleptic_gregorian", | ||
"long_name": "initial time of forecast", | ||
"standard_name": "forecast_reference_time", | ||
"units": "hours since 2020-04-01 00:00:00" | ||
}, | ||
"step/.zarray": { | ||
"chunks": [ | ||
10 | ||
], | ||
"compressor": { | ||
"blocksize": 0, | ||
"clevel": 5, | ||
"cname": "lz4", | ||
"id": "blosc", | ||
"shuffle": 1 | ||
}, | ||
"dtype": "<i8", | ||
"fill_value": null, | ||
"filters": null, | ||
"order": "C", | ||
"shape": [ | ||
10 | ||
], | ||
"zarr_format": 2 | ||
}, | ||
"step/.zattrs": { | ||
"_ARRAY_DIMENSIONS": [ | ||
"step" | ||
], | ||
"long_name": "time since forecast_reference_time", | ||
"standard_name": "forecast_period", | ||
"units": "hours" | ||
}, | ||
"variable/.zarray": { | ||
"chunks": [ | ||
1 | ||
], | ||
"compressor": { | ||
"blocksize": 0, | ||
"clevel": 5, | ||
"cname": "lz4", | ||
"id": "blosc", | ||
"shuffle": 1 | ||
}, | ||
"dtype": "|O", | ||
"fill_value": null, | ||
"filters": [ | ||
{ | ||
"id": "vlen-utf8" | ||
} | ||
], | ||
"order": "C", | ||
"shape": [ | ||
1 | ||
], | ||
"zarr_format": 2 | ||
}, | ||
"variable/.zattrs": { | ||
"_ARRAY_DIMENSIONS": [ | ||
"variable" | ||
] | ||
}, | ||
"x/.zarray": { | ||
"chunks": [ | ||
548 | ||
], | ||
"compressor": { | ||
"blocksize": 0, | ||
"clevel": 5, | ||
"cname": "lz4", | ||
"id": "blosc", | ||
"shuffle": 1 | ||
}, | ||
"dtype": "<i4", | ||
"fill_value": null, | ||
"filters": null, | ||
"order": "C", | ||
"shape": [ | ||
548 | ||
], | ||
"zarr_format": 2 | ||
}, | ||
"x/.zattrs": { | ||
"_ARRAY_DIMENSIONS": [ | ||
"x" | ||
] | ||
}, | ||
"y/.zarray": { | ||
"chunks": [ | ||
704 | ||
], | ||
"compressor": { | ||
"blocksize": 0, | ||
"clevel": 5, | ||
"cname": "lz4", | ||
"id": "blosc", | ||
"shuffle": 1 | ||
}, | ||
"dtype": "<i4", | ||
"fill_value": null, | ||
"filters": null, | ||
"order": "C", | ||
"shape": [ | ||
704 | ||
], | ||
"zarr_format": 2 | ||
}, | ||
"y/.zattrs": { | ||
"_ARRAY_DIMENSIONS": [ | ||
"y" | ||
] | ||
} | ||
}, | ||
"zarr_consolidated_format": 1 | ||
} |
28 changes: 28 additions & 0 deletions
28
tests/data/nwp_data/test_with_zeros_n_limits.zarr/UKV/.zarray
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,28 @@ | ||
{ | ||
"chunks": [ | ||
1, | ||
1, | ||
10, | ||
352, | ||
274 | ||
], | ||
"compressor": { | ||
"blocksize": 0, | ||
"clevel": 5, | ||
"cname": "lz4", | ||
"id": "blosc", | ||
"shuffle": 1 | ||
}, | ||
"dtype": "<f2", | ||
"fill_value": "NaN", | ||
"filters": null, | ||
"order": "C", | ||
"shape": [ | ||
1, | ||
9, | ||
10, | ||
704, | ||
548 | ||
], | ||
"zarr_format": 2 | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/data/nwp_data/test_with_zeros_n_limits.zarr/UKV/.zattrs
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,15 @@ | ||
{ | ||
"Conventions": "CF-1.7", | ||
"GRIB_centre": "egrr", | ||
"GRIB_centreDescription": "U.K. Met Office - Exeter", | ||
"GRIB_edition": 2, | ||
"GRIB_subCentre": 0, | ||
"_ARRAY_DIMENSIONS": [ | ||
"variable", | ||
"init_time", | ||
"step", | ||
"y", | ||
"x" | ||
], | ||
"institution": "U.K. Met Office - Exeter" | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.