blockNcDataReader

Extends from Modelica.Blocks.Interfaces.MO.

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
String[:]varNameTime
String[:]varNameConstant
StringfileName
Real[size(varNameTime, 1)]varTimeUpperLimit
Real[size(varNameTime, 1)]varTimeLowerLimit