Selecting DataArrays#
A second powerful feature of cf_xarray
is the ability select DataArrays using special “CF names” like the “latitude”, or “longitude” coordinate names, “X” or “Y” axes names, oreven using the standard_name
attribute if present.
To demonstrate this, let’s load a few datasets
from cf_xarray.datasets import airds, anc, multiple, popds as pop
By axis and coordinate name#
Lets select the "X"
axis on airds
.
# identical to airds["lon"]
airds.cf["X"]
<xarray.DataArray 'lon' (lon: 50)> Size: 200B 200.0 202.5 205.0 207.5 210.0 212.5 ... 310.0 312.5 315.0 317.5 320.0 322.5 Coordinates: * lon (lon) float32 200B 200.0 202.5 205.0 207.5 ... 317.5 320.0 322.5 Attributes: standard_name: longitude long_name: Longitude units: degrees_east axis: X
- lon: 50
- 200.0 202.5 205.0 207.5 210.0 212.5 ... 312.5 315.0 317.5 320.0 322.5
array([200. , 202.5, 205. , 207.5, 210. , 212.5, 215. , 217.5, 220. , 222.5, 225. , 227.5, 230. , 232.5, 235. , 237.5, 240. , 242.5, 245. , 247.5, 250. , 252.5, 255. , 257.5, 260. , 262.5, 265. , 267.5, 270. , 272.5, 275. , 277.5, 280. , 282.5, 285. , 287.5, 290. , 292.5, 295. , 297.5, 300. , 302.5, 305. , 307.5, 310. , 312.5, 315. , 317.5, 320. , 322.5], dtype=float32)
- lon(lon)float32200.0 202.5 205.0 ... 320.0 322.5
- standard_name :
- longitude
- long_name :
- Longitude
- units :
- degrees_east
- axis :
- X
array([200. , 202.5, 205. , 207.5, 210. , 212.5, 215. , 217.5, 220. , 222.5, 225. , 227.5, 230. , 232.5, 235. , 237.5, 240. , 242.5, 245. , 247.5, 250. , 252.5, 255. , 257.5, 260. , 262.5, 265. , 267.5, 270. , 272.5, 275. , 277.5, 280. , 282.5, 285. , 287.5, 290. , 292.5, 295. , 297.5, 300. , 302.5, 305. , 307.5, 310. , 312.5, 315. , 317.5, 320. , 322.5], dtype=float32)
- lonPandasIndex
PandasIndex(Index([200.0, 202.5, 205.0, 207.5, 210.0, 212.5, 215.0, 217.5, 220.0, 222.5, 225.0, 227.5, 230.0, 232.5, 235.0, 237.5, 240.0, 242.5, 245.0, 247.5, 250.0, 252.5, 255.0, 257.5, 260.0, 262.5, 265.0, 267.5, 270.0, 272.5, 275.0, 277.5, 280.0, 282.5, 285.0, 287.5, 290.0, 292.5, 295.0, 297.5, 300.0, 302.5, 305.0, 307.5, 310.0, 312.5, 315.0, 317.5, 320.0, 322.5], dtype='float32', name='lon'))
- standard_name :
- longitude
- long_name :
- Longitude
- units :
- degrees_east
- axis :
- X
This works because airds.lon.attrs
contains axis: "X"
airds.cf
Coordinates:
CF Axes: * X: ['lon']
* Y: ['lat']
* T: ['time']
Z: n/a
CF Coordinates: * longitude: ['lon']
* latitude: ['lat']
* time: ['time']
vertical: n/a
Cell Measures: area: ['cell_area']
volume: n/a
Standard Names: * latitude: ['lat']
* longitude: ['lon']
* time: ['time']
Bounds: n/a
Grid Mappings: n/a
Data Variables:
Cell Measures: area, volume: n/a
Standard Names: air_temperature: ['air']
Bounds: n/a
Grid Mappings: n/a
By standard name#
The variable airds.air
has standard_name: "air_temperature"
, so we can use that to pull it out:
airds.cf["air_temperature"]
<xarray.DataArray 'air' (time: 4, lat: 25, lon: 50)> Size: 20kB [5000 values with dtype=float32] Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 200B 200.0 202.5 205.0 207.5 ... 317.5 320.0 322.5 * time (time) datetime64[ns] 32B 2013-01-01 ... 2013-01-01T18:00:00 cell_area (lat, lon) float32 5kB 2.989e+09 2.989e+09 ... 1.116e+10 Attributes: (12/13) long_name: 4xDaily Air temperature at sigma level 995 units: degK precision: 2 GRIB_id: 11 GRIB_name: TMP var_desc: Air temperature ... ... level_desc: Surface statistic: Individual Obs parent_stat: Other actual_range: [185.16 322.1 ] cell_measures: area: cell_area standard_name: air_temperature
- time: 4
- lat: 25
- lon: 50
- ...
[5000 values with dtype=float32]
- lat(lat)float3275.0 72.5 70.0 ... 20.0 17.5 15.0
- standard_name :
- latitude
- long_name :
- Latitude
- units :
- degrees_north
- axis :
- Y
array([75. , 72.5, 70. , 67.5, 65. , 62.5, 60. , 57.5, 55. , 52.5, 50. , 47.5, 45. , 42.5, 40. , 37.5, 35. , 32.5, 30. , 27.5, 25. , 22.5, 20. , 17.5, 15. ], dtype=float32)
- lon(lon)float32200.0 202.5 205.0 ... 320.0 322.5
- standard_name :
- longitude
- long_name :
- Longitude
- units :
- degrees_east
- axis :
- X
array([200. , 202.5, 205. , 207.5, 210. , 212.5, 215. , 217.5, 220. , 222.5, 225. , 227.5, 230. , 232.5, 235. , 237.5, 240. , 242.5, 245. , 247.5, 250. , 252.5, 255. , 257.5, 260. , 262.5, 265. , 267.5, 270. , 272.5, 275. , 277.5, 280. , 282.5, 285. , 287.5, 290. , 292.5, 295. , 297.5, 300. , 302.5, 305. , 307.5, 310. , 312.5, 315. , 317.5, 320. , 322.5], dtype=float32)
- time(time)datetime64[ns]2013-01-01 ... 2013-01-01T18:00:00
- standard_name :
- time
- long_name :
- Time
array(['2013-01-01T00:00:00.000000000', '2013-01-01T06:00:00.000000000', '2013-01-01T12:00:00.000000000', '2013-01-01T18:00:00.000000000'], dtype='datetime64[ns]')
- cell_area(lat, lon)float322.989e+09 2.989e+09 ... 1.116e+10
array([[2.9893588e+09, 2.9893588e+09, 2.9893588e+09, ..., 2.9893588e+09, 2.9893588e+09, 2.9893588e+09], [3.4731523e+09, 3.4731523e+09, 3.4731523e+09, ..., 3.4731523e+09, 3.4731523e+09, 3.4731523e+09], [3.9503316e+09, 3.9503316e+09, 3.9503316e+09, ..., 3.9503316e+09, 3.9503316e+09, 3.9503316e+09], ..., [1.0853450e+10, 1.0853450e+10, 1.0853450e+10, ..., 1.0853450e+10, 1.0853450e+10, 1.0853450e+10], [1.1015431e+10, 1.1015431e+10, 1.1015431e+10, ..., 1.1015431e+10, 1.1015431e+10, 1.1015431e+10], [1.1156443e+10, 1.1156443e+10, 1.1156443e+10, ..., 1.1156443e+10, 1.1156443e+10, 1.1156443e+10]], dtype=float32)
- latPandasIndex
PandasIndex(Index([75.0, 72.5, 70.0, 67.5, 65.0, 62.5, 60.0, 57.5, 55.0, 52.5, 50.0, 47.5, 45.0, 42.5, 40.0, 37.5, 35.0, 32.5, 30.0, 27.5, 25.0, 22.5, 20.0, 17.5, 15.0], dtype='float32', name='lat'))
- lonPandasIndex
PandasIndex(Index([200.0, 202.5, 205.0, 207.5, 210.0, 212.5, 215.0, 217.5, 220.0, 222.5, 225.0, 227.5, 230.0, 232.5, 235.0, 237.5, 240.0, 242.5, 245.0, 247.5, 250.0, 252.5, 255.0, 257.5, 260.0, 262.5, 265.0, 267.5, 270.0, 272.5, 275.0, 277.5, 280.0, 282.5, 285.0, 287.5, 290.0, 292.5, 295.0, 297.5, 300.0, 302.5, 305.0, 307.5, 310.0, 312.5, 315.0, 317.5, 320.0, 322.5], dtype='float32', name='lon'))
- timePandasIndex
PandasIndex(DatetimeIndex(['2013-01-01 00:00:00', '2013-01-01 06:00:00', '2013-01-01 12:00:00', '2013-01-01 18:00:00'], dtype='datetime64[ns]', name='time', freq=None))
- long_name :
- 4xDaily Air temperature at sigma level 995
- units :
- degK
- precision :
- 2
- GRIB_id :
- 11
- GRIB_name :
- TMP
- var_desc :
- Air temperature
- dataset :
- NMC Reanalysis
- level_desc :
- Surface
- statistic :
- Individual Obs
- parent_stat :
- Other
- actual_range :
- [185.16 322.1 ]
- cell_measures :
- area: cell_area
- standard_name :
- air_temperature
By cf_role
#
cf_xarray
supports identifying variables by the cf_role
attribute.
ds = xr.Dataset(
{"temp": ("x", np.arange(10))},
coords={"cast": ("x", np.arange(10), {"cf_role": "profile_id"})}
)
ds.cf["profile_id"]
<xarray.DataArray 'cast' (x: 10)> Size: 80B 0 1 2 3 4 5 6 7 8 9 Dimensions without coordinates: x Attributes: cf_role: profile_id
- x: 10
- 0 1 2 3 4 5 6 7 8 9
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
- cf_role :
- profile_id
Associated variables#
.cf[key]
will return a DataArray or Dataset containing all variables associated with the key
including ancillary variables and bounds variables (if possible).
In the following, note that the “ancillary variables” q_error_limit
and q_detection_limit
were also returned
anc.cf["specific_humidity"]
<xarray.DataArray 'q' (x: 10, y: 20)> Size: 2kB 0.8571 0.8271 0.09654 1.279 0.2147 ... -2.251 0.9507 0.8362 -0.6667 -0.478 Coordinates: q_error_limit (x, y) float64 2kB 0.8947 0.5252 1.505 ... 1.178 0.9302 q_detection_limit float64 8B 0.001 Dimensions without coordinates: x, y Attributes: standard_name: specific_humidity units: g/g ancillary_variables: q_error_limit q_detection_limit
- x: 10
- y: 20
- 0.8571 0.8271 0.09654 1.279 0.2147 ... 0.9507 0.8362 -0.6667 -0.478
array([[ 0.8571308 , 0.82709755, 0.09653652, 1.27858601, 0.21473695, -0.30971941, 1.59353723, 0.93687783, -1.4179271 , 1.14555269, 0.26862173, 1.50300549, 1.63336271, -1.22029873, -0.39101837, -0.75027149, -0.26034276, 0.84717712, -0.86860314, -0.58820364], [-2.30099465, -0.18418767, -1.18076477, -1.09870473, 0.49767326, 0.05518071, 0.95802222, -1.02772871, -0.62486406, -0.62502842, 0.673462 , -1.4786387 , -0.63648307, 0.74129334, -1.45450722, -0.6905368 , -0.59315084, -0.59769209, 0.06293921, -0.04611955], [ 0.14417476, -0.27847695, 0.81687052, 0.71579727, -0.5799188 , -0.44624407, -1.01243621, 0.45875208, -0.14748194, 0.93729466, -1.57711721, -0.10166233, 0.77931492, -0.04845451, 0.77944003, 0.90955964, 1.24485983, -0.82167402, 1.1755112 , -1.08286072], [-0.95363651, 0.97880017, -1.67074042, 0.85239344, -1.51268122, -0.16030564, 0.06852568, -1.38958253, -1.52924102, 0.12512949, 0.60414353, -0.12009742, 0.02509764, -0.4791425 , 1.3084494 , 0.79818146, -1.20294658, 0.03980037, 1.60587667, 0.12843581], [ 0.59775251, 0.27613387, 0.69474027, -1.65777261, -0.94586714, -2.39605066, -0.61306153, 0.39985938, 0.03459389, -0.93967947, 0.36056471, 0.57395168, -1.10242714, -0.89094841, -0.1391808 , 0.06974472, 0.43555549, -0.86004836, 0.6278917 , 0.07659722], [ 1.54778339, -0.93541259, -1.39748564, -1.4991097 , -0.67661534, 1.15247357, 0.42538009, -1.54544461, -1.1133638 , 0.47939402, -0.58602248, 0.20171854, -0.05833335, -1.24780923, -0.86567637, -0.52194851, -0.58684261, -0.08868515, -0.98504919, 0.13172382], [ 0.48500032, 0.96705898, -0.4584677 , -0.13406965, -0.11654932, 0.4319912 , -0.24370635, -1.5436941 , 0.62864685, 0.76367115, 0.16614259, -0.5819465 , 0.66773872, 0.26707103, -0.56633895, -0.03431814, 0.82344065, -1.23917208, -0.31779493, -0.65052756], [-0.35813173, 0.68494388, 2.03595452, -0.3637777 , -0.58456026, -1.01537081, 1.35239427, -0.76571317, -0.64141603, -1.5571597 , -0.52336249, 0.69809982, 0.35061584, 0.07358713, -0.5738691 , -0.00243074, -1.43828121, -0.34690734, 1.17789628, -1.22957599], [-0.35230907, -1.23665947, -1.3602757 , 0.23823315, 0.16991961, 0.79287655, -0.93710696, -0.93897359, -0.9642232 , -0.31983641, 1.04392064, 1.16715843, -1.03915966, 1.18109269, 1.73888492, 0.14782245, -0.91302846, 0.77623197, -0.18352303, -1.91430854], [ 0.47969059, 0.95181373, -1.42015632, 0.7390917 , 1.51340201, -0.46395742, -1.76964736, -0.74772886, 1.60895812, -0.83948355, -0.88535006, -0.7624763 , -0.41260723, 1.28867292, 0.35343921, -2.2511097 , 0.9507437 , 0.8361651 , -0.66668817, -0.47798103]])
- q_error_limit(x, y)float640.8947 0.5252 ... 1.178 0.9302
- standard_name :
- specific_humidity standard_error
- units :
- g/g
array([[ 0.8946538 , 0.52515343, 1.50548283, -1.99128004, 0.79981141, -2.24592264, -1.01174993, 1.95052589, 1.4846341 , -1.88061403, 1.27640253, 1.21612121, 0.07578008, -0.21799977, -0.27065372, -1.34525869, 0.23088085, -0.03242762, -0.17271413, 1.12986694], [ 0.67580673, 1.31035059, 0.19542446, 0.30091263, 0.4938824 , -1.25169005, -1.03966096, 0.15437734, -1.93771038, -0.97384066, 1.77420362, -1.16839107, -0.87758654, -0.94517543, 1.71272903, -0.16399899, -0.49620505, 0.43470682, 1.63677147, 1.08881026], [ 0.8305265 , 0.2180494 , -1.12470486, 0.59914489, 0.27616651, 1.05030762, -1.06338388, 0.62292286, 0.41452713, -1.01648951, -0.16181158, 0.45683835, -1.18479784, -1.03818549, 0.64409354, -0.66275842, 0.63947513, -0.17716362, -0.22634842, -1.35997195], [-0.25122228, -0.37052597, 0.5870321 , 0.5112095 , -1.04969577, -0.28487558, -0.19686565, 1.48586378, 2.9278997 , 1.38346826, -0.3628766 , 0.35456825, -0.01442165, -1.86605062, 1.05594487, -0.70306695, 0.56813092, -0.75809623, -0.6396347 , -0.1241402 ], [ 0.8217865 , 0.08467875, -0.28121015, -0.3688055 , -0.72205171, -0.95882024, 0.54190148, -0.02811686, -0.51413044, -2.02489241, 1.21050348, 0.03593153, 0.61390056, -0.37217979, -0.27593047, 0.01762655, -0.83896187, -0.3535227 , 0.79248725, 0.59926214], [-0.10909539, -1.76254825, 1.45354831, 0.63064281, -0.02729123, -0.16840588, -0.03156321, -2.06724828, -0.59411559, -1.64665234, 0.59048918, -0.08473004, -0.39171186, 0.45999991, 0.38102176, -0.71469555, -0.96176366, 0.38090932, 0.71293461, 0.68497723], [ 0.01915 , -0.03003747, -2.27077132, 1.43031641, 0.4787713 , -0.09012523, 0.53513197, 0.09103702, 0.5005067 , 2.92534787, 0.73064074, 0.21782437, -1.32144988, -1.61009147, -1.27392992, 0.99870745, 0.48862223, 0.47146427, -0.3702629 , -0.19772003], [ 0.4249022 , 1.21538684, -1.03797012, 0.10355786, 0.24566782, -1.07532713, -1.18675647, -0.27028727, 0.23938081, -2.02474646, 0.03827237, -0.89486107, 0.24732403, 0.24641949, -1.07490806, -1.10342103, -0.86411201, 0.48681504, 0.41329746, -0.06257259], [-2.12207904, 0.45709038, 1.3637752 , -2.07842402, 0.05378708, -1.70954952, 0.141495 , -0.28118326, 2.21710829, 0.01023467, -0.08215438, -1.24011799, 0.48594242, -0.998708 , 0.20187884, 1.33121412, -0.69498669, 0.63712943, -0.45199918, -2.23556366], [-0.19064037, 1.4391415 , -0.12112937, -0.17219528, 0.49103961, -0.31436097, 0.75308198, 0.21160853, 1.24190868, -0.23486192, -0.14801305, -0.58140483, 0.7017122 , -0.87994356, -0.01001648, -0.98676668, 0.41379742, -0.34616754, 1.17796092, 0.93023948]])
- q_detection_limit()float640.001
- standard_name :
- specific_humidity detection_minimum
- units :
- g/g
array(0.001)
- standard_name :
- specific_humidity
- units :
- g/g
- ancillary_variables :
- q_error_limit q_detection_limit
even though they are “data variables” and not “coordinate variables” in the original Dataset.
anc
<xarray.Dataset> Size: 3kB Dimensions: (x: 10, y: 20) Dimensions without coordinates: x, y Data variables: q (x, y) float64 2kB 0.8571 0.8271 ... -0.6667 -0.478 q_error_limit (x, y) float64 2kB 0.8947 0.5252 1.505 ... 1.178 0.9302 q_detection_limit float64 8B 0.001
- x: 10
- y: 20
- q(x, y)float640.8571 0.8271 ... -0.6667 -0.478
- standard_name :
- specific_humidity
- units :
- g/g
- ancillary_variables :
- q_error_limit q_detection_limit
array([[ 0.8571308 , 0.82709755, 0.09653652, 1.27858601, 0.21473695, -0.30971941, 1.59353723, 0.93687783, -1.4179271 , 1.14555269, 0.26862173, 1.50300549, 1.63336271, -1.22029873, -0.39101837, -0.75027149, -0.26034276, 0.84717712, -0.86860314, -0.58820364], [-2.30099465, -0.18418767, -1.18076477, -1.09870473, 0.49767326, 0.05518071, 0.95802222, -1.02772871, -0.62486406, -0.62502842, 0.673462 , -1.4786387 , -0.63648307, 0.74129334, -1.45450722, -0.6905368 , -0.59315084, -0.59769209, 0.06293921, -0.04611955], [ 0.14417476, -0.27847695, 0.81687052, 0.71579727, -0.5799188 , -0.44624407, -1.01243621, 0.45875208, -0.14748194, 0.93729466, -1.57711721, -0.10166233, 0.77931492, -0.04845451, 0.77944003, 0.90955964, 1.24485983, -0.82167402, 1.1755112 , -1.08286072], [-0.95363651, 0.97880017, -1.67074042, 0.85239344, -1.51268122, -0.16030564, 0.06852568, -1.38958253, -1.52924102, 0.12512949, 0.60414353, -0.12009742, 0.02509764, -0.4791425 , 1.3084494 , 0.79818146, -1.20294658, 0.03980037, 1.60587667, 0.12843581], [ 0.59775251, 0.27613387, 0.69474027, -1.65777261, -0.94586714, -2.39605066, -0.61306153, 0.39985938, 0.03459389, -0.93967947, 0.36056471, 0.57395168, -1.10242714, -0.89094841, -0.1391808 , 0.06974472, 0.43555549, -0.86004836, 0.6278917 , 0.07659722], [ 1.54778339, -0.93541259, -1.39748564, -1.4991097 , -0.67661534, 1.15247357, 0.42538009, -1.54544461, -1.1133638 , 0.47939402, -0.58602248, 0.20171854, -0.05833335, -1.24780923, -0.86567637, -0.52194851, -0.58684261, -0.08868515, -0.98504919, 0.13172382], [ 0.48500032, 0.96705898, -0.4584677 , -0.13406965, -0.11654932, 0.4319912 , -0.24370635, -1.5436941 , 0.62864685, 0.76367115, 0.16614259, -0.5819465 , 0.66773872, 0.26707103, -0.56633895, -0.03431814, 0.82344065, -1.23917208, -0.31779493, -0.65052756], [-0.35813173, 0.68494388, 2.03595452, -0.3637777 , -0.58456026, -1.01537081, 1.35239427, -0.76571317, -0.64141603, -1.5571597 , -0.52336249, 0.69809982, 0.35061584, 0.07358713, -0.5738691 , -0.00243074, -1.43828121, -0.34690734, 1.17789628, -1.22957599], [-0.35230907, -1.23665947, -1.3602757 , 0.23823315, 0.16991961, 0.79287655, -0.93710696, -0.93897359, -0.9642232 , -0.31983641, 1.04392064, 1.16715843, -1.03915966, 1.18109269, 1.73888492, 0.14782245, -0.91302846, 0.77623197, -0.18352303, -1.91430854], [ 0.47969059, 0.95181373, -1.42015632, 0.7390917 , 1.51340201, -0.46395742, -1.76964736, -0.74772886, 1.60895812, -0.83948355, -0.88535006, -0.7624763 , -0.41260723, 1.28867292, 0.35343921, -2.2511097 , 0.9507437 , 0.8361651 , -0.66668817, -0.47798103]])
- q_error_limit(x, y)float640.8947 0.5252 ... 1.178 0.9302
- standard_name :
- specific_humidity standard_error
- units :
- g/g
array([[ 0.8946538 , 0.52515343, 1.50548283, -1.99128004, 0.79981141, -2.24592264, -1.01174993, 1.95052589, 1.4846341 , -1.88061403, 1.27640253, 1.21612121, 0.07578008, -0.21799977, -0.27065372, -1.34525869, 0.23088085, -0.03242762, -0.17271413, 1.12986694], [ 0.67580673, 1.31035059, 0.19542446, 0.30091263, 0.4938824 , -1.25169005, -1.03966096, 0.15437734, -1.93771038, -0.97384066, 1.77420362, -1.16839107, -0.87758654, -0.94517543, 1.71272903, -0.16399899, -0.49620505, 0.43470682, 1.63677147, 1.08881026], [ 0.8305265 , 0.2180494 , -1.12470486, 0.59914489, 0.27616651, 1.05030762, -1.06338388, 0.62292286, 0.41452713, -1.01648951, -0.16181158, 0.45683835, -1.18479784, -1.03818549, 0.64409354, -0.66275842, 0.63947513, -0.17716362, -0.22634842, -1.35997195], [-0.25122228, -0.37052597, 0.5870321 , 0.5112095 , -1.04969577, -0.28487558, -0.19686565, 1.48586378, 2.9278997 , 1.38346826, -0.3628766 , 0.35456825, -0.01442165, -1.86605062, 1.05594487, -0.70306695, 0.56813092, -0.75809623, -0.6396347 , -0.1241402 ], [ 0.8217865 , 0.08467875, -0.28121015, -0.3688055 , -0.72205171, -0.95882024, 0.54190148, -0.02811686, -0.51413044, -2.02489241, 1.21050348, 0.03593153, 0.61390056, -0.37217979, -0.27593047, 0.01762655, -0.83896187, -0.3535227 , 0.79248725, 0.59926214], [-0.10909539, -1.76254825, 1.45354831, 0.63064281, -0.02729123, -0.16840588, -0.03156321, -2.06724828, -0.59411559, -1.64665234, 0.59048918, -0.08473004, -0.39171186, 0.45999991, 0.38102176, -0.71469555, -0.96176366, 0.38090932, 0.71293461, 0.68497723], [ 0.01915 , -0.03003747, -2.27077132, 1.43031641, 0.4787713 , -0.09012523, 0.53513197, 0.09103702, 0.5005067 , 2.92534787, 0.73064074, 0.21782437, -1.32144988, -1.61009147, -1.27392992, 0.99870745, 0.48862223, 0.47146427, -0.3702629 , -0.19772003], [ 0.4249022 , 1.21538684, -1.03797012, 0.10355786, 0.24566782, -1.07532713, -1.18675647, -0.27028727, 0.23938081, -2.02474646, 0.03827237, -0.89486107, 0.24732403, 0.24641949, -1.07490806, -1.10342103, -0.86411201, 0.48681504, 0.41329746, -0.06257259], [-2.12207904, 0.45709038, 1.3637752 , -2.07842402, 0.05378708, -1.70954952, 0.141495 , -0.28118326, 2.21710829, 0.01023467, -0.08215438, -1.24011799, 0.48594242, -0.998708 , 0.20187884, 1.33121412, -0.69498669, 0.63712943, -0.45199918, -2.23556366], [-0.19064037, 1.4391415 , -0.12112937, -0.17219528, 0.49103961, -0.31436097, 0.75308198, 0.21160853, 1.24190868, -0.23486192, -0.14801305, -0.58140483, 0.7017122 , -0.87994356, -0.01001648, -0.98676668, 0.41379742, -0.34616754, 1.17796092, 0.93023948]])
- q_detection_limit()float640.001
- standard_name :
- specific_humidity detection_minimum
- units :
- g/g
array(0.001)
Selecting multiple variables#
Sometimes a Dataset may contain multiple X
or multiple longitude
variables. In that case a simple .cf["X"]
will raise an error. Instead follow Xarray convention and pass a list .cf[["X"]]
to receive a Dataset with all available "X"
variables
multiple.cf[["X"]]
<xarray.Dataset> Size: 320B Dimensions: (x2: 10, x1: 30) Coordinates: * x2 (x2) int64 80B 0 1 2 3 4 5 6 7 8 9 * x1 (x1) int64 240B 0 1 2 3 4 5 6 7 8 9 ... 21 22 23 24 25 26 27 28 29 Data variables: *empty*
- x2: 10
- x1: 30
- x2(x2)int640 1 2 3 4 5 6 7 8 9
- axis :
- X
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
- x1(x1)int640 1 2 3 4 5 6 ... 24 25 26 27 28 29
- axis :
- X
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29])
- x1PandasIndex
PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], dtype='int64', name='x1'))
- x2PandasIndex
PandasIndex(Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='int64', name='x2'))
pop.cf[["longitude"]]
<xarray.Dataset> Size: 10kB Dimensions: (nlat: 20, nlon: 30) Coordinates: TLONG (nlat, nlon) float64 5kB 1.0 1.0 1.0 1.0 1.0 ... 1.0 1.0 1.0 1.0 ULONG (nlat, nlon) float64 5kB 0.5 0.5 0.5 0.5 0.5 ... 0.5 0.5 0.5 0.5 * nlon (nlon) int64 240B 0 1 2 3 4 5 6 7 8 ... 21 22 23 24 25 26 27 28 29 * nlat (nlat) int64 160B 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Data variables: *empty*
- nlat: 20
- nlon: 30
- TLONG(nlat, nlon)float641.0 1.0 1.0 1.0 ... 1.0 1.0 1.0 1.0
- units :
- degrees_east
array([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]])
- ULONG(nlat, nlon)float640.5 0.5 0.5 0.5 ... 0.5 0.5 0.5 0.5
- units :
- degrees_east
array([[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], [0.5, 0.5, 0.5, 0.5, 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5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5]])
- nlon(nlon)int640 1 2 3 4 5 6 ... 24 25 26 27 28 29
- axis :
- X
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29])
- nlat(nlat)int640 1 2 3 4 5 6 ... 14 15 16 17 18 19
- axis :
- Y
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19])
- nlonPandasIndex
PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], dtype='int64', name='nlon'))
- nlatPandasIndex
PandasIndex(Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], dtype='int64', name='nlat'))
Mixing names#
cf_xarray aims to be as friendly as possible, so it is possible to mix “CF names” and normal variable names. Here we select UVEL
and TEMP
by using the standard_name
of TEMP
(which is sea_water_potential_temperature
)
pop.cf[["sea_water_potential_temperature", "UVEL"]]
<xarray.Dataset> Size: 29kB Dimensions: (nlat: 20, nlon: 30) Coordinates: TLONG (nlat, nlon) float64 5kB 1.0 1.0 1.0 1.0 1.0 ... 1.0 1.0 1.0 1.0 TLAT (nlat, nlon) float64 5kB 2.0 2.0 2.0 2.0 2.0 ... 2.0 2.0 2.0 2.0 ULONG (nlat, nlon) float64 5kB 0.5 0.5 0.5 0.5 0.5 ... 0.5 0.5 0.5 0.5 ULAT (nlat, nlon) float64 5kB 2.5 2.5 2.5 2.5 2.5 ... 2.5 2.5 2.5 2.5 * nlon (nlon) int64 240B 0 1 2 3 4 5 6 7 8 ... 21 22 23 24 25 26 27 28 29 * nlat (nlat) int64 160B 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Data variables: TEMP (nlat, nlon) float64 5kB 15.0 15.0 15.0 15.0 ... 15.0 15.0 15.0 UVEL (nlat, nlon) float64 5kB 15.0 15.0 15.0 15.0 ... 15.0 15.0 15.0
- nlat: 20
- nlon: 30
- TLONG(nlat, nlon)float641.0 1.0 1.0 1.0 ... 1.0 1.0 1.0 1.0
- units :
- degrees_east
array([[1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]])
- TLAT(nlat, nlon)float642.0 2.0 2.0 2.0 ... 2.0 2.0 2.0 2.0
- units :
- degrees_north
array([[2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.], [2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2.,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, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5], [2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5]])
- nlon(nlon)int640 1 2 3 4 5 6 ... 24 25 26 27 28 29
- axis :
- X
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29])
- nlat(nlat)int640 1 2 3 4 5 6 ... 14 15 16 17 18 19
- axis :
- Y
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19])
- TEMP(nlat, nlon)float6415.0 15.0 15.0 ... 15.0 15.0 15.0
- coordinates :
- TLONG TLAT
- standard_name :
- sea_water_potential_temperature
array([[15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., ... 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.]])
- UVEL(nlat, nlon)float6415.0 15.0 15.0 ... 15.0 15.0 15.0
- coordinates :
- ULONG ULAT
- standard_name :
- sea_water_x_velocity
array([[15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., ... 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.], [15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15., 15.]])
- nlonPandasIndex
PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], dtype='int64', name='nlon'))
- nlatPandasIndex
PandasIndex(Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], dtype='int64', name='nlat'))