-
Notifications
You must be signed in to change notification settings - Fork 300
Pre ugridsave refactor #4297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Pre ugridsave refactor #4297
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
23 changes: 23 additions & 0 deletions
23
lib/iris/tests/results/Saver/write/custom_unlimited_dimensions_X2.cdl
This file contains hidden or 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,23 @@ | ||
| dimensions: | ||
| projection_x_coordinate = UNLIMITED ; // (4 currently) | ||
| projection_y_coordinate = UNLIMITED ; // (3 currently) | ||
| variables: | ||
| int64 air_pressure_anomaly(projection_y_coordinate, projection_x_coordinate) ; | ||
| air_pressure_anomaly:standard_name = "air_pressure_anomaly" ; | ||
| air_pressure_anomaly:grid_mapping = "transverse_mercator" ; | ||
| int transverse_mercator ; | ||
| transverse_mercator:grid_mapping_name = "transverse_mercator" ; | ||
| transverse_mercator:longitude_of_central_meridian = -2. ; | ||
| transverse_mercator:latitude_of_projection_origin = 49. ; | ||
| transverse_mercator:false_easting = -400000. ; | ||
| transverse_mercator:false_northing = 100000. ; | ||
| transverse_mercator:scale_factor_at_central_meridian = 0.9996012717 ; | ||
| int64 projection_y_coordinate(projection_y_coordinate) ; | ||
| projection_y_coordinate:axis = "Y" ; | ||
| projection_y_coordinate:units = "m" ; | ||
| projection_y_coordinate:standard_name = "projection_y_coordinate" ; | ||
| int64 projection_x_coordinate(projection_x_coordinate) ; | ||
| projection_x_coordinate:axis = "X" ; | ||
| projection_x_coordinate:units = "m" ; | ||
| projection_x_coordinate:standard_name = "projection_x_coordinate" ; | ||
| } |
29 changes: 29 additions & 0 deletions
29
lib/iris/tests/results/integration/climatology/TestClimatology/cube_to_cube.cdl
This file contains hidden or 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,29 @@ | ||
| dimensions: | ||
| bnds = 2 ; | ||
| latitude = 3 ; | ||
| longitude = 5 ; | ||
| time = 4 ; | ||
| variables: | ||
| byte climatology_test(time, latitude, longitude) ; | ||
| climatology_test:long_name = "climatology test" ; | ||
| climatology_test:units = "Kelvin" ; | ||
| climatology_test:cell_methods = "time: mean over years" ; | ||
| double time(time) ; | ||
| time:axis = "T" ; | ||
| time:climatology = "time_climatology" ; | ||
| time:units = "days since 1970-01-01 00:00:00-00" ; | ||
| time:standard_name = "time" ; | ||
| time:calendar = "gregorian" ; | ||
| double time_climatology(time, bnds) ; | ||
| double latitude(latitude) ; | ||
| latitude:axis = "Y" ; | ||
| latitude:units = "degrees_north" ; | ||
| latitude:standard_name = "latitude" ; | ||
| double longitude(longitude) ; | ||
| longitude:axis = "X" ; | ||
| longitude:units = "degrees_east" ; | ||
| longitude:standard_name = "longitude" ; | ||
|
|
||
| // global attributes: | ||
| :Conventions = "CF-1.7" ; | ||
| } |
84 changes: 84 additions & 0 deletions
84
lib/iris/tests/results/integration/netcdf/TestCellMeasures/round_trip.cdl
This file contains hidden or 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,84 @@ | ||
| dimensions: | ||
| bnds = 2 ; | ||
| bnds_4 = 4 ; | ||
| deptht = 31 ; | ||
| dim2 = 148 ; | ||
| dim3 = 180 ; | ||
| time_counter = 1 ; | ||
| variables: | ||
| float votemper(time_counter, deptht, dim2, dim3) ; | ||
| votemper:standard_name = "sea_water_potential_temperature" ; | ||
| votemper:long_name = "Temperature" ; | ||
| votemper:units = "degC" ; | ||
| votemper:cell_methods = "time_counter: mean" ; | ||
| votemper:coordinates = "nav_lat nav_lon" ; | ||
| votemper:cell_measures = "area: areat" ; | ||
| float time_counter(time_counter) ; | ||
| time_counter:axis = "T" ; | ||
| time_counter:units = "seconds since 0001-01-01 00:00:00" ; | ||
| time_counter:standard_name = "time" ; | ||
| time_counter:long_name = "Time axis" ; | ||
| time_counter:calendar = "360_day" ; | ||
| time_counter:time_origin = " 0001-JAN-01 00:00:00" ; | ||
| time_counter:title = "Time" ; | ||
| float deptht(deptht) ; | ||
| deptht:axis = "Z" ; | ||
| deptht:bounds = "deptht_bnds" ; | ||
| deptht:units = "m" ; | ||
| deptht:standard_name = "depth" ; | ||
| deptht:long_name = "Vertical T levels" ; | ||
| deptht:positive = "down" ; | ||
| deptht:title = "deptht" ; | ||
| deptht:valid_max = 5250.227f ; | ||
| deptht:valid_min = 4.999938f ; | ||
| double deptht_bnds(deptht, bnds) ; | ||
| float nav_lat(dim2, dim3) ; | ||
| nav_lat:bounds = "nav_lat_bnds" ; | ||
| nav_lat:units = "degrees_north" ; | ||
| nav_lat:standard_name = "latitude" ; | ||
| nav_lat:long_name = "Latitude" ; | ||
| nav_lat:nav_model = "Default grid" ; | ||
| nav_lat:valid_max = 89.6139f ; | ||
| nav_lat:valid_min = -78.19058f ; | ||
| double nav_lat_bnds(dim2, dim3, bnds_4) ; | ||
| float nav_lon(dim2, dim3) ; | ||
| nav_lon:bounds = "nav_lon_bnds" ; | ||
| nav_lon:units = "degrees_east" ; | ||
| nav_lon:standard_name = "longitude" ; | ||
| nav_lon:long_name = "Longitude" ; | ||
| nav_lon:nav_model = "Default grid" ; | ||
| nav_lon:valid_max = 180.f ; | ||
| nav_lon:valid_min = -179.7507f ; | ||
| double nav_lon_bnds(dim2, dim3, bnds_4) ; | ||
| double areat(dim2, dim3) ; | ||
| areat:units = "m2" ; | ||
| areat:standard_name = "cell_area" ; | ||
| areat:long_name = "area of grid cell" ; | ||
|
|
||
| // global attributes: | ||
| :DOMAIN_DIM_N001 = "x" ; | ||
| :DOMAIN_DIM_N002 = "y" ; | ||
| :DOMAIN_DIM_N003 = "ncorners" ; | ||
| :DOMAIN_DIM_N004 = "deptht" ; | ||
| :DOMAIN_DIM_N005 = "ndepth_bounds" ; | ||
| :DOMAIN_DIM_N006 = "time_counter" ; | ||
| :DOMAIN_dimensions_ids = 1, 2 ; | ||
| :DOMAIN_halo_size_end = 0, 0 ; | ||
| :DOMAIN_halo_size_start = 0, 0 ; | ||
| :DOMAIN_number = 0 ; | ||
| :DOMAIN_number_total = 1 ; | ||
| :DOMAIN_position_first = 1, 1 ; | ||
| :DOMAIN_position_last = 182, 149 ; | ||
| :DOMAIN_size_global = 182, 149 ; | ||
| :DOMAIN_size_local = 182, 149 ; | ||
| :DOMAIN_type = "box" ; | ||
| :NCO = "4.0.8" ; | ||
| :TimeStamp = "2008-SEP-09 11:18:37 GMT+0000" ; | ||
| :file_name = "ORCA2_1d_00010101_00010101_grid_T_0000.nc" ; | ||
| :history = "Mon Apr 2 10:25:46 2012: /project/ukmo/rhel6/nco/bin/ncks -v votemper,deptht_bounds,nav_lat,nav_lon,areat,latt_bounds,lont_bounds ORCA2_1d_00010101_00010101_grid_T_0000.nc votemper.nc" ; | ||
| :interval_operation = 5760.f ; | ||
| :interval_write = 86400.f ; | ||
| :production = "An IPSL model" ; | ||
| :short_name = "votemper" ; | ||
| :Conventions = "CF-1.7" ; | ||
| } |
10 changes: 10 additions & 0 deletions
10
lib/iris/tests/results/integration/netcdf/TestCellMethod_unknown/unknown_method.cdl
This file contains hidden or 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,10 @@ | ||
| dimensions: | ||
| dim0 = 2 ; | ||
| variables: | ||
| int64 odd_phenomenon(dim0) ; | ||
| odd_phenomenon:long_name = "odd_phenomenon" ; | ||
| odd_phenomenon:cell_methods = "x: oddity" ; | ||
|
|
||
| // global attributes: | ||
| :Conventions = "CF-1.7" ; | ||
| } |
10 changes: 10 additions & 0 deletions
10
...s/results/integration/netcdf/TestConventionsAttributes/patching_conventions_attribute.cdl
This file contains hidden or 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,10 @@ | ||
| dimensions: | ||
| dim0 = 1 ; | ||
| variables: | ||
| double air_temperature(dim0) ; | ||
| air_temperature:standard_name = "air_temperature" ; | ||
| air_temperature:units = "K" ; | ||
|
|
||
| // global attributes: | ||
| :Conventions = "CF-1.7, convention1, convention2" ; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting fix, maybe useful to adopt generally :
Without it, assertCDL fails on a saved scalar cube (i.e. which has no dims)