This repository contains the scripts, configurations as well as providers used for individual Earth System Data Cube (ESDC) production of version 2.0.0. The repository also contains md5 sums of the released data.
Also use 2018_12_03_cube_usage_examples.ipynb
Open a Cube (config: 8d, 0.25deg)
import xarray as xr
ds = xr.open_zarr('/home/jovyan/work/datacube/ESDCv2.0.0/esdc-8d-0.25deg-1x720x1440-2.0.0.zarr')
ds
Open a variable (e.g. par)
ds.par
Plot a time step
v = ds.par.sel(time='2003-01-05')
v.plot()
Plot a regional subset:
v = ds.par.loc[dict(lat=slice(40, -20), lon=slice(-20, 20), time='2003-01-05')]
v.plot()
Plot a time step close to your choice
v = ds.par.sel(time='2003-01-08', method='nearest')
v.plot()
Plot a time series of a cell close to a spatial location
v = ds.par.sel(dict(lat=51, lon=10), method='nearest')
v.plot()
- Miniconda
- Install Miniconda
- Install cate
git clone https://github.com/esa-esdl/cube-generator.git
cd [cube-generator]/cate
conda env create --file=environment.yml
source activate cate
(Linux) oractivate esdl
(Windows)python setup.py install
- Install esdl-core
cd [cube-generator]/esdl-core
python setup.py install
- Run
cuge-gen
to test whether the software is correctly installed
The esdl core library contains data providers already. However, for this version we developed new
providers for new and updated variables. They are stored in the sub-directory cube/providers
. In order
to activate them, you have to run python setup.py
from the cube-generator root directory.
cd [cube-generator]/scripts
- rsync down cube
- check md5sums
./cube-gen.sh
- Copy new variables to cube
- Generate md5sums of new variable
- rsync cube up
- commit new md5sums to repo
The cube version 2.0.0 uses the zarr data format. The zarr data format consists of a large number of small files for each variable. The following script will, therefore, generate a total md5sums for each directory.
bash scripts/checksum.sh -c [cube]
This script will check the integrity of the md5sums across a cube:
bash check_data_integrity.sh -c [cube]
The following naming convention for the cube directories has been used: https://github.com/esa-esdl/cube-generator/wiki/Cube-file-structure-and-naming-convention