-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addresses issues associated with #3473, #3474 and #3358, loading/saving of ancillary variables to/from netcdf, including quality flags.
- Loading branch information
1 parent
1a2e61c
commit d4f9a3a
Showing
12 changed files
with
411 additions
and
86 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
docs/iris/src/whatsnew/contributions_3.0.0/bugfix_2019-Nov-21_cell_measure_attributes.txt
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,2 @@ | ||
* Fixed a bug where the attributes of cell measures in netcdf-CF files were discarded on | ||
loading. They now appear on the CellMeasure in the loaded cube. |
2 changes: 2 additions & 0 deletions
2
docs/iris/src/whatsnew/contributions_3.0.0/newfeature_2019-Nov-21_netcdf_ancillary_data.txt
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,2 @@ | ||
* CF Ancillary Variables are now loaded from and saved to netcdf-CF files. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
46 changes: 46 additions & 0 deletions
46
lib/iris/tests/results/netcdf/TestNetCDFSave__ancillaries/flag.cdl
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,46 @@ | ||
dimensions: | ||
grid_latitude = 9 ; | ||
grid_longitude = 11 ; | ||
time = 7 ; | ||
variables: | ||
int64 air_potential_temperature(time, grid_latitude, grid_longitude) ; | ||
air_potential_temperature:standard_name = "air_potential_temperature" ; | ||
air_potential_temperature:units = "K" ; | ||
air_potential_temperature:grid_mapping = "rotated_latitude_longitude" ; | ||
air_potential_temperature:coordinates = "air_pressure forecast_period" ; | ||
air_potential_temperature:ancillary_variables = "quality_flag" ; | ||
int rotated_latitude_longitude ; | ||
rotated_latitude_longitude:grid_mapping_name = "rotated_latitude_longitude" ; | ||
rotated_latitude_longitude:longitude_of_prime_meridian = 0. ; | ||
rotated_latitude_longitude:earth_radius = 6371229. ; | ||
rotated_latitude_longitude:grid_north_pole_latitude = 37.5 ; | ||
rotated_latitude_longitude:grid_north_pole_longitude = 177.5 ; | ||
rotated_latitude_longitude:north_pole_grid_longitude = 0. ; | ||
double time(time) ; | ||
time:axis = "T" ; | ||
time:units = "hours since 1970-01-01 00:00:00" ; | ||
time:standard_name = "time" ; | ||
time:calendar = "gregorian" ; | ||
double grid_latitude(grid_latitude) ; | ||
grid_latitude:axis = "Y" ; | ||
grid_latitude:units = "degrees" ; | ||
grid_latitude:standard_name = "grid_latitude" ; | ||
double grid_longitude(grid_longitude) ; | ||
grid_longitude:axis = "X" ; | ||
grid_longitude:units = "degrees" ; | ||
grid_longitude:standard_name = "grid_longitude" ; | ||
double air_pressure ; | ||
air_pressure:units = "Pa" ; | ||
air_pressure:standard_name = "air_pressure" ; | ||
double forecast_period(time) ; | ||
forecast_period:units = "hours" ; | ||
forecast_period:standard_name = "forecast_period" ; | ||
byte quality_flag(time, grid_latitude, grid_longitude) ; | ||
quality_flag:long_name = "quality_flag" ; | ||
quality_flag:flag_meanings = "PASS FAIL MISSING" ; | ||
quality_flag:flag_values = 1b, 2b, 9b ; | ||
|
||
// global attributes: | ||
:source = "Iris test case" ; | ||
:Conventions = "CF-1.7" ; | ||
} |
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
Oops, something went wrong.