blockNcDataReader
Extends from Modelica.Blocks.Interfaces.MO (Multiple Output continuous control block).
Information
The block is used to read information from .nc files.
It calls the external C functions ncEasyGet1D and ncEasyGetAttributeDouble.
Common errors
When the following error message appears:
ERROR | -43 | netcdf | NetCDF: Attribute not found
It may be due to the called function cannot find in the readed .nc
file some of the variables defined in varNameTime or varNameConstant.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nout (from MO) | 1 | Number of outputs |
| String[:] | varNameTime | ||
| String[:] | varNameConstant | ||
| String | fileName | ||
| Real[size(varNameTime, 1)] | varTimeUpperLimit | ||
| Real[size(varNameTime, 1)] | varTimeLowerLimit |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput[nout] | y (from MO) | Connector of Real output signals |