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)> 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 200.0 202.5 205.0 207.5 ... 315.0 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)> [5000 values with dtype=float32] Coordinates: * lat (lat) float32 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 200.0 202.5 205.0 207.5 ... 315.0 317.5 320.0 322.5 * time (time) datetime64[ns] 2013-01-01 ... 2013-01-01T18:00:00 cell_area (lat, lon) float32 2.989e+09 2.989e+09 ... 1.116e+10 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)> 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)> -1.129 -0.7901 -0.9964 0.3029 -0.2888 ... -0.4955 0.6418 -0.3906 0.07033 0.3357 Coordinates: q_error_limit (x, y) float64 0.6056 -1.794 -0.468 ... -0.9284 -1.263 q_detection_limit float64 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
- -1.129 -0.7901 -0.9964 0.3029 ... 0.6418 -0.3906 0.07033 0.3357
array([[-1.12919666, -0.79008557, -0.99638087, 0.30293248, -0.28883462, 0.10923519, 0.57119528, 0.63383463, -0.18098229, 0.03432246, -0.02405625, 0.15972357, -0.64570248, 1.94808985, -1.13389351, -0.49913833, 0.59781718, 1.17196169, -0.34995932, -0.64918972], [-0.86278895, -0.06228794, 1.74685559, -1.57095014, 0.27204941, 1.27666102, -0.14380407, 1.03739471, -1.83451454, -0.26112997, 0.80141518, 0.12396277, -0.86656142, -1.34402822, -0.09826736, 0.46827651, -0.53664957, -0.78269784, 0.67904223, 0.21424466], [-0.53081955, -0.03861965, -0.11076829, 0.28497264, -0.99312393, 0.20134581, -1.02676106, -1.80144495, 0.917639 , 0.40785018, -0.27641752, 0.71319162, -1.70903731, 1.50783839, -0.71696983, 1.18829669, 2.00393604, -2.26468381, 2.26389762, 0.44208528], [ 1.35683736, -0.55826152, -0.57004182, -0.2428358 , 0.25457029, -0.46504653, -1.80901848, -0.62383547, 1.00403463, 1.34522436, -1.81386423, -0.76005234, 0.72449831, -0.84949456, -0.70306177, 0.06995841, -0.79885653, 2.02002612, 0.91789381, -1.56681333], [ 1.48869172, -1.38750365, -0.06893157, 0.94030158, 0.41937454, 0.71982356, -0.00569467, -1.40286465, 0.22913845, 0.84779995, 1.04938932, 1.38201653, 0.64522863, 1.52140922, 1.12388204, -0.70966002, -0.29127088, 0.29592542, 0.09522149, -0.57935995], [ 1.6082108 , -0.41069707, 0.09664863, 0.47107245, -0.04808408, 0.02673864, -0.61190863, 0.67776671, 0.59813229, -1.56061547, -1.88341491, -2.15000325, -0.94913216, 1.90038976, -0.60921456, 0.37243962, 1.32975592, -0.43214211, -0.59681744, -0.50722392], [ 2.24318051, -2.38243393, 1.04698877, -0.09232719, -0.12554391, -0.11072047, -1.80053656, 0.21801618, 1.30274281, -2.19469293, 0.71348273, -0.06992677, -1.56875122, 0.76815555, 1.2343467 , -2.50802953, -0.41094261, -0.68158707, 0.97460218, 1.61228467], [ 1.68881018, -0.40759078, 0.63173082, 1.12996458, 0.98715262, -0.94730563, 0.30501158, 0.15279502, 0.98585982, 0.53169123, 0.88773678, 1.12201631, 0.5670436 , 0.99392698, -0.4516096 , 1.49563211, -0.27548294, 0.6996408 , -2.27877006, -1.35200692], [ 0.1967327 , 0.39080753, 0.2428911 , 1.44688715, 0.07310562, 2.28685308, 1.09285073, 0.97378463, 0.98644078, -0.10776556, 1.63837176, -1.0703295 , 2.0155161 , 1.38884196, 1.70116099, -1.86074534, -1.31719159, -0.29296474, 1.13250063, 0.92527968], [-0.44826316, -0.94199216, 1.64618621, -0.02778545, -0.45494053, -1.74687299, -0.74627747, -0.03112046, 1.56543066, 0.92692544, 0.59046229, 0.29648492, 0.63369001, -0.17842441, 0.28508141, -0.49549941, 0.64183151, -0.39058669, 0.07033159, 0.33573059]])
- q_error_limit(x, y)float640.6056 -1.794 ... -0.9284 -1.263
- standard_name :
- specific_humidity standard_error
- units :
- g/g
array([[ 0.60563909, -1.79442904, -0.46803313, -0.03363936, -0.22859061, -0.8417307 , 0.84395793, 0.83970727, -0.52015591, -1.33960718, -0.51817971, 0.21362698, -1.07298822, -0.52077385, -0.63955763, 0.46107818, -0.25423482, 1.7551114 , -0.33548281, 1.52987014], [ 0.36045377, -1.17150873, -0.4145439 , -0.47985878, 1.0740288 , -1.44041013, -0.96252101, 0.45207634, -1.18964785, -0.6005627 , -0.25105652, -0.05797078, 1.23324774, -0.13882397, 0.37860299, 0.30081709, 0.26416072, 1.29692692, 0.33160177, 1.48859676], [ 0.20966606, 0.18261825, 0.19783475, 0.20620118, 1.14624306, 0.40204841, 0.49627534, 0.12330202, -0.56065248, 1.49258221, 0.06748034, 0.4632714 , -0.61061291, -0.93851615, 0.60595822, -0.07180565, 0.45032984, -0.15590024, -0.21024761, -0.43340763], [ 0.6534065 , 0.88530701, 0.85347399, -0.53963189, -0.039271 , 0.96408526, 0.12685469, 0.38321408, -0.08182625, 0.90207091, -0.64138058, 0.21629085, -0.85499477, 0.86301561, -0.56172164, -1.89459797, -1.12325275, 0.71745128, 1.55605809, -0.47802221], [ 0.6544915 , 0.12824921, 0.32591091, 0.31077619, 0.98807969, -1.13135579, -0.90778958, -0.21126696, -1.13320372, -1.15461708, 0.00685424, -0.47103031, 0.41475679, -1.36430308, -0.94875485, -0.62076754, 0.56772726, -0.37751803, -0.29572131, -0.72817474], [-0.42862363, 0.20443154, 0.05850325, -0.87334032, 1.9277797 , -0.59093868, -1.26708047, -0.59896818, -0.61914014, -0.99309518, -0.44325969, 0.50653655, 1.05700938, 0.26708034, 0.08854428, -0.46023104, 1.21972358, 0.17797465, -1.27449717, 1.35526937], [-0.45017559, 0.87999192, 0.52228724, 1.45135792, 0.56816156, -1.71613108, -0.20640856, -0.59742373, -1.94146608, 0.69922861, 0.54276588, -0.16167992, 0.63979408, -0.31612775, 1.35913513, 1.99983737, 0.19453052, 0.96200577, -1.12679086, -0.4347847 ], [ 0.18305888, -1.78677462, 1.15943382, 0.99418652, 0.72688673, -0.08513633, 0.71077466, -3.29215808, 0.92556569, -1.15766147, 0.16326362, 0.21918989, 0.86225616, 1.35698907, -0.08127002, 0.88657167, 2.22624102, -0.2679915 , -0.67128842, -0.57716298], [-0.7989216 , 1.08317144, 0.90520027, 0.04524508, -0.31277158, 0.57386806, 1.04600994, -1.15312761, 1.2832129 , -2.19739467, -0.14253186, -0.64117015, 2.32828164, 0.24348021, -0.05245401, -1.08737495, -0.83389515, 0.26397314, 1.96924953, -0.27620501], [ 1.81301436, 0.09002995, -2.23588629, 0.94810066, -2.87982228, 0.1354285 , -0.75248313, 0.42275928, -0.83070806, 0.57197649, 0.07185367, 0.49972686, 0.65026561, 0.04785945, 0.73525592, 0.93807842, -1.80301017, -0.03324599, -0.92835285, -1.26264101]])
- 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> Dimensions: (x: 10, y: 20) Dimensions without coordinates: x, y Data variables: q (x, y) float64 -1.129 -0.7901 -0.9964 ... 0.07033 0.3357 q_error_limit (x, y) float64 0.6056 -1.794 -0.468 ... -0.9284 -1.263 q_detection_limit float64 0.001
- x: 10
- y: 20
- q(x, y)float64-1.129 -0.7901 ... 0.07033 0.3357
- standard_name :
- specific_humidity
- units :
- g/g
- ancillary_variables :
- q_error_limit q_detection_limit
array([[-1.12919666, -0.79008557, -0.99638087, 0.30293248, -0.28883462, 0.10923519, 0.57119528, 0.63383463, -0.18098229, 0.03432246, -0.02405625, 0.15972357, -0.64570248, 1.94808985, -1.13389351, -0.49913833, 0.59781718, 1.17196169, -0.34995932, -0.64918972], [-0.86278895, -0.06228794, 1.74685559, -1.57095014, 0.27204941, 1.27666102, -0.14380407, 1.03739471, -1.83451454, -0.26112997, 0.80141518, 0.12396277, -0.86656142, -1.34402822, -0.09826736, 0.46827651, -0.53664957, -0.78269784, 0.67904223, 0.21424466], [-0.53081955, -0.03861965, -0.11076829, 0.28497264, -0.99312393, 0.20134581, -1.02676106, -1.80144495, 0.917639 , 0.40785018, -0.27641752, 0.71319162, -1.70903731, 1.50783839, -0.71696983, 1.18829669, 2.00393604, -2.26468381, 2.26389762, 0.44208528], [ 1.35683736, -0.55826152, -0.57004182, -0.2428358 , 0.25457029, -0.46504653, -1.80901848, -0.62383547, 1.00403463, 1.34522436, -1.81386423, -0.76005234, 0.72449831, -0.84949456, -0.70306177, 0.06995841, -0.79885653, 2.02002612, 0.91789381, -1.56681333], [ 1.48869172, -1.38750365, -0.06893157, 0.94030158, 0.41937454, 0.71982356, -0.00569467, -1.40286465, 0.22913845, 0.84779995, 1.04938932, 1.38201653, 0.64522863, 1.52140922, 1.12388204, -0.70966002, -0.29127088, 0.29592542, 0.09522149, -0.57935995], [ 1.6082108 , -0.41069707, 0.09664863, 0.47107245, -0.04808408, 0.02673864, -0.61190863, 0.67776671, 0.59813229, -1.56061547, -1.88341491, -2.15000325, -0.94913216, 1.90038976, -0.60921456, 0.37243962, 1.32975592, -0.43214211, -0.59681744, -0.50722392], [ 2.24318051, -2.38243393, 1.04698877, -0.09232719, -0.12554391, -0.11072047, -1.80053656, 0.21801618, 1.30274281, -2.19469293, 0.71348273, -0.06992677, -1.56875122, 0.76815555, 1.2343467 , -2.50802953, -0.41094261, -0.68158707, 0.97460218, 1.61228467], [ 1.68881018, -0.40759078, 0.63173082, 1.12996458, 0.98715262, -0.94730563, 0.30501158, 0.15279502, 0.98585982, 0.53169123, 0.88773678, 1.12201631, 0.5670436 , 0.99392698, -0.4516096 , 1.49563211, -0.27548294, 0.6996408 , -2.27877006, -1.35200692], [ 0.1967327 , 0.39080753, 0.2428911 , 1.44688715, 0.07310562, 2.28685308, 1.09285073, 0.97378463, 0.98644078, -0.10776556, 1.63837176, -1.0703295 , 2.0155161 , 1.38884196, 1.70116099, -1.86074534, -1.31719159, -0.29296474, 1.13250063, 0.92527968], [-0.44826316, -0.94199216, 1.64618621, -0.02778545, -0.45494053, -1.74687299, -0.74627747, -0.03112046, 1.56543066, 0.92692544, 0.59046229, 0.29648492, 0.63369001, -0.17842441, 0.28508141, -0.49549941, 0.64183151, -0.39058669, 0.07033159, 0.33573059]])
- q_error_limit(x, y)float640.6056 -1.794 ... -0.9284 -1.263
- standard_name :
- specific_humidity standard_error
- units :
- g/g
array([[ 0.60563909, -1.79442904, -0.46803313, -0.03363936, -0.22859061, -0.8417307 , 0.84395793, 0.83970727, -0.52015591, -1.33960718, -0.51817971, 0.21362698, -1.07298822, -0.52077385, -0.63955763, 0.46107818, -0.25423482, 1.7551114 , -0.33548281, 1.52987014], [ 0.36045377, -1.17150873, -0.4145439 , -0.47985878, 1.0740288 , -1.44041013, -0.96252101, 0.45207634, -1.18964785, -0.6005627 , -0.25105652, -0.05797078, 1.23324774, -0.13882397, 0.37860299, 0.30081709, 0.26416072, 1.29692692, 0.33160177, 1.48859676], [ 0.20966606, 0.18261825, 0.19783475, 0.20620118, 1.14624306, 0.40204841, 0.49627534, 0.12330202, -0.56065248, 1.49258221, 0.06748034, 0.4632714 , -0.61061291, -0.93851615, 0.60595822, -0.07180565, 0.45032984, -0.15590024, -0.21024761, -0.43340763], [ 0.6534065 , 0.88530701, 0.85347399, -0.53963189, -0.039271 , 0.96408526, 0.12685469, 0.38321408, -0.08182625, 0.90207091, -0.64138058, 0.21629085, -0.85499477, 0.86301561, -0.56172164, -1.89459797, -1.12325275, 0.71745128, 1.55605809, -0.47802221], [ 0.6544915 , 0.12824921, 0.32591091, 0.31077619, 0.98807969, -1.13135579, -0.90778958, -0.21126696, -1.13320372, -1.15461708, 0.00685424, -0.47103031, 0.41475679, -1.36430308, -0.94875485, -0.62076754, 0.56772726, -0.37751803, -0.29572131, -0.72817474], [-0.42862363, 0.20443154, 0.05850325, -0.87334032, 1.9277797 , -0.59093868, -1.26708047, -0.59896818, -0.61914014, -0.99309518, -0.44325969, 0.50653655, 1.05700938, 0.26708034, 0.08854428, -0.46023104, 1.21972358, 0.17797465, -1.27449717, 1.35526937], [-0.45017559, 0.87999192, 0.52228724, 1.45135792, 0.56816156, -1.71613108, -0.20640856, -0.59742373, -1.94146608, 0.69922861, 0.54276588, -0.16167992, 0.63979408, -0.31612775, 1.35913513, 1.99983737, 0.19453052, 0.96200577, -1.12679086, -0.4347847 ], [ 0.18305888, -1.78677462, 1.15943382, 0.99418652, 0.72688673, -0.08513633, 0.71077466, -3.29215808, 0.92556569, -1.15766147, 0.16326362, 0.21918989, 0.86225616, 1.35698907, -0.08127002, 0.88657167, 2.22624102, -0.2679915 , -0.67128842, -0.57716298], [-0.7989216 , 1.08317144, 0.90520027, 0.04524508, -0.31277158, 0.57386806, 1.04600994, -1.15312761, 1.2832129 , -2.19739467, -0.14253186, -0.64117015, 2.32828164, 0.24348021, -0.05245401, -1.08737495, -0.83389515, 0.26397314, 1.96924953, -0.27620501], [ 1.81301436, 0.09002995, -2.23588629, 0.94810066, -2.87982228, 0.1354285 , -0.75248313, 0.42275928, -0.83070806, 0.57197649, 0.07185367, 0.49972686, 0.65026561, 0.04785945, 0.73525592, 0.93807842, -1.80301017, -0.03324599, -0.92835285, -1.26264101]])
- 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> Dimensions: (x2: 10, x1: 30) Coordinates: * x2 (x2) int64 0 1 2 3 4 5 6 7 8 9 * x1 (x1) int64 0 1 2 3 4 5 6 7 8 9 10 ... 20 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> Dimensions: (nlat: 20, nlon: 30) Coordinates: TLONG (nlat, nlon) float64 1.0 1.0 1.0 1.0 1.0 ... 1.0 1.0 1.0 1.0 1.0 ULONG (nlat, nlon) float64 0.5 0.5 0.5 0.5 0.5 ... 0.5 0.5 0.5 0.5 0.5 * nlon (nlon) int64 0 1 2 3 4 5 6 7 8 9 ... 20 21 22 23 24 25 26 27 28 29 * nlat (nlat) int64 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, 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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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> Dimensions: (nlat: 20, nlon: 30) Coordinates: TLONG (nlat, nlon) float64 1.0 1.0 1.0 1.0 1.0 ... 1.0 1.0 1.0 1.0 1.0 TLAT (nlat, nlon) float64 2.0 2.0 2.0 2.0 2.0 ... 2.0 2.0 2.0 2.0 2.0 ULONG (nlat, nlon) float64 0.5 0.5 0.5 0.5 0.5 ... 0.5 0.5 0.5 0.5 0.5 ULAT (nlat, nlon) float64 2.5 2.5 2.5 2.5 2.5 ... 2.5 2.5 2.5 2.5 2.5 * nlon (nlon) int64 0 1 2 3 4 5 6 7 8 9 ... 20 21 22 23 24 25 26 27 28 29 * nlat (nlat) int64 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 15.0 15.0 15.0 15.0 ... 15.0 15.0 15.0 15.0 UVEL (nlat, nlon) float64 15.0 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., 2., 2., 2., 2., 2., 2., 2., 2., 2., 2., 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]])
- 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'))