Skip to content

Commit 6f63108

Browse files
DPeterKpelson
authored andcommitted
CML changes for cf_units v1.2.0 (#2936)
* CML changes for cf-units v1.2.0 * Add whatsnew entry
1 parent debf929 commit 6f63108

36 files changed

+39
-37
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* The cf_units dependency version has been updated to v1.2.0, which prints shorter unit strings.
2+
For example, the unit ``meter-second^-1`` is now printed as ``m.s-1``.

lib/iris/tests/results/analysis/apply_ifunc.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float32" long_name="squared temperature" units="kelvin^2">
3+
<cube dtype="float32" long_name="squared temperature" units="K2">
44
<coords>
55
<coord>
66
<dimCoord bounds="[[-28083.0, 6477.0]]" id="1d45e087" points="[6477]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int32"/>

lib/iris/tests/results/analysis/apply_ifunc_frompyfunc.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="object" units="kelvin^2">
3+
<cube dtype="object" units="K2">
44
<coords>
55
<coord>
66
<dimCoord bounds="[[-28083.0, 6477.0]]" id="1d45e087" points="[6477]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int32"/>

lib/iris/tests/results/analysis/apply_ufunc.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float32" long_name="squared temperature" units="kelvin^2">
3+
<cube dtype="float32" long_name="squared temperature" units="K2">
44
<coords>
55
<coord>
66
<dimCoord bounds="[[-28083.0, 6477.0]]" id="1d45e087" points="[6477]" shape="(1,)" standard_name="forecast_period" units="Unit('hours')" value_type="int32"/>

lib/iris/tests/results/analysis/calculus/curl_contrived_cartesian2.cml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float64" long_name="u curl of wind" units="0.277777777777778 hertz">
3+
<cube dtype="float64" long_name="u curl of wind" units="0.277777777777778 Hz">
44
<coords>
55
<coord datadims="[2]">
66
<dimCoord id="a2e1fbc2" points="[3.105, 5.315, 7.525, 9.735, 11.945, 14.155,
@@ -31,7 +31,7 @@
3131
<cellMethods/>
3232
<data dtype="float64" shape="(10, 25, 49)" state="loaded"/>
3333
</cube>
34-
<cube dtype="float64" long_name="v curl of wind" units="0.277777777777778 hertz">
34+
<cube dtype="float64" long_name="v curl of wind" units="0.277777777777778 Hz">
3535
<coords>
3636
<coord datadims="[2]">
3737
<dimCoord id="a2e1fbc2" points="[3.105, 5.315, 7.525, 9.735, 11.945, 14.155,
@@ -62,7 +62,7 @@
6262
<cellMethods/>
6363
<data dtype="float64" shape="(10, 25, 49)" state="loaded"/>
6464
</cube>
65-
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 hertz">
65+
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 Hz">
6666
<coords>
6767
<coord datadims="[2]">
6868
<dimCoord id="a2e1fbc2" points="[3.105, 5.315, 7.525, 9.735, 11.945, 14.155,

lib/iris/tests/results/analysis/calculus/grad_contrived1.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 second^-1-radian^-1">
3+
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 s-1.rad-1">
44
<coords>
55
<coord datadims="[0]">
66
<dimCoord id="620d7656" points="[-87.0, -81.0, -75.0, -69.0, -63.0, -57.0, -51.0,

lib/iris/tests/results/analysis/calculus/grad_contrived2.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 second^-1-radian^-1">
3+
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 s-1.rad-1">
44
<coords>
55
<coord datadims="[0]">
66
<dimCoord id="620d7656" points="[-88.7143, -86.1429, -83.5714, -81.0, -78.4286,

lib/iris/tests/results/analysis/calculus/grad_contrived_non_spherical1.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 hertz">
3+
<cube dtype="float64" long_name="w curl of wind" units="0.277777777777778 Hz">
44
<coords>
55
<coord datadims="[1]">
66
<dimCoord id="a2e1fbc2" points="[3.105, 5.315, 7.525, 9.735, 11.945, 14.155,

lib/iris/tests/results/analysis/calculus/handmade2_wrt_lat.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float32" long_name="derivative_of_x_wind_wrt_latitude" units="15.9154943091895 meter-second^-1-radian^-1">
3+
<cube dtype="float32" long_name="derivative_of_x_wind_wrt_latitude" units="15.9154943091895 m.s-1.rad-1">
44
<coords>
55
<coord datadims="[1]">
66
<dimCoord id="77a50eb5" points="[-87.75, -83.25, -78.75, -74.25, -69.75, -65.25,

lib/iris/tests/results/analysis/calculus/handmade2_wrt_lon.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<cubes xmlns="urn:x-iris:cubeml-0.2">
3-
<cube dtype="float32" long_name="derivative_of_x_wind_wrt_longitude" units="15.9154943091895 meter-second^-1-radian^-1">
3+
<cube dtype="float32" long_name="derivative_of_x_wind_wrt_longitude" units="15.9154943091895 m.s-1.rad-1">
44
<coords>
55
<coord datadims="[1]">
66
<dimCoord id="77a50eb5" points="[-90.0, -85.5, -81.0, -76.5, -72.0, -67.5, -63.0,

0 commit comments

Comments
 (0)