Create a cube
Let’s start by creating a cube as we have done previously
# read files and load data
data = ["demoData/Carya_ovata_sim_disc_10km.tif", "demoData/Carya_ovata_sim_disc_1km.tif"]
ds = read_data(data)
We will rescale and trim the data sets
# scale data
scaledData = raster_align(ds)
trimmedData = raster_trim(scaledData)
Finally, we will make a cube Object. Each file will be assigned to a
variable (10km and 1km).
# set up time vec for 101 years
yearObj = cube_time(start="2000-12-31", length=101, scale = "month")
# make cube
cube = make_cube(data = trimmedData, fileName = "monthCube.nc4", organizeFiles = "filestovar", organizeBands="bandstotime", timeObj = yearObj, varNames = ["10km", "1km"])
Subset the Cube
Let’s create new cube that only contains time slices between
2000-12-31 and 205-12-31.
# use cube smahser to multiply cube by 5
selectedTime = select_time(cube=cube, range=["2000-12-31", "2005-12-31"])
Let’s write this cube back out. We use the same function
make_cube()
to write out a new cube as you would to compile
a cube from a file object. The function recognizes which case is being
used automatically.
# write out the cube
subCube = make_cube(data = selectedTime, fileName = "subCube.nc4")
# lets look at the dataset
subCube.get_data_array()
<xarray.DataArray (variables: 2, lat: 149, lon: 297, time: 61)>
array([[[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 8.1205005e+02, 8.1205005e+02, 1.2280000e+03, ...,
1.6400000e+03, 1.6000000e+03, 1.5820000e+03],
[ 2.0893887e+02, 2.0893887e+02, 3.6000000e+02, ...,
1.4490000e+03, 1.4210000e+03, 1.4390000e+03],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]]]],
dtype=float32)
Coordinates:
* variables (variables) <U4 '10km' '1km'
* lon (lon) float32 -83.75 -83.67 -83.58 -83.5 ... -59.25 -59.17 -59.08
* lat (lat) float32 49.0 48.92 48.83 48.75 ... 36.92 36.83 36.75 36.67
* time (time) datetime64[ns] 2000-12-31 2001-01-31 ... 2005-12-31 -3.4e+38 -3.4e+38 -3.4e+38 -3.4e+38 ... -3.4e+38 -3.4e+38 -3.4e+38
array([[[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 8.1205005e+02, 8.1205005e+02, 1.2280000e+03, ...,
1.6400000e+03, 1.6000000e+03, 1.5820000e+03],
[ 2.0893887e+02, 2.0893887e+02, 3.6000000e+02, ...,
1.4490000e+03, 1.4210000e+03, 1.4390000e+03],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]]]],
dtype=float32) Coordinates: (4)
variables
(variables)
<U4
'10km' '1km'
array(['10km', '1km'], dtype='<U4') lon
(lon)
float32
-83.75 -83.67 ... -59.17 -59.08
array([-83.75 , -83.666664, -83.583336, ..., -59.25 , -59.166668,
-59.083332], dtype=float32) lat
(lat)
float32
49.0 48.92 48.83 ... 36.75 36.67
array([49. , 48.916668, 48.833332, 48.75 , 48.666668, 48.583332,
48.5 , 48.416668, 48.333332, 48.25 , 48.166668, 48.083332,
48. , 47.916668, 47.833332, 47.75 , 47.666668, 47.583332,
47.5 , 47.416668, 47.333332, 47.25 , 47.166668, 47.083332,
47. , 46.916668, 46.833332, 46.75 , 46.666668, 46.583332,
46.5 , 46.416668, 46.333332, 46.25 , 46.166668, 46.083332,
46. , 45.916668, 45.833332, 45.75 , 45.666668, 45.583332,
45.5 , 45.416668, 45.333332, 45.25 , 45.166668, 45.083332,
45. , 44.916668, 44.833332, 44.75 , 44.666668, 44.583332,
44.5 , 44.416668, 44.333332, 44.25 , 44.166668, 44.083332,
44. , 43.916668, 43.833332, 43.75 , 43.666668, 43.583332,
43.5 , 43.416668, 43.333332, 43.25 , 43.166668, 43.083332,
43. , 42.916668, 42.833332, 42.75 , 42.666668, 42.583332,
42.5 , 42.416668, 42.333332, 42.25 , 42.166668, 42.083332,
42. , 41.916668, 41.833332, 41.75 , 41.666668, 41.583332,
41.5 , 41.416668, 41.333332, 41.25 , 41.166668, 41.083332,
41. , 40.916668, 40.833332, 40.75 , 40.666668, 40.583332,
40.5 , 40.416668, 40.333332, 40.25 , 40.166668, 40.083332,
40. , 39.916668, 39.833332, 39.75 , 39.666668, 39.583332,
39.5 , 39.416668, 39.333332, 39.25 , 39.166668, 39.083332,
39. , 38.916668, 38.833332, 38.75 , 38.666668, 38.583332,
38.5 , 38.416668, 38.333332, 38.25 , 38.166668, 38.083332,
38. , 37.916668, 37.833332, 37.75 , 37.666668, 37.583332,
37.5 , 37.416668, 37.333332, 37.25 , 37.166668, 37.083332,
37. , 36.916668, 36.833332, 36.75 , 36.666668], dtype=float32) time
(time)
datetime64[ns]
2000-12-31 ... 2005-12-31
array(['2000-12-31T00:00:00.000000000', '2001-01-31T00:00:00.000000000',
'2001-02-28T00:00:00.000000000', '2001-03-31T00:00:00.000000000',
'2001-04-30T00:00:00.000000000', '2001-05-31T00:00:00.000000000',
'2001-06-30T00:00:00.000000000', '2001-07-31T00:00:00.000000000',
'2001-08-31T00:00:00.000000000', '2001-09-30T00:00:00.000000000',
'2001-10-31T00:00:00.000000000', '2001-11-30T00:00:00.000000000',
'2001-12-31T00:00:00.000000000', '2002-01-31T00:00:00.000000000',
'2002-02-28T00:00:00.000000000', '2002-03-31T00:00:00.000000000',
'2002-04-30T00:00:00.000000000', '2002-05-31T00:00:00.000000000',
'2002-06-30T00:00:00.000000000', '2002-07-31T00:00:00.000000000',
'2002-08-31T00:00:00.000000000', '2002-09-30T00:00:00.000000000',
'2002-10-31T00:00:00.000000000', '2002-11-30T00:00:00.000000000',
'2002-12-31T00:00:00.000000000', '2003-01-31T00:00:00.000000000',
'2003-02-28T00:00:00.000000000', '2003-03-31T00:00:00.000000000',
'2003-04-30T00:00:00.000000000', '2003-05-31T00:00:00.000000000',
'2003-06-30T00:00:00.000000000', '2003-07-31T00:00:00.000000000',
'2003-08-31T00:00:00.000000000', '2003-09-30T00:00:00.000000000',
'2003-10-31T00:00:00.000000000', '2003-11-30T00:00:00.000000000',
'2003-12-31T00:00:00.000000000', '2004-01-31T00:00:00.000000000',
'2004-02-29T00:00:00.000000000', '2004-03-31T00:00:00.000000000',
'2004-04-30T00:00:00.000000000', '2004-05-31T00:00:00.000000000',
'2004-06-30T00:00:00.000000000', '2004-07-31T00:00:00.000000000',
'2004-08-31T00:00:00.000000000', '2004-09-30T00:00:00.000000000',
'2004-10-31T00:00:00.000000000', '2004-11-30T00:00:00.000000000',
'2004-12-31T00:00:00.000000000', '2005-01-31T00:00:00.000000000',
'2005-02-28T00:00:00.000000000', '2005-03-31T00:00:00.000000000',
'2005-04-30T00:00:00.000000000', '2005-05-31T00:00:00.000000000',
'2005-06-30T00:00:00.000000000', '2005-07-31T00:00:00.000000000',
'2005-08-31T00:00:00.000000000', '2005-09-30T00:00:00.000000000',
'2005-10-31T00:00:00.000000000', '2005-11-30T00:00:00.000000000',
'2005-12-31T00:00:00.000000000'], dtype='datetime64[ns]') Attributes: (0)
We can see that we now have 61 time points and our cube file named
“subCube.nc4” is written to disk. We could now close our session with
our progress saved. Lets reopen the cube using the
load_cube()
function.
# reload the cube
reloaded_subCube = load_cube(file="subCube.nc4")
# check to make sure the data look the same
reloaded_subCube.get_data_array()
<xarray.DataArray (variables: 2, lat: 149, lon: 297, time: 61)>
array([[[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 8.1205005e+02, 8.1205005e+02, 1.2280000e+03, ...,
1.6400000e+03, 1.6000000e+03, 1.5820000e+03],
[ 2.0893887e+02, 2.0893887e+02, 3.6000000e+02, ...,
1.4490000e+03, 1.4210000e+03, 1.4390000e+03],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]]]],
dtype=float32)
Coordinates:
* variables (variables) <U4 '10km' '1km'
* lon (lon) float32 -83.75 -83.67 -83.58 -83.5 ... -59.25 -59.17 -59.08
* lat (lat) float32 49.0 48.92 48.83 48.75 ... 36.92 36.83 36.75 36.67
* time (time) datetime64[ns] 2000-12-31 2001-01-31 ... 2005-12-31 -3.4e+38 -3.4e+38 -3.4e+38 -3.4e+38 ... -3.4e+38 -3.4e+38 -3.4e+38
array([[[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
[ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ...,
0.0000000e+00, 0.0000000e+00, 0.0000000e+00],
...
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]],
[[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[ 8.1205005e+02, 8.1205005e+02, 1.2280000e+03, ...,
1.6400000e+03, 1.6000000e+03, 1.5820000e+03],
[ 2.0893887e+02, 2.0893887e+02, 3.6000000e+02, ...,
1.4490000e+03, 1.4210000e+03, 1.4390000e+03],
...,
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38],
[-3.4000000e+38, -3.4000000e+38, -3.4000000e+38, ...,
-3.4000000e+38, -3.4000000e+38, -3.4000000e+38]]]],
dtype=float32) Coordinates: (4)
variables
(variables)
<U4
'10km' '1km'
array(['10km', '1km'], dtype='<U4') lon
(lon)
float32
-83.75 -83.67 ... -59.17 -59.08
array([-83.75 , -83.666664, -83.583336, ..., -59.25 , -59.166668,
-59.083332], dtype=float32) lat
(lat)
float32
49.0 48.92 48.83 ... 36.75 36.67
array([49. , 48.916668, 48.833332, 48.75 , 48.666668, 48.583332,
48.5 , 48.416668, 48.333332, 48.25 , 48.166668, 48.083332,
48. , 47.916668, 47.833332, 47.75 , 47.666668, 47.583332,
47.5 , 47.416668, 47.333332, 47.25 , 47.166668, 47.083332,
47. , 46.916668, 46.833332, 46.75 , 46.666668, 46.583332,
46.5 , 46.416668, 46.333332, 46.25 , 46.166668, 46.083332,
46. , 45.916668, 45.833332, 45.75 , 45.666668, 45.583332,
45.5 , 45.416668, 45.333332, 45.25 , 45.166668, 45.083332,
45. , 44.916668, 44.833332, 44.75 , 44.666668, 44.583332,
44.5 , 44.416668, 44.333332, 44.25 , 44.166668, 44.083332,
44. , 43.916668, 43.833332, 43.75 , 43.666668, 43.583332,
43.5 , 43.416668, 43.333332, 43.25 , 43.166668, 43.083332,
43. , 42.916668, 42.833332, 42.75 , 42.666668, 42.583332,
42.5 , 42.416668, 42.333332, 42.25 , 42.166668, 42.083332,
42. , 41.916668, 41.833332, 41.75 , 41.666668, 41.583332,
41.5 , 41.416668, 41.333332, 41.25 , 41.166668, 41.083332,
41. , 40.916668, 40.833332, 40.75 , 40.666668, 40.583332,
40.5 , 40.416668, 40.333332, 40.25 , 40.166668, 40.083332,
40. , 39.916668, 39.833332, 39.75 , 39.666668, 39.583332,
39.5 , 39.416668, 39.333332, 39.25 , 39.166668, 39.083332,
39. , 38.916668, 38.833332, 38.75 , 38.666668, 38.583332,
38.5 , 38.416668, 38.333332, 38.25 , 38.166668, 38.083332,
38. , 37.916668, 37.833332, 37.75 , 37.666668, 37.583332,
37.5 , 37.416668, 37.333332, 37.25 , 37.166668, 37.083332,
37. , 36.916668, 36.833332, 36.75 , 36.666668], dtype=float32) time
(time)
datetime64[ns]
2000-12-31 ... 2005-12-31
array(['2000-12-31T00:00:00.000000000', '2001-01-31T00:00:00.000000000',
'2001-02-28T00:00:00.000000000', '2001-03-31T00:00:00.000000000',
'2001-04-30T00:00:00.000000000', '2001-05-31T00:00:00.000000000',
'2001-06-30T00:00:00.000000000', '2001-07-31T00:00:00.000000000',
'2001-08-31T00:00:00.000000000', '2001-09-30T00:00:00.000000000',
'2001-10-31T00:00:00.000000000', '2001-11-30T00:00:00.000000000',
'2001-12-31T00:00:00.000000000', '2002-01-31T00:00:00.000000000',
'2002-02-28T00:00:00.000000000', '2002-03-31T00:00:00.000000000',
'2002-04-30T00:00:00.000000000', '2002-05-31T00:00:00.000000000',
'2002-06-30T00:00:00.000000000', '2002-07-31T00:00:00.000000000',
'2002-08-31T00:00:00.000000000', '2002-09-30T00:00:00.000000000',
'2002-10-31T00:00:00.000000000', '2002-11-30T00:00:00.000000000',
'2002-12-31T00:00:00.000000000', '2003-01-31T00:00:00.000000000',
'2003-02-28T00:00:00.000000000', '2003-03-31T00:00:00.000000000',
'2003-04-30T00:00:00.000000000', '2003-05-31T00:00:00.000000000',
'2003-06-30T00:00:00.000000000', '2003-07-31T00:00:00.000000000',
'2003-08-31T00:00:00.000000000', '2003-09-30T00:00:00.000000000',
'2003-10-31T00:00:00.000000000', '2003-11-30T00:00:00.000000000',
'2003-12-31T00:00:00.000000000', '2004-01-31T00:00:00.000000000',
'2004-02-29T00:00:00.000000000', '2004-03-31T00:00:00.000000000',
'2004-04-30T00:00:00.000000000', '2004-05-31T00:00:00.000000000',
'2004-06-30T00:00:00.000000000', '2004-07-31T00:00:00.000000000',
'2004-08-31T00:00:00.000000000', '2004-09-30T00:00:00.000000000',
'2004-10-31T00:00:00.000000000', '2004-11-30T00:00:00.000000000',
'2004-12-31T00:00:00.000000000', '2005-01-31T00:00:00.000000000',
'2005-02-28T00:00:00.000000000', '2005-03-31T00:00:00.000000000',
'2005-04-30T00:00:00.000000000', '2005-05-31T00:00:00.000000000',
'2005-06-30T00:00:00.000000000', '2005-07-31T00:00:00.000000000',
'2005-08-31T00:00:00.000000000', '2005-09-30T00:00:00.000000000',
'2005-10-31T00:00:00.000000000', '2005-11-30T00:00:00.000000000',
'2005-12-31T00:00:00.000000000'], dtype='datetime64[ns]') Attributes: (0)
The reloaded data looks just like the original dataset. This file
could be passed to another user and they would be able to access the new
cube using spacetime on their own machine.