D&B (DALEC-BETHY) sample-point domain dalecbethy/std#
Description#
D&B (DALEC-BETHY) sample-point domain plugin.
D&B does not run on a regular lat/lon grid: it is a point-based model,
where each simulated location (“grid-cell”, index ig in [1, ng]) is
described by its own coordinates, split into one or several “sample
points” (index isp in [1, nsp], one per active plant functional
type), see model_sources/dalecbethy/src/dimensions.f90 and
src/static_fields.f90.
This domain is entirely defined by D&B’s own static forcing NetCDF file
(input/staticforcing.nc, see
model_sources/dalecbethy/src/ncread_forcing.f90::ncread_static_forcing),
which read_grid() reads and flattens into the nsp
sample points, following the same 1D/unstructured convention as
pycif.plugins.domains.unstructured_NetCDF.
Since this domain cannot be built from scratch by pyCIF – it is always
produced externally, upstream of any pyCIF run – create_domain()
raises an exception; use read_grid() instead.
YAML arguments#
The following arguments are used to configure the plugin. pyCIF will return an exception at the initialization if mandatory arguments are not specified, or if any argument does not fit accepted values or type:
Mandatory arguments#
- file : str, mandatory
D&B static forcing NetCDF file name (e.g. ‘global_staticforcing.nc’ or ‘<site>_staticforcing.nc’, see model_sources/dalecbethy/Makefile ‘FORCE_STATIC’).
Optional arguments#
- dir : str, optional, default “”
Directory containing ‘file’ (D&B’s static forcing NetCDF).
YAML template#
Please find below a template for a YAML configuration:
1domain:
2 plugin:
3 name: dalecbethy
4 version: std
5 type: domain
6
7 # Mandatory arguments
8 file: XXXXX # str
9
10 # Optional arguments
11 dir: XXXXX # str
See also