Hierarchical computations#
In this lesson, we extend what we learned about Basic Computation to hierarchical datasets. By the end of the lesson, we will be able to:
Apply basic arithmetic and label-aware reductions to xarray DataTree objects
Apply arbitrary functions across all nodes across a tree
import xarray as xr
import numpy as np
xr.set_options(keep_attrs=True, display_expand_attrs=False, display_expand_data=False)
<xarray.core.options.set_options at 0x7f2a7dda64e0>
Example dataset#
First we load the NMC reanalysis air temperature dataset and arrange it to form a hierarchy of temporal resolutions:
ds = xr.tutorial.open_dataset("air_temperature")
ds_daily = ds.resample(time="D").mean("time")
ds_weekly = ds.resample(time="W").mean("time")
ds_monthly = ds.resample(time="ME").mean("time")
tree = xr.DataTree.from_dict(
{
"daily": ds_daily,
"weekly": ds_weekly,
"monthly": ds_monthly,
"": xr.Dataset(attrs={"name": "NMC reanalysis temporal pyramid"}),
}
)
tree
<xarray.DatasetView> Size: 0B Dimensions: () Data variables: *empty* Attributes: (1)
<xarray.DatasetView> Size: 8MB Dimensions: (time: 730, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 6kB 2013-01-01 2013-01-02 ... 2014-12-31 Data variables: air (time, lat, lon) float64 8MB 241.9 242.3 242.7 ... 295.9 295.5 Attributes: (5)
daily- time: 730
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-01 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-01T00:00:00.000000000', '2013-01-02T00:00:00.000000000', '2013-01-03T00:00:00.000000000', ..., '2014-12-29T00:00:00.000000000', '2014-12-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], shape=(730,), dtype='datetime64[ns]')
- air(time, lat, lon)float64241.9 242.3 242.7 ... 295.9 295.5
- 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 ]
array([[[241.8725, 242.3 , 242.675 , ..., 233.3725, 235.175 , 237.675 ], [244.575 , 244.5725, 244.275 , ..., 231.2475, 232.825 , 236.3 ], [254. , 253.2225, 251.8225, ..., 231.475 , 233.695 , 238.625 ], ..., [296.3 , 295.975 , 296. , ..., 295.8975, 295.32 , 294.945 ], [296.325 , 296.725 , 296.7425, ..., 296.1725, 296. , 295.5475], [296.62 , 296.995 , 297.1 , ..., 297.0225, 297.0475, 296.9725]], [[243.6 , 243.5 , 243.3 , ..., 238.9725, 240.7975, 243.0725], [247.8225, 247.2 , 246.2225, ..., 235.925 , 236.5975, 238.6 ], [253.5225, 252.0725, 250.2975, ..., 237.6975, 238.8725, 241.9 ], ... [296.365 , 295.415 , 295.165 , ..., 296.89 , 296.345 , 295.345 ], [297.5175, 297.665 , 297.045 , ..., 296.565 , 296.145 , 295.42 ], [298.5675, 298.7425, 298.3425, ..., 296.7925, 296.34 , 295.87 ]], [[244.215 , 243.615 , 242.765 , ..., 243.74 , 244.19 , 244.69 ], [249.315 , 249.09 , 248.59 , ..., 240.565 , 241.515 , 243.115 ], [262.94 , 262.365 , 261.715 , ..., 239.465 , 242.115 , 246.015 ], ..., [294.84 , 295.14 , 296.64 , ..., 295.415 , 295.165 , 294.565 ], [296.54 , 297.59 , 298.09 , ..., 295.565 , 295.465 , 294.79 ], [297.99 , 298.74 , 298.69 , ..., 296.215 , 295.865 , 295.54 ]]], shape=(730, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 1MB Dimensions: (time: 105, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 840B 2013-01-06 2013-01-13 ... 2015-01-04 Data variables: air (time, lat, lon) float64 1MB 245.3 245.2 245.0 ... 296.6 296.2 Attributes: (5)
weekly- time: 105
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-06 ... 2015-01-04
- standard_name :
- time
- long_name :
- Time
array(['2013-01-06T00:00:00.000000000', '2013-01-13T00:00:00.000000000', '2013-01-20T00:00:00.000000000', '2013-01-27T00:00:00.000000000', '2013-02-03T00:00:00.000000000', '2013-02-10T00:00:00.000000000', '2013-02-17T00:00:00.000000000', '2013-02-24T00:00:00.000000000', '2013-03-03T00:00:00.000000000', '2013-03-10T00:00:00.000000000', '2013-03-17T00:00:00.000000000', '2013-03-24T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-07T00:00:00.000000000', '2013-04-14T00:00:00.000000000', '2013-04-21T00:00:00.000000000', '2013-04-28T00:00:00.000000000', '2013-05-05T00:00:00.000000000', '2013-05-12T00:00:00.000000000', '2013-05-19T00:00:00.000000000', '2013-05-26T00:00:00.000000000', '2013-06-02T00:00:00.000000000', '2013-06-09T00:00:00.000000000', '2013-06-16T00:00:00.000000000', '2013-06-23T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-07T00:00:00.000000000', '2013-07-14T00:00:00.000000000', '2013-07-21T00:00:00.000000000', '2013-07-28T00:00:00.000000000', '2013-08-04T00:00:00.000000000', '2013-08-11T00:00:00.000000000', '2013-08-18T00:00:00.000000000', '2013-08-25T00:00:00.000000000', '2013-09-01T00:00:00.000000000', '2013-09-08T00:00:00.000000000', '2013-09-15T00:00:00.000000000', '2013-09-22T00:00:00.000000000', '2013-09-29T00:00:00.000000000', '2013-10-06T00:00:00.000000000', '2013-10-13T00:00:00.000000000', '2013-10-20T00:00:00.000000000', '2013-10-27T00:00:00.000000000', '2013-11-03T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-24T00:00:00.000000000', '2013-12-01T00:00:00.000000000', '2013-12-08T00:00:00.000000000', '2013-12-15T00:00:00.000000000', '2013-12-22T00:00:00.000000000', '2013-12-29T00:00:00.000000000', '2014-01-05T00:00:00.000000000', '2014-01-12T00:00:00.000000000', '2014-01-19T00:00:00.000000000', '2014-01-26T00:00:00.000000000', '2014-02-02T00:00:00.000000000', '2014-02-09T00:00:00.000000000', '2014-02-16T00:00:00.000000000', '2014-02-23T00:00:00.000000000', '2014-03-02T00:00:00.000000000', '2014-03-09T00:00:00.000000000', '2014-03-16T00:00:00.000000000', '2014-03-23T00:00:00.000000000', '2014-03-30T00:00:00.000000000', '2014-04-06T00:00:00.000000000', '2014-04-13T00:00:00.000000000', '2014-04-20T00:00:00.000000000', '2014-04-27T00:00:00.000000000', '2014-05-04T00:00:00.000000000', '2014-05-11T00:00:00.000000000', '2014-05-18T00:00:00.000000000', '2014-05-25T00:00:00.000000000', '2014-06-01T00:00:00.000000000', '2014-06-08T00:00:00.000000000', '2014-06-15T00:00:00.000000000', '2014-06-22T00:00:00.000000000', '2014-06-29T00:00:00.000000000', '2014-07-06T00:00:00.000000000', '2014-07-13T00:00:00.000000000', '2014-07-20T00:00:00.000000000', '2014-07-27T00:00:00.000000000', '2014-08-03T00:00:00.000000000', '2014-08-10T00:00:00.000000000', '2014-08-17T00:00:00.000000000', '2014-08-24T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-07T00:00:00.000000000', '2014-09-14T00:00:00.000000000', '2014-09-21T00:00:00.000000000', '2014-09-28T00:00:00.000000000', '2014-10-05T00:00:00.000000000', '2014-10-12T00:00:00.000000000', '2014-10-19T00:00:00.000000000', '2014-10-26T00:00:00.000000000', '2014-11-02T00:00:00.000000000', '2014-11-09T00:00:00.000000000', '2014-11-16T00:00:00.000000000', '2014-11-23T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-07T00:00:00.000000000', '2014-12-14T00:00:00.000000000', '2014-12-21T00:00:00.000000000', '2014-12-28T00:00:00.000000000', '2015-01-04T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64245.3 245.2 245.0 ... 296.6 296.2
- 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 ]
array([[[245.2775 , 245.16875 , 244.97291667, ..., 241.14041667, 242.41083333, 244.18875 ], [249.1325 , 248.65375 , 247.83125 , ..., 239.17333333, 240.33208333, 242.86958333], [254.23625 , 253.48166667, 252.19333333, ..., 242.29875 , 244.35208333, 248.00166667], ..., [296.21458333, 295.38541667, 295.0725 , ..., 295.26875 , 294.79666667, 294.40166667], [296.69833333, 296.40291667, 295.88041667, ..., 295.75958333, 295.67 , 295.34708333], [297.10583333, 296.99708333, 296.69041667, ..., 296.915 , 296.88958333, 296.96125 ]], [[246.38428571, 246.745 , 246.84785714, ..., 244.59071429, 245.81964286, 247.60857143], [247.01214286, 247.24035714, 247.30214286, ..., 242.15428571, 244.14035714, 247.54535714], [251.1625 , 250.46928571, 249.73285714, ..., 244.01178571, 247.39464286, 252.24428571], ... [295.08214286, 294.88392857, 295.71535714, ..., 296.75857143, 296.65464286, 296.40821429], [296.20428571, 296.9175 , 297.34357143, ..., 297.32642857, 297.51642857, 297.28285714], [297.26535714, 297.9225 , 298.05535714, ..., 297.85714286, 297.9875 , 298.00714286]], [[250.77666667, 250.785 , 250.5425 , ..., 247.55916667, 247.05833333, 246.50833333], [255.6775 , 256.12583333, 256.22666667, ..., 245.8925 , 246.60083333, 247.85166667], [262.55083333, 262.4925 , 262.39166667, ..., 246.91666667, 249.73333333, 253.5675 ], ..., [295.29166667, 294.85833333, 295.2925 , ..., 296.5925 , 296.185 , 295.32666667], [296.66666667, 297.10083333, 297.01916667, ..., 296.6325 , 296.28583333, 295.4425 ], [298.00166667, 298.4175 , 298.16 , ..., 297.035 , 296.6325 , 296.17666667]]], shape=(105, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 255kB Dimensions: (time: 24, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 192B 2013-01-31 2013-02-28 ... 2014-12-31 Data variables: air (time, lat, lon) float64 254kB 244.5 244.7 244.7 ... 297.7 297.7 Attributes: (5)
monthly- time: 24
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-31 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-31T00:00:00.000000000', '2013-02-28T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-30T00:00:00.000000000', '2013-05-31T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-31T00:00:00.000000000', '2013-08-31T00:00:00.000000000', '2013-09-30T00:00:00.000000000', '2013-10-31T00:00:00.000000000', '2013-11-30T00:00:00.000000000', '2013-12-31T00:00:00.000000000', '2014-01-31T00:00:00.000000000', '2014-02-28T00:00:00.000000000', '2014-03-31T00:00:00.000000000', '2014-04-30T00:00:00.000000000', '2014-05-31T00:00:00.000000000', '2014-06-30T00:00:00.000000000', '2014-07-31T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-30T00:00:00.000000000', '2014-10-31T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64244.5 244.7 244.7 ... 297.7 297.7
- 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 ]
array([[[244.46677419, 244.66354839, 244.67024194, ..., 242.49145161, 243.40637097, 244.67580645], [247.07322581, 247.0225 , 246.7275 , ..., 240.58209677, 242.04483871, 244.70717742], [250.37943548, 249.83483871, 249.1075 , ..., 241.98435484, 244.76709677, 249.00508065], ..., [295.83814516, 295.15096774, 294.92314516, ..., 295.3683871 , 294.88451613, 294.2683871 ], [296.46951613, 296.31701613, 295.84822581, ..., 295.58774194, 295.34072581, 294.86556452], [297.05346774, 297.04201613, 296.73532258, ..., 296.30459677, 296.09741935, 296.0391129 ]], [[240.73392857, 240.70133929, 240.41151786, ..., 241.60517857, 242.71982143, 243.94455357], [241.933125 , 242.069375 , 241.91303571, ..., 241.01428571, 242.32482143, 244.72758929], [245.32357143, 245.02607143, 244.36955357, ..., 243.41589286, 245.76607143, 249.65857143], ... [298.04908333, 297.35008333, 297.222 , ..., 298.01183333, 297.66025 , 297.14566667], [298.965 , 298.81191667, 298.27158333, ..., 298.10408333, 298.22108333, 297.88558333], [299.17341667, 299.21766667, 298.89575 , ..., 298.71633333, 298.74183333, 298.78025 ]], [[246.80153226, 246.8891129 , 246.7691129 , ..., 240.07096774, 241.08201613, 242.28169355], [247.73 , 248.30072581, 248.74451613, ..., 238.61862903, 240.32217742, 242.97032258], [249.96895161, 249.58524194, 249.57524194, ..., 237.70306452, 241.23741935, 246.22669355], ..., [296.44919355, 295.69145161, 295.7583871 , ..., 296.52830645, 296.2175 , 295.81298387], [297.4458871 , 297.43612903, 297.18177419, ..., 296.95258065, 297.05830645, 296.72903226], [298.04733871, 298.22612903, 298.05967742, ..., 297.69758065, 297.72322581, 297.71040323]]], shape=(24, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
- name :
- NMC reanalysis temporal pyramid
Arithmetic#
As an extension to Dataset
, DataTree
objects automatically apply arithmetic to all variables within all nodes:
tree - 273.15
<xarray.DatasetView> Size: 0B Dimensions: () Data variables: *empty* Attributes: (1)
<xarray.DatasetView> Size: 8MB Dimensions: (lat: 25, lon: 53, time: 730) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 6kB 2013-01-01 2013-01-02 ... 2014-12-31 Data variables: air (time, lat, lon) float64 8MB -31.28 -30.85 -30.47 ... 22.72 22.39 Attributes: (5)
daily- lat: 25
- lon: 53
- time: 730
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-01 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-01T00:00:00.000000000', '2013-01-02T00:00:00.000000000', '2013-01-03T00:00:00.000000000', ..., '2014-12-29T00:00:00.000000000', '2014-12-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], shape=(730,), dtype='datetime64[ns]')
- air(time, lat, lon)float64-31.28 -30.85 ... 22.72 22.39
- 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 ]
array([[[-31.2775, -30.85 , -30.475 , ..., -39.7775, -37.975 , -35.475 ], [-28.575 , -28.5775, -28.875 , ..., -41.9025, -40.325 , -36.85 ], [-19.15 , -19.9275, -21.3275, ..., -41.675 , -39.455 , -34.525 ], ..., [ 23.15 , 22.825 , 22.85 , ..., 22.7475, 22.17 , 21.795 ], [ 23.175 , 23.575 , 23.5925, ..., 23.0225, 22.85 , 22.3975], [ 23.47 , 23.845 , 23.95 , ..., 23.8725, 23.8975, 23.8225]], [[-29.55 , -29.65 , -29.85 , ..., -34.1775, -32.3525, -30.0775], [-25.3275, -25.95 , -26.9275, ..., -37.225 , -36.5525, -34.55 ], [-19.6275, -21.0775, -22.8525, ..., -35.4525, -34.2775, -31.25 ], ... [ 23.215 , 22.265 , 22.015 , ..., 23.74 , 23.195 , 22.195 ], [ 24.3675, 24.515 , 23.895 , ..., 23.415 , 22.995 , 22.27 ], [ 25.4175, 25.5925, 25.1925, ..., 23.6425, 23.19 , 22.72 ]], [[-28.935 , -29.535 , -30.385 , ..., -29.41 , -28.96 , -28.46 ], [-23.835 , -24.06 , -24.56 , ..., -32.585 , -31.635 , -30.035 ], [-10.21 , -10.785 , -11.435 , ..., -33.685 , -31.035 , -27.135 ], ..., [ 21.69 , 21.99 , 23.49 , ..., 22.265 , 22.015 , 21.415 ], [ 23.39 , 24.44 , 24.94 , ..., 22.415 , 22.315 , 21.64 ], [ 24.84 , 25.59 , 25.54 , ..., 23.065 , 22.715 , 22.39 ]]], shape=(730, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 1MB Dimensions: (lat: 25, lon: 53, time: 105) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 840B 2013-01-06 2013-01-13 ... 2015-01-04 Data variables: air (time, lat, lon) float64 1MB -27.87 -27.98 -28.18 ... 23.48 23.03 Attributes: (5)
weekly- lat: 25
- lon: 53
- time: 105
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-06 ... 2015-01-04
- standard_name :
- time
- long_name :
- Time
array(['2013-01-06T00:00:00.000000000', '2013-01-13T00:00:00.000000000', '2013-01-20T00:00:00.000000000', '2013-01-27T00:00:00.000000000', '2013-02-03T00:00:00.000000000', '2013-02-10T00:00:00.000000000', '2013-02-17T00:00:00.000000000', '2013-02-24T00:00:00.000000000', '2013-03-03T00:00:00.000000000', '2013-03-10T00:00:00.000000000', '2013-03-17T00:00:00.000000000', '2013-03-24T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-07T00:00:00.000000000', '2013-04-14T00:00:00.000000000', '2013-04-21T00:00:00.000000000', '2013-04-28T00:00:00.000000000', '2013-05-05T00:00:00.000000000', '2013-05-12T00:00:00.000000000', '2013-05-19T00:00:00.000000000', '2013-05-26T00:00:00.000000000', '2013-06-02T00:00:00.000000000', '2013-06-09T00:00:00.000000000', '2013-06-16T00:00:00.000000000', '2013-06-23T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-07T00:00:00.000000000', '2013-07-14T00:00:00.000000000', '2013-07-21T00:00:00.000000000', '2013-07-28T00:00:00.000000000', '2013-08-04T00:00:00.000000000', '2013-08-11T00:00:00.000000000', '2013-08-18T00:00:00.000000000', '2013-08-25T00:00:00.000000000', '2013-09-01T00:00:00.000000000', '2013-09-08T00:00:00.000000000', '2013-09-15T00:00:00.000000000', '2013-09-22T00:00:00.000000000', '2013-09-29T00:00:00.000000000', '2013-10-06T00:00:00.000000000', '2013-10-13T00:00:00.000000000', '2013-10-20T00:00:00.000000000', '2013-10-27T00:00:00.000000000', '2013-11-03T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-24T00:00:00.000000000', '2013-12-01T00:00:00.000000000', '2013-12-08T00:00:00.000000000', '2013-12-15T00:00:00.000000000', '2013-12-22T00:00:00.000000000', '2013-12-29T00:00:00.000000000', '2014-01-05T00:00:00.000000000', '2014-01-12T00:00:00.000000000', '2014-01-19T00:00:00.000000000', '2014-01-26T00:00:00.000000000', '2014-02-02T00:00:00.000000000', '2014-02-09T00:00:00.000000000', '2014-02-16T00:00:00.000000000', '2014-02-23T00:00:00.000000000', '2014-03-02T00:00:00.000000000', '2014-03-09T00:00:00.000000000', '2014-03-16T00:00:00.000000000', '2014-03-23T00:00:00.000000000', '2014-03-30T00:00:00.000000000', '2014-04-06T00:00:00.000000000', '2014-04-13T00:00:00.000000000', '2014-04-20T00:00:00.000000000', '2014-04-27T00:00:00.000000000', '2014-05-04T00:00:00.000000000', '2014-05-11T00:00:00.000000000', '2014-05-18T00:00:00.000000000', '2014-05-25T00:00:00.000000000', '2014-06-01T00:00:00.000000000', '2014-06-08T00:00:00.000000000', '2014-06-15T00:00:00.000000000', '2014-06-22T00:00:00.000000000', '2014-06-29T00:00:00.000000000', '2014-07-06T00:00:00.000000000', '2014-07-13T00:00:00.000000000', '2014-07-20T00:00:00.000000000', '2014-07-27T00:00:00.000000000', '2014-08-03T00:00:00.000000000', '2014-08-10T00:00:00.000000000', '2014-08-17T00:00:00.000000000', '2014-08-24T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-07T00:00:00.000000000', '2014-09-14T00:00:00.000000000', '2014-09-21T00:00:00.000000000', '2014-09-28T00:00:00.000000000', '2014-10-05T00:00:00.000000000', '2014-10-12T00:00:00.000000000', '2014-10-19T00:00:00.000000000', '2014-10-26T00:00:00.000000000', '2014-11-02T00:00:00.000000000', '2014-11-09T00:00:00.000000000', '2014-11-16T00:00:00.000000000', '2014-11-23T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-07T00:00:00.000000000', '2014-12-14T00:00:00.000000000', '2014-12-21T00:00:00.000000000', '2014-12-28T00:00:00.000000000', '2015-01-04T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64-27.87 -27.98 ... 23.48 23.03
- 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 ]
array([[[-27.8725 , -27.98125 , -28.17708333, ..., -32.00958333, -30.73916667, -28.96125 ], [-24.0175 , -24.49625 , -25.31875 , ..., -33.97666667, -32.81791667, -30.28041667], [-18.91375 , -19.66833333, -20.95666667, ..., -30.85125 , -28.79791667, -25.14833333], ..., [ 23.06458333, 22.23541667, 21.9225 , ..., 22.11875 , 21.64666667, 21.25166667], [ 23.54833333, 23.25291667, 22.73041667, ..., 22.60958333, 22.52 , 22.19708333], [ 23.95583333, 23.84708333, 23.54041667, ..., 23.765 , 23.73958333, 23.81125 ]], [[-26.76571429, -26.405 , -26.30214286, ..., -28.55928571, -27.33035714, -25.54142857], [-26.13785714, -25.90964286, -25.84785714, ..., -30.99571429, -29.00964286, -25.60464286], [-21.9875 , -22.68071429, -23.41714286, ..., -29.13821429, -25.75535714, -20.90571429], ... [ 21.93214286, 21.73392857, 22.56535714, ..., 23.60857143, 23.50464286, 23.25821429], [ 23.05428571, 23.7675 , 24.19357143, ..., 24.17642857, 24.36642857, 24.13285714], [ 24.11535714, 24.7725 , 24.90535714, ..., 24.70714286, 24.8375 , 24.85714286]], [[-22.37333333, -22.365 , -22.6075 , ..., -25.59083333, -26.09166667, -26.64166667], [-17.4725 , -17.02416667, -16.92333333, ..., -27.2575 , -26.54916667, -25.29833333], [-10.59916667, -10.6575 , -10.75833333, ..., -26.23333333, -23.41666667, -19.5825 ], ..., [ 22.14166667, 21.70833333, 22.1425 , ..., 23.4425 , 23.035 , 22.17666667], [ 23.51666667, 23.95083333, 23.86916667, ..., 23.4825 , 23.13583333, 22.2925 ], [ 24.85166667, 25.2675 , 25.01 , ..., 23.885 , 23.4825 , 23.02666667]]], shape=(105, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 255kB Dimensions: (lat: 25, lon: 53, time: 24) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 192B 2013-01-31 2013-02-28 ... 2014-12-31 Data variables: air (time, lat, lon) float64 254kB -28.68 -28.49 -28.48 ... 24.57 24.56 Attributes: (5)
monthly- lat: 25
- lon: 53
- time: 24
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-31 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-31T00:00:00.000000000', '2013-02-28T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-30T00:00:00.000000000', '2013-05-31T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-31T00:00:00.000000000', '2013-08-31T00:00:00.000000000', '2013-09-30T00:00:00.000000000', '2013-10-31T00:00:00.000000000', '2013-11-30T00:00:00.000000000', '2013-12-31T00:00:00.000000000', '2014-01-31T00:00:00.000000000', '2014-02-28T00:00:00.000000000', '2014-03-31T00:00:00.000000000', '2014-04-30T00:00:00.000000000', '2014-05-31T00:00:00.000000000', '2014-06-30T00:00:00.000000000', '2014-07-31T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-30T00:00:00.000000000', '2014-10-31T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64-28.68 -28.49 ... 24.57 24.56
- 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 ]
array([[[-28.68322581, -28.48645161, -28.47975806, ..., -30.65854839, -29.74362903, -28.47419355], [-26.07677419, -26.1275 , -26.4225 , ..., -32.56790323, -31.10516129, -28.44282258], [-22.77056452, -23.31516129, -24.0425 , ..., -31.16564516, -28.38290323, -24.14491935], ..., [ 22.68814516, 22.00096774, 21.77314516, ..., 22.2183871 , 21.73451613, 21.1183871 ], [ 23.31951613, 23.16701613, 22.69822581, ..., 22.43774194, 22.19072581, 21.71556452], [ 23.90346774, 23.89201613, 23.58532258, ..., 23.15459677, 22.94741935, 22.8891129 ]], [[-32.41607143, -32.44866071, -32.73848214, ..., -31.54482143, -30.43017857, -29.20544643], [-31.216875 , -31.080625 , -31.23696429, ..., -32.13571429, -30.82517857, -28.42241071], [-27.82642857, -28.12392857, -28.78044643, ..., -29.73410714, -27.38392857, -23.49142857], ... [ 24.89908333, 24.20008333, 24.072 , ..., 24.86183333, 24.51025 , 23.99566667], [ 25.815 , 25.66191667, 25.12158333, ..., 24.95408333, 25.07108333, 24.73558333], [ 26.02341667, 26.06766667, 25.74575 , ..., 25.56633333, 25.59183333, 25.63025 ]], [[-26.34846774, -26.2608871 , -26.3808871 , ..., -33.07903226, -32.06798387, -30.86830645], [-25.42 , -24.84927419, -24.40548387, ..., -34.53137097, -32.82782258, -30.17967742], [-23.18104839, -23.56475806, -23.57475806, ..., -35.44693548, -31.91258065, -26.92330645], ..., [ 23.29919355, 22.54145161, 22.6083871 , ..., 23.37830645, 23.0675 , 22.66298387], [ 24.2958871 , 24.28612903, 24.03177419, ..., 23.80258065, 23.90830645, 23.57903226], [ 24.89733871, 25.07612903, 24.90967742, ..., 24.54758065, 24.57322581, 24.56040323]]], shape=(24, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
- name :
- NMC reanalysis temporal pyramid
Indexing#
Just like arithmetic, indexing is simply forwarded to the node datasets. The only difference is that nodes that don’t have a certain coordinate / dimension are skipped instead of raising an error:
tree.isel(lat=slice(None, 10))
<xarray.DatasetView> Size: 0B Dimensions: () Data variables: *empty* Attributes: (1)
<xarray.DatasetView> Size: 3MB Dimensions: (time: 730, lat: 10, lon: 53) Coordinates: * lat (lat) float32 40B 75.0 72.5 70.0 67.5 65.0 62.5 60.0 57.5 55.0 52.5 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 6kB 2013-01-01 2013-01-02 ... 2014-12-31 Data variables: air (time, lat, lon) float64 3MB 241.9 242.3 242.7 ... 276.1 277.5 Attributes: (5)
daily- time: 730
- lat: 10
- lon: 53
- lat(lat)float3275.0 72.5 70.0 ... 57.5 55.0 52.5
- 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], dtype=float32)
- lon(lon)float32200.0 202.5 205.0 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-01 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-01T00:00:00.000000000', '2013-01-02T00:00:00.000000000', '2013-01-03T00:00:00.000000000', ..., '2014-12-29T00:00:00.000000000', '2014-12-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], shape=(730,), dtype='datetime64[ns]')
- air(time, lat, lon)float64241.9 242.3 242.7 ... 276.1 277.5
- 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 ]
array([[[241.8725, 242.3 , 242.675 , ..., 233.3725, 235.175 , 237.675 ], [244.575 , 244.5725, 244.275 , ..., 231.2475, 232.825 , 236.3 ], [254. , 253.2225, 251.8225, ..., 231.475 , 233.695 , 238.625 ], ..., [274.12 , 274.775 , 275.4 , ..., 279.35 , 279.9725, 280.5225], [275.125 , 276.05 , 276.395 , ..., 280.3225, 281.25 , 281.8975], [275.845 , 276.15 , 276.575 , ..., 282.37 , 283.8 , 284.7225]], [[243.6 , 243.5 , 243.3 , ..., 238.9725, 240.7975, 243.0725], [247.8225, 247.2 , 246.2225, ..., 235.925 , 236.5975, 238.6 ], [253.5225, 252.0725, 250.2975, ..., 237.6975, 238.8725, 241.9 ], ... [278.7675, 279.12 , 279.5175, ..., 277.7675, 278.3675, 278.9925], [278.9175, 279.8425, 280.1675, ..., 277.915 , 278.22 , 278.5675], [277.62 , 278.2675, 279.2425, ..., 278.6175, 279.195 , 279.87 ]], [[244.215 , 243.615 , 242.765 , ..., 243.74 , 244.19 , 244.69 ], [249.315 , 249.09 , 248.59 , ..., 240.565 , 241.515 , 243.115 ], [262.94 , 262.365 , 261.715 , ..., 239.465 , 242.115 , 246.015 ], ..., [275.615 , 276.09 , 277.09 , ..., 275.015 , 275.64 , 276.515 ], [277.39 , 278.115 , 278.49 , ..., 274.165 , 274.965 , 275.865 ], [277.09 , 277.34 , 277.94 , ..., 274.665 , 276.065 , 277.49 ]]], shape=(730, 10, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 446kB Dimensions: (time: 105, lat: 10, lon: 53) Coordinates: * lat (lat) float32 40B 75.0 72.5 70.0 67.5 65.0 62.5 60.0 57.5 55.0 52.5 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 840B 2013-01-06 2013-01-13 ... 2015-01-04 Data variables: air (time, lat, lon) float64 445kB 245.3 245.2 245.0 ... 278.1 279.0 Attributes: (5)
weekly- time: 105
- lat: 10
- lon: 53
- lat(lat)float3275.0 72.5 70.0 ... 57.5 55.0 52.5
- 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], dtype=float32)
- lon(lon)float32200.0 202.5 205.0 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-06 ... 2015-01-04
- standard_name :
- time
- long_name :
- Time
array(['2013-01-06T00:00:00.000000000', '2013-01-13T00:00:00.000000000', '2013-01-20T00:00:00.000000000', '2013-01-27T00:00:00.000000000', '2013-02-03T00:00:00.000000000', '2013-02-10T00:00:00.000000000', '2013-02-17T00:00:00.000000000', '2013-02-24T00:00:00.000000000', '2013-03-03T00:00:00.000000000', '2013-03-10T00:00:00.000000000', '2013-03-17T00:00:00.000000000', '2013-03-24T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-07T00:00:00.000000000', '2013-04-14T00:00:00.000000000', '2013-04-21T00:00:00.000000000', '2013-04-28T00:00:00.000000000', '2013-05-05T00:00:00.000000000', '2013-05-12T00:00:00.000000000', '2013-05-19T00:00:00.000000000', '2013-05-26T00:00:00.000000000', '2013-06-02T00:00:00.000000000', '2013-06-09T00:00:00.000000000', '2013-06-16T00:00:00.000000000', '2013-06-23T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-07T00:00:00.000000000', '2013-07-14T00:00:00.000000000', '2013-07-21T00:00:00.000000000', '2013-07-28T00:00:00.000000000', '2013-08-04T00:00:00.000000000', '2013-08-11T00:00:00.000000000', '2013-08-18T00:00:00.000000000', '2013-08-25T00:00:00.000000000', '2013-09-01T00:00:00.000000000', '2013-09-08T00:00:00.000000000', '2013-09-15T00:00:00.000000000', '2013-09-22T00:00:00.000000000', '2013-09-29T00:00:00.000000000', '2013-10-06T00:00:00.000000000', '2013-10-13T00:00:00.000000000', '2013-10-20T00:00:00.000000000', '2013-10-27T00:00:00.000000000', '2013-11-03T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-24T00:00:00.000000000', '2013-12-01T00:00:00.000000000', '2013-12-08T00:00:00.000000000', '2013-12-15T00:00:00.000000000', '2013-12-22T00:00:00.000000000', '2013-12-29T00:00:00.000000000', '2014-01-05T00:00:00.000000000', '2014-01-12T00:00:00.000000000', '2014-01-19T00:00:00.000000000', '2014-01-26T00:00:00.000000000', '2014-02-02T00:00:00.000000000', '2014-02-09T00:00:00.000000000', '2014-02-16T00:00:00.000000000', '2014-02-23T00:00:00.000000000', '2014-03-02T00:00:00.000000000', '2014-03-09T00:00:00.000000000', '2014-03-16T00:00:00.000000000', '2014-03-23T00:00:00.000000000', '2014-03-30T00:00:00.000000000', '2014-04-06T00:00:00.000000000', '2014-04-13T00:00:00.000000000', '2014-04-20T00:00:00.000000000', '2014-04-27T00:00:00.000000000', '2014-05-04T00:00:00.000000000', '2014-05-11T00:00:00.000000000', '2014-05-18T00:00:00.000000000', '2014-05-25T00:00:00.000000000', '2014-06-01T00:00:00.000000000', '2014-06-08T00:00:00.000000000', '2014-06-15T00:00:00.000000000', '2014-06-22T00:00:00.000000000', '2014-06-29T00:00:00.000000000', '2014-07-06T00:00:00.000000000', '2014-07-13T00:00:00.000000000', '2014-07-20T00:00:00.000000000', '2014-07-27T00:00:00.000000000', '2014-08-03T00:00:00.000000000', '2014-08-10T00:00:00.000000000', '2014-08-17T00:00:00.000000000', '2014-08-24T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-07T00:00:00.000000000', '2014-09-14T00:00:00.000000000', '2014-09-21T00:00:00.000000000', '2014-09-28T00:00:00.000000000', '2014-10-05T00:00:00.000000000', '2014-10-12T00:00:00.000000000', '2014-10-19T00:00:00.000000000', '2014-10-26T00:00:00.000000000', '2014-11-02T00:00:00.000000000', '2014-11-09T00:00:00.000000000', '2014-11-16T00:00:00.000000000', '2014-11-23T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-07T00:00:00.000000000', '2014-12-14T00:00:00.000000000', '2014-12-21T00:00:00.000000000', '2014-12-28T00:00:00.000000000', '2015-01-04T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64245.3 245.2 245.0 ... 278.1 279.0
- 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 ]
array([[[245.2775 , 245.16875 , 244.97291667, ..., 241.14041667, 242.41083333, 244.18875 ], [249.1325 , 248.65375 , 247.83125 , ..., 239.17333333, 240.33208333, 242.86958333], [254.23625 , 253.48166667, 252.19333333, ..., 242.29875 , 244.35208333, 248.00166667], ..., [273.43875 , 273.97375 , 274.67166667, ..., 277.97291667, 278.81916667, 279.955 ], [275.35708333, 276.07375 , 276.26791667, ..., 278.52791667, 279.55708333, 280.71541667], [276.41041667, 276.56208333, 276.86083333, ..., 279.83458333, 281.28583333, 282.65583333]], [[246.38428571, 246.745 , 246.84785714, ..., 244.59071429, 245.81964286, 247.60857143], [247.01214286, 247.24035714, 247.30214286, ..., 242.15428571, 244.14035714, 247.54535714], [251.1625 , 250.46928571, 249.73285714, ..., 244.01178571, 247.39464286, 252.24428571], ... [274.90142857, 274.74 , 275.44821429, ..., 276.88071429, 277.45392857, 278.03321429], [277.18321429, 277.82928571, 278.03714286, ..., 276.88642857, 277.14428571, 277.37928571], [277.48642857, 277.66964286, 278.06642857, ..., 277.69428571, 278.04 , 278.56821429]], [[250.77666667, 250.785 , 250.5425 , ..., 247.55916667, 247.05833333, 246.50833333], [255.6775 , 256.12583333, 256.22666667, ..., 245.8925 , 246.60083333, 247.85166667], [262.55083333, 262.4925 , 262.39166667, ..., 246.91666667, 249.73333333, 253.5675 ], ..., [277.3425 , 277.66833333, 278.23333333, ..., 276.50833333, 277.2325 , 278.1675 ], [278.51666667, 279.31833333, 279.60166667, ..., 276.615 , 277.08583333, 277.75916667], [277.7175 , 278.24166667, 279.07666667, ..., 277.43416667, 278.085 , 278.96833333]]], shape=(105, 10, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 102kB Dimensions: (time: 24, lat: 10, lon: 53) Coordinates: * lat (lat) float32 40B 75.0 72.5 70.0 67.5 65.0 62.5 60.0 57.5 55.0 52.5 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 192B 2013-01-31 2013-02-28 ... 2014-12-31 Data variables: air (time, lat, lon) float64 102kB 244.5 244.7 244.7 ... 278.5 279.1 Attributes: (5)
monthly- time: 24
- lat: 10
- lon: 53
- lat(lat)float3275.0 72.5 70.0 ... 57.5 55.0 52.5
- 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], dtype=float32)
- lon(lon)float32200.0 202.5 205.0 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-31 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-31T00:00:00.000000000', '2013-02-28T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-30T00:00:00.000000000', '2013-05-31T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-31T00:00:00.000000000', '2013-08-31T00:00:00.000000000', '2013-09-30T00:00:00.000000000', '2013-10-31T00:00:00.000000000', '2013-11-30T00:00:00.000000000', '2013-12-31T00:00:00.000000000', '2014-01-31T00:00:00.000000000', '2014-02-28T00:00:00.000000000', '2014-03-31T00:00:00.000000000', '2014-04-30T00:00:00.000000000', '2014-05-31T00:00:00.000000000', '2014-06-30T00:00:00.000000000', '2014-07-31T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-30T00:00:00.000000000', '2014-10-31T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64244.5 244.7 244.7 ... 278.5 279.1
- 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 ]
array([[[244.46677419, 244.66354839, 244.67024194, ..., 242.49145161, 243.40637097, 244.67580645], [247.07322581, 247.0225 , 246.7275 , ..., 240.58209677, 242.04483871, 244.70717742], [250.37943548, 249.83483871, 249.1075 , ..., 241.98435484, 244.76709677, 249.00508065], ..., [271.45048387, 272.09016129, 273.20080645, ..., 276.32387097, 277.16193548, 278.03120968], [275.5525 , 276.20403226, 276.34233871, ..., 276.62129032, 277.36653226, 278.07814516], [276.96290323, 277.14290323, 277.45516129, ..., 277.63379032, 278.52516129, 279.54564516]], [[240.73392857, 240.70133929, 240.41151786, ..., 241.60517857, 242.71982143, 243.94455357], [241.933125 , 242.069375 , 241.91303571, ..., 241.01428571, 242.32482143, 244.72758929], [245.32357143, 245.02607143, 244.36955357, ..., 243.41589286, 245.76607143, 249.65857143], ... [276.91533333, 276.8265 , 277.45908333, ..., 278.16575 , 278.996 , 280.03125 ], [278.9005 , 279.29025 , 279.3745 , ..., 278.56583333, 279.28216667, 279.89391667], [279.09625 , 279.189 , 279.55866667, ..., 279.665 , 280.00291667, 280.5265 ]], [[246.80153226, 246.8891129 , 246.7691129 , ..., 240.07096774, 241.08201613, 242.28169355], [247.73 , 248.30072581, 248.74451613, ..., 238.61862903, 240.32217742, 242.97032258], [249.96895161, 249.58524194, 249.57524194, ..., 237.70306452, 241.23741935, 246.22669355], ..., [275.50967742, 275.47459677, 276.30185484, ..., 276.07693548, 276.71233871, 277.51080645], [277.5816129 , 278.18830645, 278.46580645, ..., 276.66822581, 277.21612903, 277.69322581], [277.77887097, 277.96177419, 278.44701613, ..., 277.96516129, 278.47225806, 279.13693548]]], shape=(24, 10, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
- name :
- NMC reanalysis temporal pyramid
tree.sel(time="2013-11")
<xarray.DatasetView> Size: 0B Dimensions: () Data variables: *empty* Attributes: (1)
<xarray.DatasetView> Size: 319kB Dimensions: (time: 30, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 240B 2013-11-01 2013-11-02 ... 2013-11-30 Data variables: air (time, lat, lon) float64 318kB 250.9 251.2 251.2 ... 298.6 298.7 Attributes: (5)
daily- time: 30
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-11-01 ... 2013-11-30
- standard_name :
- time
- long_name :
- Time
array(['2013-11-01T00:00:00.000000000', '2013-11-02T00:00:00.000000000', '2013-11-03T00:00:00.000000000', '2013-11-04T00:00:00.000000000', '2013-11-05T00:00:00.000000000', '2013-11-06T00:00:00.000000000', '2013-11-07T00:00:00.000000000', '2013-11-08T00:00:00.000000000', '2013-11-09T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-11T00:00:00.000000000', '2013-11-12T00:00:00.000000000', '2013-11-13T00:00:00.000000000', '2013-11-14T00:00:00.000000000', '2013-11-15T00:00:00.000000000', '2013-11-16T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-18T00:00:00.000000000', '2013-11-19T00:00:00.000000000', '2013-11-20T00:00:00.000000000', '2013-11-21T00:00:00.000000000', '2013-11-22T00:00:00.000000000', '2013-11-23T00:00:00.000000000', '2013-11-24T00:00:00.000000000', '2013-11-25T00:00:00.000000000', '2013-11-26T00:00:00.000000000', '2013-11-27T00:00:00.000000000', '2013-11-28T00:00:00.000000000', '2013-11-29T00:00:00.000000000', '2013-11-30T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64250.9 251.2 251.2 ... 298.6 298.7
- 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 ]
array([[[250.92 , 251.175 , 251.175 , ..., 243.3225, 243.17 , 242.8475], [263.9975, 263.95 , 263.295 , ..., 241.65 , 242.0725, 243.2225], [265.775 , 263.62 , 261.745 , ..., 240.35 , 243.1725, 247.2725], ..., [297.945 , 297.3225, 296.9225, ..., 298.5475, 297.85 , 297.4475], [297.945 , 297.9725, 297.65 , ..., 298.375 , 298.3675, 298.425 ], [298.0925, 298.375 , 298.1975, ..., 298.1475, 298.3 , 298.8975]], [[265.5475, 264.025 , 261.9725, ..., 240.32 , 240.95 , 241.82 ], [269.85 , 268.4975, 266.35 , ..., 239.125 , 239.4975, 241.25 ], [265.8 , 262.3475, 258.825 , ..., 237.7725, 240.4 , 244.85 ], ... [297.8725, 297.2 , 296.7225, ..., 298.1475, 298.3 , 298.65 ], [298.0225, 297.9225, 297.345 , ..., 298.775 , 299.1475, 298.975 ], [298.0975, 298.075 , 297.72 , ..., 298.725 , 299.02 , 299.0225]], [[253.27 , 251.775 , 250.8 , ..., 238.4225, 236.65 , 235.27 ], [255.025 , 252.825 , 251.675 , ..., 241.6 , 240.8475, 240.7975], [253.55 , 249.9725, 248.1475, ..., 240.5725, 242.925 , 246.4925], ..., [297.375 , 296.9475, 296.47 , ..., 298.275 , 298.0675, 297.8225], [297.67 , 297.8725, 297.3975, ..., 298.2225, 298.195 , 298.1475], [298.125 , 298.15 , 297.925 , ..., 298.3 , 298.625 , 298.7225]]], shape=(30, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 43kB Dimensions: (time: 4, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 32B 2013-11-03 2013-11-10 ... 2013-11-24 Data variables: air (time, lat, lon) float64 42kB 256.0 256.4 256.5 ... 298.3 298.3 Attributes: (5)
weekly- time: 4
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-11-03 ... 2013-11-24
- standard_name :
- time
- long_name :
- Time
array(['2013-11-03T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-24T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64256.0 256.4 256.5 ... 298.3 298.3
- 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 ]
array([[[255.98285714, 256.38107143, 256.47 , ..., 242.46892857, 242.60035714, 242.91142857], [265.15821429, 265.55214286, 265.3575 , ..., 239.50964286, 239.84214286, 241.63357143], [267.84464286, 266.44714286, 265.38357143, ..., 238.755 , 241.26535714, 245.86178571], ..., [298.34464286, 297.48357143, 296.99071429, ..., 298.19357143, 297.59142857, 297.13035714], [298.37285714, 298.14142857, 297.6925 , ..., 298.26857143, 298.1475 , 297.84535714], [298.33071429, 298.45535714, 298.295 , ..., 298.50571429, 298.50821429, 298.67714286]], [[255.52642857, 255.45785714, 255.17321429, ..., 237.93035714, 239.6625 , 241.53785714], [265.35142857, 265.17642857, 264.49071429, ..., 235.7775 , 236.55071429, 238.71785714], [266.92321429, 265.69178571, 264.75464286, ..., 235.48357143, 237.46535714, 241.69178571], ... [297.25464286, 296.66642857, 296.745 , ..., 297.83678571, 297.585 , 297.5025 ], [298.13464286, 297.99428571, 297.68392857, ..., 298.2725 , 298.33714286, 298.32785714], [298.36892857, 298.48285714, 298.39428571, ..., 299.07678571, 298.96214286, 299.24464286]], [[249.52321429, 249.82392857, 250.00178571, ..., 240.24857143, 242.10892857, 244.14035714], [252.32357143, 252.07678571, 252.0525 , ..., 240.56964286, 242.01892857, 244.68392857], [254.01178571, 251.27642857, 250.18642857, ..., 240.13392857, 242.71714286, 247.2975 ], ..., [297.9525 , 297.16035714, 297.05535714, ..., 297.81321429, 297.05178571, 296.36178571], [298.49892857, 298.29678571, 298.00178571, ..., 297.92035714, 297.65857143, 297.11642857], [298.74428571, 298.75535714, 298.57035714, ..., 298.375 , 298.33678571, 298.31321429]]], shape=(4, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 11kB Dimensions: (time: 1, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 8B 2013-11-30 Data variables: air (time, lat, lon) float64 11kB 252.3 252.3 252.2 ... 298.8 298.9 Attributes: (5)
monthly- time: 1
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-11-30
- standard_name :
- time
- long_name :
- Time
array(['2013-11-30T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float64252.3 252.3 252.2 ... 298.8 298.9
- 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 ]
array([[[252.2695 , 252.33575 , 252.23916667, ..., 239.67325 , 240.90983333, 242.253 ], [258.63808333, 258.58958333, 258.34958333, ..., 238.20866667, 239.28975 , 241.53241667], [260.42958333, 258.49233333, 257.331 , ..., 237.65491667, 240.32808333, 244.83291667], ..., [297.63608333, 296.93116667, 296.7535 , ..., 297.92608333, 297.47741667, 297.17683333], [298.21066667, 298.02866667, 297.66666667, ..., 298.22433333, 298.16691667, 297.93108333], [298.4495 , 298.49558333, 298.34641667, ..., 298.74291667, 298.76191667, 298.85766667]]], shape=(1, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
- name :
- NMC reanalysis temporal pyramid
Reductions#
In a similar way, we can reduce all nodes in the datatree at once:
tree.mean(dim=["lat", "lon"])
<xarray.DatasetView> Size: 0B Dimensions: () Data variables: *empty* Attributes: (1)
<xarray.DatasetView> Size: 12kB Dimensions: (time: 730) Coordinates: * time (time) datetime64[ns] 6kB 2013-01-01 2013-01-02 ... 2014-12-31 Data variables: air (time) float64 6kB 273.6 273.0 273.3 273.5 ... 274.4 274.0 273.3 Attributes: (5)
daily- time: 730
- time(time)datetime64[ns]2013-01-01 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-01T00:00:00.000000000', '2013-01-02T00:00:00.000000000', '2013-01-03T00:00:00.000000000', ..., '2014-12-29T00:00:00.000000000', '2014-12-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], shape=(730,), dtype='datetime64[ns]')
- air(time)float64273.6 273.0 273.3 ... 274.0 273.3
- 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 ]
array([273.63928679, 273.0454566 , 273.27716792, 273.4779434 , 273.55339434, 273.16324717, 273.40582264, 274.00940189, 274.10368113, 273.91631698, 273.35791509, 273.04479434, 273.11461321, 273.14229434, 273.05423396, 272.81905283, 272.34664717, 272.28053962, 272.58845849, 272.69986226, 273.0743283 , 273.11756415, 273.23771698, 272.94334151, 273.03197736, 272.5819566 , 272.51207547, 272.37654906, 272.35865472, 272.28548302, 272.1561434 , 272.25902075, 272.41738679, 272.47538868, 272.35659057, 272.57564528, 272.95898679, 272.99586226, 273.07054717, 273.25918302, 273.88583208, 274.09790189, 274.11463774, 274.0239717 , 274.01834717, 273.74653774, 273.11217547, 272.6877717 , 272.5086434 , 272.44510377, 272.19539434, 272.54346604, 272.86217547, 273.43534528, 274.11020377, 274.0457434 , 273.84026038, 273.75081321, 273.86316792, 274.09247358, 273.98038868, 274.04458491, 274.27352642, 274.25883396, 274.2154 , 274.10106226, 274.63426415, 275.41763774, 275.57655472, 275.31684906, 275.11173962, 274.84236038, 274.75161321, 275.15147358, 275.66753962, 275.80629623, 275.65609245, 275.50079245, 275.2982434 , 275.55458302, ... 284.02085472, 283.88113396, 283.77351887, 283.43635283, 283.10103019, 282.95833396, 282.94935472, 282.50506226, 282.20895472, 282.29898679, 282.50503962, 282.41361887, 282.39679434, 281.81740189, 281.62818302, 281.30570943, 281.22431887, 281.09299434, 280.87709057, 280.69450377, 280.22813962, 279.79996038, 279.5283434 , 279.58846792, 279.28411509, 279.30150189, 279.29179623, 278.84379245, 278.39996226, 278.08242264, 278.26187736, 278.56310189, 278.93030943, 278.68894528, 277.93321887, 277.69349811, 277.70245283, 277.43028113, 277.04216604, 277.14165849, 277.17877736, 276.63092264, 276.0961717 , 275.12958679, 274.88523962, 274.92035849, 274.80314151, 274.86906981, 274.78592453, 274.98078868, 275.55493208, 275.4101434 , 275.27759811, 275.29749057, 275.16299623, 275.3010434 , 275.67026604, 276.09439623, 276.31382075, 276.0564 , 275.79262264, 275.92878868, 275.68050189, 275.29808491, 274.97739245, 275.00778679, 275.06739434, 275.0879717 , 275.30977736, 275.47560377, 274.99333962, 275.22745849, 275.37022642, 275.25366415, 274.46757358, 274.37917547, 274.04409623, 273.34411321])
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 2kB Dimensions: (time: 105) Coordinates: * time (time) datetime64[ns] 840B 2013-01-06 2013-01-13 ... 2015-01-04 Data variables: air (time) float64 840B 273.4 273.6 272.7 272.9 ... 275.3 275.2 273.9 Attributes: (5)
weekly- time: 105
- time(time)datetime64[ns]2013-01-06 ... 2015-01-04
- standard_name :
- time
- long_name :
- Time
array(['2013-01-06T00:00:00.000000000', '2013-01-13T00:00:00.000000000', '2013-01-20T00:00:00.000000000', '2013-01-27T00:00:00.000000000', '2013-02-03T00:00:00.000000000', '2013-02-10T00:00:00.000000000', '2013-02-17T00:00:00.000000000', '2013-02-24T00:00:00.000000000', '2013-03-03T00:00:00.000000000', '2013-03-10T00:00:00.000000000', '2013-03-17T00:00:00.000000000', '2013-03-24T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-07T00:00:00.000000000', '2013-04-14T00:00:00.000000000', '2013-04-21T00:00:00.000000000', '2013-04-28T00:00:00.000000000', '2013-05-05T00:00:00.000000000', '2013-05-12T00:00:00.000000000', '2013-05-19T00:00:00.000000000', '2013-05-26T00:00:00.000000000', '2013-06-02T00:00:00.000000000', '2013-06-09T00:00:00.000000000', '2013-06-16T00:00:00.000000000', '2013-06-23T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-07T00:00:00.000000000', '2013-07-14T00:00:00.000000000', '2013-07-21T00:00:00.000000000', '2013-07-28T00:00:00.000000000', '2013-08-04T00:00:00.000000000', '2013-08-11T00:00:00.000000000', '2013-08-18T00:00:00.000000000', '2013-08-25T00:00:00.000000000', '2013-09-01T00:00:00.000000000', '2013-09-08T00:00:00.000000000', '2013-09-15T00:00:00.000000000', '2013-09-22T00:00:00.000000000', '2013-09-29T00:00:00.000000000', '2013-10-06T00:00:00.000000000', '2013-10-13T00:00:00.000000000', '2013-10-20T00:00:00.000000000', '2013-10-27T00:00:00.000000000', '2013-11-03T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-24T00:00:00.000000000', '2013-12-01T00:00:00.000000000', '2013-12-08T00:00:00.000000000', '2013-12-15T00:00:00.000000000', '2013-12-22T00:00:00.000000000', '2013-12-29T00:00:00.000000000', '2014-01-05T00:00:00.000000000', '2014-01-12T00:00:00.000000000', '2014-01-19T00:00:00.000000000', '2014-01-26T00:00:00.000000000', '2014-02-02T00:00:00.000000000', '2014-02-09T00:00:00.000000000', '2014-02-16T00:00:00.000000000', '2014-02-23T00:00:00.000000000', '2014-03-02T00:00:00.000000000', '2014-03-09T00:00:00.000000000', '2014-03-16T00:00:00.000000000', '2014-03-23T00:00:00.000000000', '2014-03-30T00:00:00.000000000', '2014-04-06T00:00:00.000000000', '2014-04-13T00:00:00.000000000', '2014-04-20T00:00:00.000000000', '2014-04-27T00:00:00.000000000', '2014-05-04T00:00:00.000000000', '2014-05-11T00:00:00.000000000', '2014-05-18T00:00:00.000000000', '2014-05-25T00:00:00.000000000', '2014-06-01T00:00:00.000000000', '2014-06-08T00:00:00.000000000', '2014-06-15T00:00:00.000000000', '2014-06-22T00:00:00.000000000', '2014-06-29T00:00:00.000000000', '2014-07-06T00:00:00.000000000', '2014-07-13T00:00:00.000000000', '2014-07-20T00:00:00.000000000', '2014-07-27T00:00:00.000000000', '2014-08-03T00:00:00.000000000', '2014-08-10T00:00:00.000000000', '2014-08-17T00:00:00.000000000', '2014-08-24T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-07T00:00:00.000000000', '2014-09-14T00:00:00.000000000', '2014-09-21T00:00:00.000000000', '2014-09-28T00:00:00.000000000', '2014-10-05T00:00:00.000000000', '2014-10-12T00:00:00.000000000', '2014-10-19T00:00:00.000000000', '2014-10-26T00:00:00.000000000', '2014-11-02T00:00:00.000000000', '2014-11-09T00:00:00.000000000', '2014-11-16T00:00:00.000000000', '2014-11-23T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-07T00:00:00.000000000', '2014-12-14T00:00:00.000000000', '2014-12-21T00:00:00.000000000', '2014-12-28T00:00:00.000000000', '2015-01-04T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time)float64273.4 273.6 272.7 ... 275.2 273.9
- 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 ]
array([273.35941604, 273.56464933, 272.70444124, 272.92842291, 272.33266092, 273.01466388, 273.6859062 , 272.87147601, 273.94534744, 274.63961132, 275.23541024, 275.91288922, 277.29596388, 277.46387332, 278.35669704, 277.90533396, 279.2965593 , 280.28147197, 281.53945337, 283.20726415, 284.13601941, 285.35588437, 286.31660431, 287.53270593, 288.13301051, 289.07227116, 289.20157844, 289.40875957, 289.81222291, 290.12249272, 290.34894744, 290.71665229, 290.35305067, 289.41056119, 288.9492407 , 288.89552507, 287.91353531, 286.51491456, 286.4822124 , 285.18475876, 284.60479111, 284.36422129, 282.32442426, 280.94990728, 279.08072642, 278.49568302, 276.36780782, 275.70464286, 275.13161806, 273.01902992, 273.07666146, 272.82867898, 272.25194367, 273.41776523, 274.60745337, 274.14580809, 274.33449623, 273.04530943, 272.10773827, 273.6364504 , 273.12590377, 273.25844825, 274.80876954, 275.03818491, 275.47071725, 276.74444582, 277.9044717 , 278.61042183, 280.28427143, 281.41984744, 282.51437251, 283.42907628, 284.57297763, 285.66852642, 286.14624178, 287.02569865, 287.96868976, 288.89808814, 289.46357898, 289.78352426, 290.16505903, 290.62334178, 290.7035159 , 290.42473827, 290.42830593, 290.30161779, 289.48830782, 288.88504394, 287.3502062 , 287.26180108, 286.63820782, 285.04629326, 285.18733531, 283.86226765, 282.54847871, 281.47749892, 279.77500458, 278.62475175, 277.66174582, 275.66345687, 275.16799245, 275.77022075, 275.29256011, 275.1568062 , 273.92246164])
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 384B Dimensions: (time: 24) Coordinates: * time (time) datetime64[ns] 192B 2013-01-31 2013-02-28 ... 2014-12-31 Data variables: air (time) float64 192B 273.0 273.2 275.6 278.4 ... 283.7 278.1 275.2 Attributes: (5)
monthly- time: 24
- time(time)datetime64[ns]2013-01-31 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-31T00:00:00.000000000', '2013-02-28T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-30T00:00:00.000000000', '2013-05-31T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-31T00:00:00.000000000', '2013-08-31T00:00:00.000000000', '2013-09-30T00:00:00.000000000', '2013-10-31T00:00:00.000000000', '2013-11-30T00:00:00.000000000', '2013-12-31T00:00:00.000000000', '2014-01-31T00:00:00.000000000', '2014-02-28T00:00:00.000000000', '2014-03-31T00:00:00.000000000', '2014-04-30T00:00:00.000000000', '2014-05-31T00:00:00.000000000', '2014-06-30T00:00:00.000000000', '2014-07-31T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-30T00:00:00.000000000', '2014-10-31T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time)float64273.0 273.2 275.6 ... 278.1 275.2
- 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 ]
array([273.02309422, 273.20200371, 275.60337322, 278.39323208, 282.90039781, 287.61569157, 289.69018667, 289.96915399, 287.44532862, 283.67309665, 277.80074283, 273.49304194, 273.81045393, 273.06005937, 274.62405247, 278.70075245, 283.69775813, 287.51576912, 290.12365593, 290.20911035, 287.38216308, 283.68919203, 278.1348266 , 275.2090465 ])
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
- name :
- NMC reanalysis temporal pyramid
Applying functions designed for Dataset
with map_over_datasets
#
What if we wanted to convert the data to log-space? For a Dataset
or DataArray
, we could just use xarray.ufuncs.log()
, but that does not support DataTree
objects, yet:
xr.ufuncs.log(tree)
<xarray.Dataset> Size: 0B Dimensions: () Data variables: *empty*
Note how the result is a empty Dataset
?
To map a function to all nodes, we can use xarray.map_over_datasets()
and xarray.DataTree.map_over_datasets()
:
tree.map_over_datasets(xr.ufuncs.log)
<xarray.DatasetView> Size: 0B Dimensions: () Data variables: *empty* Attributes: (1)
<xarray.DatasetView> Size: 8MB Dimensions: (time: 730, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 6kB 2013-01-01 2013-01-02 ... 2014-12-31 Data variables: air (time, lat, lon) float64 8MB 5.488 5.49 5.492 ... 5.691 5.69 5.689 Attributes: (5)
daily- time: 730
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-01 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-01T00:00:00.000000000', '2013-01-02T00:00:00.000000000', '2013-01-03T00:00:00.000000000', ..., '2014-12-29T00:00:00.000000000', '2014-12-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], shape=(730,), dtype='datetime64[ns]')
- air(time, lat, lon)float645.488 5.49 5.492 ... 5.69 5.689
- 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 ]
array([[[5.48841073, 5.49017663, 5.4917231 , ..., 5.45263589, 5.46032992, 5.47090419], [5.49952201, 5.49951179, 5.49829464, ..., 5.44348857, 5.4502871 , 5.46510218], [5.53733427, 5.53426855, 5.52872447, ..., 5.44447188, 5.45401685, 5.47489328], ..., [5.69137245, 5.69027499, 5.69035945, ..., 5.69001311, 5.68805951, 5.6867889 ], [5.69145682, 5.69280578, 5.69286476, ..., 5.69094205, 5.69035945, 5.68882957], [5.69245186, 5.6937153 , 5.69406878, ..., 5.69380789, 5.69389206, 5.69363954]], [[5.49552754, 5.49511694, 5.49429525, ..., 5.47634848, 5.48395633, 5.49335975], [5.51271276, 5.51019773, 5.5062356 , ..., 5.46351396, 5.46636039, 5.47478851], [5.53545258, 5.52971674, 5.52265021, ..., 5.47099886, 5.47592994, 5.48852442], ... [5.6915918 , 5.68838115, 5.68753452, ..., 5.6933617 , 5.69152432, 5.68814416], [5.69547305, 5.69596869, 5.69388364, ..., 5.69226642, 5.6908492 , 5.68839807], [5.69899604, 5.699582 , 5.69824216, ..., 5.69303324, 5.69150744, 5.68992017]], [[5.49804898, 5.49558911, 5.4920939 , ..., 5.49610208, 5.49794661, 5.4999921 ], [5.51871716, 5.51781428, 5.51580495, ..., 5.48299032, 5.48693158, 5.49353458], [5.57192587, 5.56973666, 5.56725613, ..., 5.47840727, 5.48941282, 5.50539251], ..., [5.68643284, 5.68744982, 5.69251928, ..., 5.68838115, 5.68753452, 5.68549969], [5.69218212, 5.6957167 , 5.69739545, ..., 5.68888878, 5.68855039, 5.68626324], [5.69705993, 5.69957363, 5.69940625, ..., 5.69108554, 5.68990327, 5.68880419]]], shape=(730, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 1MB Dimensions: (time: 105, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 840B 2013-01-06 2013-01-13 ... 2015-01-04 Data variables: air (time, lat, lon) float64 1MB 5.502 5.502 5.501 ... 5.692 5.691 Attributes: (5)
weekly- time: 105
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-06 ... 2015-01-04
- standard_name :
- time
- long_name :
- Time
array(['2013-01-06T00:00:00.000000000', '2013-01-13T00:00:00.000000000', '2013-01-20T00:00:00.000000000', '2013-01-27T00:00:00.000000000', '2013-02-03T00:00:00.000000000', '2013-02-10T00:00:00.000000000', '2013-02-17T00:00:00.000000000', '2013-02-24T00:00:00.000000000', '2013-03-03T00:00:00.000000000', '2013-03-10T00:00:00.000000000', '2013-03-17T00:00:00.000000000', '2013-03-24T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-07T00:00:00.000000000', '2013-04-14T00:00:00.000000000', '2013-04-21T00:00:00.000000000', '2013-04-28T00:00:00.000000000', '2013-05-05T00:00:00.000000000', '2013-05-12T00:00:00.000000000', '2013-05-19T00:00:00.000000000', '2013-05-26T00:00:00.000000000', '2013-06-02T00:00:00.000000000', '2013-06-09T00:00:00.000000000', '2013-06-16T00:00:00.000000000', '2013-06-23T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-07T00:00:00.000000000', '2013-07-14T00:00:00.000000000', '2013-07-21T00:00:00.000000000', '2013-07-28T00:00:00.000000000', '2013-08-04T00:00:00.000000000', '2013-08-11T00:00:00.000000000', '2013-08-18T00:00:00.000000000', '2013-08-25T00:00:00.000000000', '2013-09-01T00:00:00.000000000', '2013-09-08T00:00:00.000000000', '2013-09-15T00:00:00.000000000', '2013-09-22T00:00:00.000000000', '2013-09-29T00:00:00.000000000', '2013-10-06T00:00:00.000000000', '2013-10-13T00:00:00.000000000', '2013-10-20T00:00:00.000000000', '2013-10-27T00:00:00.000000000', '2013-11-03T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-24T00:00:00.000000000', '2013-12-01T00:00:00.000000000', '2013-12-08T00:00:00.000000000', '2013-12-15T00:00:00.000000000', '2013-12-22T00:00:00.000000000', '2013-12-29T00:00:00.000000000', '2014-01-05T00:00:00.000000000', '2014-01-12T00:00:00.000000000', '2014-01-19T00:00:00.000000000', '2014-01-26T00:00:00.000000000', '2014-02-02T00:00:00.000000000', '2014-02-09T00:00:00.000000000', '2014-02-16T00:00:00.000000000', '2014-02-23T00:00:00.000000000', '2014-03-02T00:00:00.000000000', '2014-03-09T00:00:00.000000000', '2014-03-16T00:00:00.000000000', '2014-03-23T00:00:00.000000000', '2014-03-30T00:00:00.000000000', '2014-04-06T00:00:00.000000000', '2014-04-13T00:00:00.000000000', '2014-04-20T00:00:00.000000000', '2014-04-27T00:00:00.000000000', '2014-05-04T00:00:00.000000000', '2014-05-11T00:00:00.000000000', '2014-05-18T00:00:00.000000000', '2014-05-25T00:00:00.000000000', '2014-06-01T00:00:00.000000000', '2014-06-08T00:00:00.000000000', '2014-06-15T00:00:00.000000000', '2014-06-22T00:00:00.000000000', '2014-06-29T00:00:00.000000000', '2014-07-06T00:00:00.000000000', '2014-07-13T00:00:00.000000000', '2014-07-20T00:00:00.000000000', '2014-07-27T00:00:00.000000000', '2014-08-03T00:00:00.000000000', '2014-08-10T00:00:00.000000000', '2014-08-17T00:00:00.000000000', '2014-08-24T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-07T00:00:00.000000000', '2014-09-14T00:00:00.000000000', '2014-09-21T00:00:00.000000000', '2014-09-28T00:00:00.000000000', '2014-10-05T00:00:00.000000000', '2014-10-12T00:00:00.000000000', '2014-10-19T00:00:00.000000000', '2014-10-26T00:00:00.000000000', '2014-11-02T00:00:00.000000000', '2014-11-09T00:00:00.000000000', '2014-11-16T00:00:00.000000000', '2014-11-23T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-07T00:00:00.000000000', '2014-12-14T00:00:00.000000000', '2014-12-21T00:00:00.000000000', '2014-12-28T00:00:00.000000000', '2015-01-04T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float645.502 5.502 5.501 ... 5.692 5.691
- 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 ]
array([[[5.50239022, 5.50194675, 5.50114766, ..., 5.48537941, 5.49063395, 5.49794149], [5.51798488, 5.51606137, 5.51274807, ..., 5.47718853, 5.48202165, 5.49252461], [5.53826395, 5.5352915 , 5.53019599, ..., 5.49017147, 5.49861015, 5.51343547], ..., [5.69108414, 5.688281 , 5.68722109, ..., 5.68788596, 5.68628585, 5.68494505], [5.69271591, 5.69171973, 5.68995537, ..., 5.68954691, 5.68924397, 5.68815122], [5.69408842, 5.69372232, 5.69268923, ..., 5.6934459 , 5.6933603 , 5.69360166]], [[5.50689245, 5.50835541, 5.50877218, ..., 5.49958626, 5.50459811, 5.51184916], [5.5094375 , 5.51036097, 5.51061084, ..., 5.48957507, 5.49774329, 5.51159383], [5.52610014, 5.5233363 , 5.52039178, ..., 5.49721653, 5.51098481, 5.53039801], ... [5.68725377, 5.68658182, 5.68939736, ..., 5.69291892, 5.69256864, 5.69173761], [5.69104937, 5.69345432, 5.69488828, ..., 5.69483062, 5.69546945, 5.69468407], [5.6946252 , 5.69683339, 5.69727923, ..., 5.69661399, 5.69705154, 5.69711746]], [[5.52456277, 5.524596 , 5.52362857, ..., 5.51164961, 5.50962448, 5.5073958 ], [5.54391688, 5.54566886, 5.54606247, ..., 5.50489445, 5.50777097, 5.51283045], [5.57044471, 5.57022251, 5.5698383 , ..., 5.5090509 , 5.52039368, 5.53563006], ..., [5.68796357, 5.68649502, 5.68796639, ..., 5.69235914, 5.69098426, 5.68808209], [5.69260917, 5.69407159, 5.69379667, ..., 5.692494 , 5.69132464, 5.68847423], [5.69709908, 5.69849351, 5.69763026, ..., 5.69384998, 5.692494 , 5.69095612]]], shape=(105, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 255kB Dimensions: (time: 24, lat: 25, lon: 53) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 192B 2013-01-31 2013-02-28 ... 2014-12-31 Data variables: air (time, lat, lon) float64 254kB 5.499 5.5 5.5 ... 5.696 5.696 5.696 Attributes: (5)
monthly- time: 24
- lat: 25
- lon: 53
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-31 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-31T00:00:00.000000000', '2013-02-28T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-30T00:00:00.000000000', '2013-05-31T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-31T00:00:00.000000000', '2013-08-31T00:00:00.000000000', '2013-09-30T00:00:00.000000000', '2013-10-31T00:00:00.000000000', '2013-11-30T00:00:00.000000000', '2013-12-31T00:00:00.000000000', '2014-01-31T00:00:00.000000000', '2014-02-28T00:00:00.000000000', '2014-03-31T00:00:00.000000000', '2014-04-30T00:00:00.000000000', '2014-05-31T00:00:00.000000000', '2014-06-30T00:00:00.000000000', '2014-07-31T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-30T00:00:00.000000000', '2014-10-31T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]')
- air(time, lat, lon)float645.499 5.5 5.5 ... 5.696 5.696 5.696
- 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 ]
array([[[5.49907941, 5.49988399, 5.49991135, ..., 5.49096646, 5.49473236, 5.4999341 ], [5.50968475, 5.50947943, 5.50828449, ..., 5.48306139, 5.48912299, 5.5000623 ], [5.52297751, 5.52080005, 5.51788453, ..., 5.48887307, 5.50030713, 5.5174733 ], ..., [5.6898125 , 5.68748698, 5.6867148 , ..., 5.68822335, 5.68658381, 5.68449223], [5.6919444 , 5.69142988, 5.68984657, ..., 5.68896572, 5.68812969, 5.68651954], [5.69391215, 5.6938736 , 5.69284057, ..., 5.69138797, 5.69068852, 5.69049158]], [[5.48369229, 5.48355691, 5.48235211, ..., 5.4873049 , 5.49190778, 5.49694096], [5.48866134, 5.48922436, 5.48857831, ..., 5.48485621, 5.49027906, 5.50014571], [5.50257804, 5.50136462, 5.49868164, ..., 5.49477147, 5.50438015, 5.52009427], ... [5.69725818, 5.69491018, 5.69447933, ..., 5.69713319, 5.69595274, 5.69422248], [5.70032651, 5.69981433, 5.69800442, ..., 5.6974427 , 5.6978351 , 5.69670946], [5.70102339, 5.70117129, 5.70009485, ..., 5.69949441, 5.69957977, 5.69970835]], [[5.5085845 , 5.5089393 , 5.50845313, ..., 5.48093458, 5.48513719, 5.49010107], [5.51233944, 5.51464062, 5.51642633, ..., 5.47486658, 5.48198043, 5.49293931], [5.52133672, 5.51980051, 5.51976044, ..., 5.47102227, 5.48578159, 5.50625263], ..., [5.69187585, 5.68931652, 5.68954286, ..., 5.69214268, 5.69109398, 5.68972744], [5.69523232, 5.69519951, 5.69434399, ..., 5.69357246, 5.69392844, 5.69281937], [5.69725233, 5.69785202, 5.69729373, ..., 5.69607814, 5.69616428, 5.69612121]]], shape=(24, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
- name :
- NMC reanalysis temporal pyramid
We can also use a custom function to perform more complex operations, like subtracting a group mean:
def demean(ds):
return ds.groupby("time.day") - ds.groupby("time.day").mean()
Applying that to the dataset raises an error, though:
tree.map_over_datasets(demean)
Show code cell output Hide code cell output
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/dataset.py in ?(self, name)
1154 variable = self._variables[name]
1155 except KeyError:
-> 1156 _, name, variable = _get_virtual_variable(self._variables, name, self.sizes)
1157
KeyError: 'time.day'
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
File ~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/dataset.py:1261, in Dataset.__getitem__(self, key)
1260 try:
-> 1261 return self._construct_dataarray(key)
1262 except KeyError as e:
File ~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/dataset.py:1156, in Dataset._construct_dataarray(self, name)
1155 except KeyError:
-> 1156 _, name, variable = _get_virtual_variable(self._variables, name, self.sizes)
1158 needed_dims = set(variable.dims)
File ~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/dataset_utils.py:82, in _get_virtual_variable(variables, key, dim_sizes)
81 ref_name, var_name = split_key
---> 82 ref_var = variables[ref_name]
84 if _contains_datetime_like_objects(ref_var):
KeyError: 'time'
The above exception was the direct cause of the following exception:
KeyError Traceback (most recent call last)
/tmp/ipykernel_2148/422171771.py in ?()
----> 1 tree.map_over_datasets(demean)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/datatree.py in ?(self, func, kwargs, *args)
1531 map_over_datasets
1532 """
1533 # TODO this signature means that func has no way to know which node it is being called upon - change?
1534 # TODO fix this typing error
-> 1535 return map_over_datasets(func, self, *args, kwargs=kwargs)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/datatree_mapping.py in ?(func, kwargs, *args)
116 if not isinstance(arg, DataTree):
117 node_dataset_args.insert(i, arg)
118
119 func_with_error_context = _handle_errors_with_path_context(path)(func)
--> 120 results = func_with_error_context(*node_dataset_args, **kwargs)
121 out_data_objects[path] = results
122
123 num_return_values = _check_all_return_values(out_data_objects)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/datatree_mapping.py in ?(*args, **kwargs)
152 # Add the context information to the error message
153 add_note(
154 e, f"Raised whilst mapping function over node with path {path!r}"
155 )
--> 156 raise
/tmp/ipykernel_2148/373546963.py in ?(ds)
1 def demean(ds):
----> 2 return ds.groupby("time.day") - ds.groupby("time.day").mean()
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/util/deprecation_helpers.py in ?(*args, **kwargs)
114 kwargs.update(zip_args)
115
116 return func(*args[:-n_extra_args], **kwargs)
117
--> 118 return func(*args, **kwargs)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/dataset.py in ?(self, group, squeeze, restore_coord_dims, eagerly_compute_group, **groupers)
9961 _validate_groupby_squeeze,
9962 )
9963
9964 _validate_groupby_squeeze(squeeze)
-> 9965 rgroupers = _parse_group_and_groupers(
9966 self, group, groupers, eagerly_compute_group=eagerly_compute_group
9967 )
9968
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/groupby.py in ?(obj, group, groupers, eagerly_compute_group)
430 grouper_mapping = {g: UniqueGrouper() for g in group_iter}
431 elif groupers:
432 grouper_mapping = cast("Mapping[Hashable, Grouper]", groupers)
433
--> 434 rgroupers = tuple(
435 ResolvedGrouper(
436 grouper, group, obj, eagerly_compute_group=eagerly_compute_group
437 )
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/groupby.py in ?(.0)
434 def _parse_group_and_groupers(
--> 435 obj: T_Xarray,
436 group: GroupInput,
437 groupers: dict[str, Grouper],
438 *,
<string> in ?(self, grouper, group, obj, eagerly_compute_group)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/groupby.py in ?(self)
323 from xarray.groupers import BinGrouper, UniqueGrouper
324
325 self.grouper = copy.deepcopy(self.grouper)
326
--> 327 self.group = _resolve_group(self.obj, self.group)
328
329 if self.eagerly_compute_group:
330 raise ValueError(
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/groupby.py in ?(obj, group)
490 "`group` must be an xarray.DataArray or the "
491 "name of an xarray variable or dimension. "
492 f"Received {group!r} instead."
493 )
--> 494 group_da: DataArray = obj[group]
495 if group_da.name not in obj._indexes and group_da.name in obj.dims:
496 # DummyGroups should not appear on groupby results
497 newgroup = _DummyGroup(obj, group_da.name, group_da.coords)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/datatree.py in ?(self, key)
311 def __getitem__(self, key) -> DataArray | Dataset:
312 # TODO call the `_get_item` method of DataTree to allow path-like access to contents of other nodes
313 # For now just call Dataset.__getitem__
--> 314 return Dataset.__getitem__(self, key)
~/work/xarray-tutorial/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/xarray/core/dataset.py in ?(self, key)
1270
1271 # If someone attempts `ds['foo' , 'bar']` instead of `ds[['foo', 'bar']]`
1272 if isinstance(key, tuple):
1273 message += f"\nHint: use a list to select multiple variables, for example `ds[{list(key)}]`"
-> 1274 raise KeyError(message) from e
1275
1276 if utils.iterable_of_hashable(key):
1277 return self._copy_listed(key)
KeyError: "No variable named 'time.day'. Variables on the dataset include []"
Raised whilst mapping function over node with path '.'
The reason for this error is that the root node does not have any variables, and thus in particular no "time"
coordinate. To avoid the error, we have to skip computing the function for that node:
def demean(ds):
if "time" not in ds.coords:
return ds
return ds.groupby("time.day") - ds.groupby("time.day").mean()
tree.map_over_datasets(demean)
<xarray.DatasetView> Size: 0B Dimensions: () Data variables: *empty* Attributes: (1)
<xarray.DatasetView> Size: 8MB Dimensions: (lat: 25, lon: 53, time: 730) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 6kB 2013-01-01 2013-01-02 ... 2014-12-31 day (time) int64 6kB 1 2 3 4 5 6 7 8 9 ... 23 24 25 26 27 28 29 30 31 Data variables: air (time, lat, lon) float64 8MB -19.41 -18.72 -17.92 ... -1.263 -1.549 Attributes: (5)
daily- lat: 25
- lon: 53
- time: 730
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-01 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-01T00:00:00.000000000', '2013-01-02T00:00:00.000000000', '2013-01-03T00:00:00.000000000', ..., '2014-12-29T00:00:00.000000000', '2014-12-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], shape=(730,), dtype='datetime64[ns]')
- day(time)int641 2 3 4 5 6 7 ... 26 27 28 29 30 31
array([ 1, 2, 3, ..., 29, 30, 31], shape=(730,))
- air(time, lat, lon)float64-19.41 -18.72 ... -1.263 -1.549
- 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 ]
array([[[-1.94144792e+01, -1.87185417e+01, -1.79235417e+01, ..., -1.80854167e+01, -1.73507292e+01, -1.62185417e+01], [-1.96917708e+01, -1.96087500e+01, -1.96054167e+01, ..., -1.87141667e+01, -1.88415625e+01, -1.79460417e+01], [-1.21193750e+01, -1.22586458e+01, -1.31736458e+01, ..., -1.90450000e+01, -1.95685417e+01, -1.85535417e+01], ..., [-1.30625000e+00, -9.82812500e-01, -5.93333333e-01, ..., -8.99479167e-01, -9.99791667e-01, -9.78541667e-01], [-1.75989583e+00, -1.19468750e+00, -6.99166667e-01, ..., -6.17604167e-01, -6.98854167e-01, -8.85000000e-01], [-1.66041667e+00, -1.34593750e+00, -9.65208333e-01, ..., -1.99062500e-01, -1.07604167e-01, -2.01979167e-01]], [[-1.83863542e+01, -1.81362500e+01, -1.78483333e+01, ..., -1.22802083e+01, -1.17008333e+01, -1.09504167e+01], [-1.67586458e+01, -1.72922917e+01, -1.79983333e+01, ..., -1.35540625e+01, -1.47723958e+01, -1.55308333e+01], [-1.20825000e+01, -1.30194792e+01, -1.44150000e+01, ..., -1.19357292e+01, -1.37858333e+01, -1.48613542e+01], ... -1.19772727e-01, -9.11363636e-02, -5.84886364e-01], [-6.95454545e-01, -3.72272727e-01, -5.02159091e-01, ..., -4.13522727e-01, -6.97954545e-01, -1.03659091e+00], [ 1.64318182e-01, 2.92840909e-01, 1.55681818e-01, ..., -5.60681818e-01, -9.81477273e-01, -1.46613636e+00]], [[-1.45410714e+01, -1.48873214e+01, -1.54408929e+01, ..., -7.51589286e+00, -7.92160714e+00, -8.69928571e+00], [-1.28760714e+01, -1.32042857e+01, -1.36914286e+01, ..., -1.02551786e+01, -1.08110714e+01, -1.17208929e+01], [-2.57678571e+00, -2.95053571e+00, -3.60464286e+00, ..., -1.26283929e+01, -1.26442857e+01, -1.26008929e+01], ..., [-2.68232143e+00, -1.72982143e+00, -3.57142857e-04, ..., -1.26482143e+00, -1.05928571e+00, -1.18017857e+00], [-1.48178571e+00, -3.46250000e-01, 5.53928571e-01, ..., -1.09017857e+00, -1.11732143e+00, -1.39357143e+00], [-2.51964286e-01, 3.55178571e-01, 5.61964286e-01, ..., -9.63035714e-01, -1.26250000e+00, -1.54946429e+00]]], shape=(730, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 1MB Dimensions: (lat: 25, lon: 53, time: 105) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 840B 2013-01-06 2013-01-13 ... 2015-01-04 day (time) int64 840B 6 13 20 27 3 10 17 24 3 ... 16 23 30 7 14 21 28 4 Data variables: air (time, lat, lon) float64 1MB -14.98 -14.71 ... -0.2929 -0.5685 Attributes: (5)
weekly- lat: 25
- lon: 53
- time: 105
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-06 ... 2015-01-04
- standard_name :
- time
- long_name :
- Time
array(['2013-01-06T00:00:00.000000000', '2013-01-13T00:00:00.000000000', '2013-01-20T00:00:00.000000000', '2013-01-27T00:00:00.000000000', '2013-02-03T00:00:00.000000000', '2013-02-10T00:00:00.000000000', '2013-02-17T00:00:00.000000000', '2013-02-24T00:00:00.000000000', '2013-03-03T00:00:00.000000000', '2013-03-10T00:00:00.000000000', '2013-03-17T00:00:00.000000000', '2013-03-24T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-07T00:00:00.000000000', '2013-04-14T00:00:00.000000000', '2013-04-21T00:00:00.000000000', '2013-04-28T00:00:00.000000000', '2013-05-05T00:00:00.000000000', '2013-05-12T00:00:00.000000000', '2013-05-19T00:00:00.000000000', '2013-05-26T00:00:00.000000000', '2013-06-02T00:00:00.000000000', '2013-06-09T00:00:00.000000000', '2013-06-16T00:00:00.000000000', '2013-06-23T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-07T00:00:00.000000000', '2013-07-14T00:00:00.000000000', '2013-07-21T00:00:00.000000000', '2013-07-28T00:00:00.000000000', '2013-08-04T00:00:00.000000000', '2013-08-11T00:00:00.000000000', '2013-08-18T00:00:00.000000000', '2013-08-25T00:00:00.000000000', '2013-09-01T00:00:00.000000000', '2013-09-08T00:00:00.000000000', '2013-09-15T00:00:00.000000000', '2013-09-22T00:00:00.000000000', '2013-09-29T00:00:00.000000000', '2013-10-06T00:00:00.000000000', '2013-10-13T00:00:00.000000000', '2013-10-20T00:00:00.000000000', '2013-10-27T00:00:00.000000000', '2013-11-03T00:00:00.000000000', '2013-11-10T00:00:00.000000000', '2013-11-17T00:00:00.000000000', '2013-11-24T00:00:00.000000000', '2013-12-01T00:00:00.000000000', '2013-12-08T00:00:00.000000000', '2013-12-15T00:00:00.000000000', '2013-12-22T00:00:00.000000000', '2013-12-29T00:00:00.000000000', '2014-01-05T00:00:00.000000000', '2014-01-12T00:00:00.000000000', '2014-01-19T00:00:00.000000000', '2014-01-26T00:00:00.000000000', '2014-02-02T00:00:00.000000000', '2014-02-09T00:00:00.000000000', '2014-02-16T00:00:00.000000000', '2014-02-23T00:00:00.000000000', '2014-03-02T00:00:00.000000000', '2014-03-09T00:00:00.000000000', '2014-03-16T00:00:00.000000000', '2014-03-23T00:00:00.000000000', '2014-03-30T00:00:00.000000000', '2014-04-06T00:00:00.000000000', '2014-04-13T00:00:00.000000000', '2014-04-20T00:00:00.000000000', '2014-04-27T00:00:00.000000000', '2014-05-04T00:00:00.000000000', '2014-05-11T00:00:00.000000000', '2014-05-18T00:00:00.000000000', '2014-05-25T00:00:00.000000000', '2014-06-01T00:00:00.000000000', '2014-06-08T00:00:00.000000000', '2014-06-15T00:00:00.000000000', '2014-06-22T00:00:00.000000000', '2014-06-29T00:00:00.000000000', '2014-07-06T00:00:00.000000000', '2014-07-13T00:00:00.000000000', '2014-07-20T00:00:00.000000000', '2014-07-27T00:00:00.000000000', '2014-08-03T00:00:00.000000000', '2014-08-10T00:00:00.000000000', '2014-08-17T00:00:00.000000000', '2014-08-24T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-07T00:00:00.000000000', '2014-09-14T00:00:00.000000000', '2014-09-21T00:00:00.000000000', '2014-09-28T00:00:00.000000000', '2014-10-05T00:00:00.000000000', '2014-10-12T00:00:00.000000000', '2014-10-19T00:00:00.000000000', '2014-10-26T00:00:00.000000000', '2014-11-02T00:00:00.000000000', '2014-11-09T00:00:00.000000000', '2014-11-16T00:00:00.000000000', '2014-11-23T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-07T00:00:00.000000000', '2014-12-14T00:00:00.000000000', '2014-12-21T00:00:00.000000000', '2014-12-28T00:00:00.000000000', '2015-01-04T00:00:00.000000000'], dtype='datetime64[ns]')
- day(time)int646 13 20 27 3 10 ... 30 7 14 21 28 4
array([ 6, 13, 20, 27, 3, 10, 17, 24, 3, 10, 17, 24, 31, 7, 14, 21, 28, 5, 12, 19, 26, 2, 9, 16, 23, 30, 7, 14, 21, 28, 4, 11, 18, 25, 1, 8, 15, 22, 29, 6, 13, 20, 27, 3, 10, 17, 24, 1, 8, 15, 22, 29, 5, 12, 19, 26, 2, 9, 16, 23, 2, 9, 16, 23, 30, 6, 13, 20, 27, 4, 11, 18, 25, 1, 8, 15, 22, 29, 6, 13, 20, 27, 3, 10, 17, 24, 31, 7, 14, 21, 28, 5, 12, 19, 26, 2, 9, 16, 23, 30, 7, 14, 21, 28, 4])
- air(time, lat, lon)float64-14.98 -14.71 ... -0.2929 -0.5685
- 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 ]
array([[[-1.49777679e+01, -1.47087054e+01, -1.44419196e+01, ..., -1.00604911e+01, -9.80437500e+00, -9.49058036e+00], [-1.41776786e+01, -1.44803125e+01, -1.49270982e+01, ..., -1.02401786e+01, -1.04570982e+01, -1.04038839e+01], [-1.09520982e+01, -1.12379464e+01, -1.20643750e+01, ..., -8.57218750e+00, -8.91325893e+00, -8.94071429e+00], ..., [-1.51879464e+00, -1.54102679e+00, -1.42544643e+00, ..., -1.31299107e+00, -1.20276786e+00, -1.08375000e+00], [-1.31241071e+00, -1.32388393e+00, -1.32334821e+00, ..., -8.71919643e-01, -7.93125000e-01, -7.65223214e-01], [-1.06116071e+00, -1.19852679e+00, -1.24575893e+00, ..., -2.39196429e-01, -1.83258929e-01, -1.38526786e-01]], [[-1.34446429e+01, -1.29419643e+01, -1.26468750e+01, ..., -7.28026786e+00, -6.76482143e+00, -6.08598214e+00], [-1.45439286e+01, -1.44803571e+01, -1.45212500e+01, ..., -8.75571429e+00, -8.31651786e+00, -7.40535714e+00], [-1.34458929e+01, -1.37749107e+01, -1.41811607e+01, ..., -7.85946429e+00, -7.28526786e+00, -6.35803571e+00], ... -7.61607143e-01, -3.70446429e-01, -2.98303571e-01], [-2.13232143e+00, -1.38062500e+00, -6.03750000e-01, ..., -1.63482143e-01, 6.42857143e-02, -5.17857143e-03], [-1.29366071e+00, -7.46964286e-01, -4.03839286e-01, ..., 7.76785714e-03, 1.06160714e-01, -2.24107143e-02]], [[-1.26512698e+01, -1.26101190e+01, -1.27063095e+01, ..., -7.95031746e+00, -8.94444444e+00, -1.01578968e+01], [-1.11258333e+01, -1.09881349e+01, -1.10399603e+01, ..., -9.40761905e+00, -9.91694444e+00, -1.04987698e+01], [-9.55420635e+00, -9.80369048e+00, -1.01037698e+01, ..., -1.02447222e+01, -9.75170635e+00, -9.10011905e+00], ..., [-1.80305556e+00, -1.59575397e+00, -1.12035714e+00, ..., -1.37500000e-01, -6.27380952e-02, -4.11507937e-01], [-1.18138889e+00, -6.93134921e-01, -4.62817460e-01, ..., -1.04166667e-01, -3.19087302e-01, -7.25000000e-01], [-4.55793651e-01, -2.03928571e-01, -1.94642857e-01, ..., -4.98809524e-02, -2.92857143e-01, -5.68531746e-01]]], shape=(105, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
<xarray.DatasetView> Size: 255kB Dimensions: (lat: 25, lon: 53, time: 24) Coordinates: * lat (lat) float32 100B 75.0 72.5 70.0 67.5 65.0 ... 22.5 20.0 17.5 15.0 * lon (lon) float32 212B 200.0 202.5 205.0 207.5 ... 325.0 327.5 330.0 * time (time) datetime64[ns] 192B 2013-01-31 2013-02-28 ... 2014-12-31 day (time) int64 192B 31 28 31 30 31 30 31 31 ... 30 31 31 30 31 30 31 Data variables: air (time, lat, lon) float64 254kB -15.81 -15.45 ... 0.399 0.3784 Attributes: (5)
monthly- lat: 25
- lon: 53
- time: 24
- 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 ... 327.5 330.0
- 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, 325. , 327.5, 330. ], dtype=float32)
- time(time)datetime64[ns]2013-01-31 ... 2014-12-31
- standard_name :
- time
- long_name :
- Time
array(['2013-01-31T00:00:00.000000000', '2013-02-28T00:00:00.000000000', '2013-03-31T00:00:00.000000000', '2013-04-30T00:00:00.000000000', '2013-05-31T00:00:00.000000000', '2013-06-30T00:00:00.000000000', '2013-07-31T00:00:00.000000000', '2013-08-31T00:00:00.000000000', '2013-09-30T00:00:00.000000000', '2013-10-31T00:00:00.000000000', '2013-11-30T00:00:00.000000000', '2013-12-31T00:00:00.000000000', '2014-01-31T00:00:00.000000000', '2014-02-28T00:00:00.000000000', '2014-03-31T00:00:00.000000000', '2014-04-30T00:00:00.000000000', '2014-05-31T00:00:00.000000000', '2014-06-30T00:00:00.000000000', '2014-07-31T00:00:00.000000000', '2014-08-31T00:00:00.000000000', '2014-09-30T00:00:00.000000000', '2014-10-31T00:00:00.000000000', '2014-11-30T00:00:00.000000000', '2014-12-31T00:00:00.000000000'], dtype='datetime64[ns]')
- day(time)int6431 28 31 30 31 ... 31 30 31 30 31
array([31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31])
- air(time, lat, lon)float64-15.81 -15.45 ... 0.399 0.3784
- 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 ]
array([[[-1.58145680e+01, -1.54455876e+01, -1.51665956e+01, ..., -8.47658410e+00, -8.73008641e+00, -9.02492512e+00], [-1.56102707e+01, -1.57882892e+01, -1.61054666e+01, ..., -9.38926843e+00, -9.84914747e+00, -1.00355415e+01], [-1.47431682e+01, -1.50321025e+01, -1.56355876e+01, ..., -8.71965438e+00, -9.00345046e+00, -8.95861175e+00], ..., [-1.78184908e+00, -1.77322005e+00, -1.72148041e+00, ..., -1.48282258e+00, -1.44424539e+00, -1.57774194e+00], [-1.62960829e+00, -1.60671083e+00, -1.64866359e+00, ..., -1.32169355e+00, -1.47925115e+00, -1.59737327e+00], [-1.29645737e+00, -1.34990783e+00, -1.40789171e+00, ..., -1.08349654e+00, -1.22684908e+00, -1.29292051e+00]], [[-5.94316964e+00, -5.70428571e+00, -5.53678571e+00, ..., -2.53080357e-01, -2.82053571e-01, -4.99107143e-01], [-5.86683036e+00, -5.69049107e+00, -5.56437500e+00, ..., 3.67410714e-01, 5.87053571e-02, -3.38839286e-01], [-3.74718750e+00, -3.54620536e+00, -3.57290179e+00, ..., 9.87366071e-01, 4.32723214e-01, -6.38839286e-02], ... 7.21604167e-01, 8.61281250e-01, 7.68333333e-01], [ 4.68406250e-01, 5.47020833e-01, 5.42708333e-01, ..., 7.86958333e-01, 9.24635417e-01, 8.36708333e-01], [ 5.26614583e-01, 5.70333333e-01, 5.41125000e-01, ..., 9.60260417e-01, 9.95229167e-01, 9.57989583e-01]], [[-1.34798099e+01, -1.32200230e+01, -1.30677247e+01, ..., -1.08970680e+01, -1.10544412e+01, -1.14190380e+01], [-1.49534965e+01, -1.45100634e+01, -1.40884505e+01, ..., -1.13527362e+01, -1.15718088e+01, -1.17723963e+01], [-1.51536521e+01, -1.52816993e+01, -1.51678456e+01, ..., -1.30009447e+01, -1.25331279e+01, -1.17369988e+01], ..., [-1.17080069e+00, -1.23273618e+00, -8.86238479e-01, ..., -3.22903226e-01, -1.11261521e-01, -3.31451613e-02], [-6.53237327e-01, -4.87597926e-01, -3.15115207e-01, ..., 4.31451613e-02, 2.38329493e-01, 2.66094470e-01], [-3.02586406e-01, -1.65794931e-01, -8.35368664e-02, ..., 3.09487327e-01, 3.98957373e-01, 3.78369816e-01]]], shape=(24, 25, 53))
- Conventions :
- COARDS
- title :
- 4x daily NMC reanalysis (1948)
- description :
- Data is from NMC initialized reanalysis (4x/day). These are the 0.9950 sigma level values.
- platform :
- Model
- references :
- http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html
- name :
- NMC reanalysis temporal pyramid