Skip to content

Commit 788e820

Browse files
authored
print original dataarray as well
1 parent cae2282 commit 788e820

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

xarray/core/dataarray.py

+16
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,22 @@ class DataArray(AbstractArray, DataWithCoords):
304304
... units="degC",
305305
... ),
306306
... )
307+
>>> da
308+
<xarray.DataArray (x: 2, y: 2, time: 3)>
309+
array([[[29.11241877, 18.20125767, 22.82990387],
310+
[32.92714559, 29.94046392, 7.18177696]],
311+
<BLANKLINE>
312+
[[22.60070734, 13.78914233, 14.17424919],
313+
[18.28478802, 16.15234857, 26.63418806]]])
314+
Coordinates:
315+
lon (x, y) float64 -99.83 -99.32 -99.79 -99.23
316+
lat (x, y) float64 42.25 42.21 42.63 42.59
317+
* time (time) datetime64[ns] 2014-09-06 2014-09-07 2014-09-08
318+
reference_time datetime64[ns] 2014-09-05
319+
Dimensions without coordinates: x, y
320+
Attributes:
321+
description: Ambient temperature.
322+
units: degC
307323
308324
Find out where the coldest temperature was:
309325

0 commit comments

Comments
 (0)