NetCDFPlayer Model#
The NetCDFPlayerModel can read a (specifically organized) netCDF file and write variables
inside this netCDF to attributes in an entity group. The netCDF file must adhere to the following
specification:
There must be a
timevariable with a number of timestamps. The timestamps represent the number of seconds sincest=0There must be at least one other variable which has the length of
timeas the first dimension and the length of the number of (target) entities as the second dimensionthe variable data must be either 32 bit or 64 bit floating points
After initialization the NetCDFPlayerModel reads the netCDF data and writes the source variable
data per timestamp on the target attribute. The variable data is assigned to the target attribute
on an “index” basis, not on an “id” basis.
Example Configuration#
{
"name": "my_player",
"type": "netcdf_player",
"netcdf_tape": "some_netcdf_tape",
"entity_group": ["target_dataset", "target_entities"],
"attributes": [
{
"source": "source_var",
"target": "target.attribute"
}
]
}
NetCDFPlayer Model Config Schema Reference#
NetCDFPlayerConfig#
type: objectproperties:netcdf_tape:stringthe name of a NetCDF tape dataset (required)entity_group: NetCDFPlayerEntityGroup (required)attributes: NetCDFPlayerAttributes (required)
NetCDFPlayerEntityGroup#
type: arrayA Tuple-array of two strings representing the target entity group: [“target_dataset”, “target_entity_group”]
NetCDFPlayerAttributes#
NetCDFPlayerAttribute#
type: objectproperties:source:stringThe variable name in the source (netcdf_tape) (required)target:stringThe attribute name in the target entity group (required)