install_data#

cherab.lhd.emc3.repository.install.install_data(directory_path: Path | str, grid_file: Path | str = PosixPath('/home/docs/.cache/cherab/lhd/emc3/grid-360.nc')) NoneSource#

Install EMC3-EIRENE calculated data.

xarray.DataTree is used to store the data into the same netCDF file as the grid data as a group named “data”.

So, the data tree structure looks like as follows:

/
├── data
:   ├── radiation
    │   ├── plasma
    │   ├── impurity
    │   └── total
    ├── density
    │   ├── electron
    │   ├── H+
    |   ├── C1+
    :   :
    |   └── Ne
    └── temperature
        ├── electron
        ├── ion
        ├── H
        └── H2

For example, the radiation group contains one xarray.Dataset with three xarray.DataArray variables. Shared coordinates are stored in the data group.

Parameters:
directory_pathPath | str

Path to the directory storing EMC3-calculated data.

grid_filePath | str, optional

Path to the grid netCDF file, by default cherab/lhd/emc3/grid-360.nc under the user’s cache directory.