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

TypeNameDefaultDescription
Integernout (from MO)1Number of outputs
String[:]varNameTime
String[:]varNameConstant
StringfileName
Real[size(varNameTime, 1)]varTimeUpperLimit
Real[size(varNameTime, 1)]varTimeLowerLimit

Connectors

TypeNameDefaultDescription
RealOutput[nout]y (from MO)Connector of Real output signals