Skip to content

Conversation

@ernestum
Copy link

@ernestum ernestum commented Mar 8, 2018

By default, the NetCDFReporter does zero oder hold for reported ports with a lower data rate. If we set the reportOnlyNewdata flag of the reporter, its fills the missing values with some funny, arbitrarily high values (for float and double that is 9.9692099683868690e+36 as defined in netcdf.h). This totally destroys any visualisation.
The newer NetCDF4 format supports defining a different placeholder value (e.g. NaN would make more sense and is something that most visualisation software supports).

This patch adds a flag to the NetCDFReporter to switch to the newer netCDF4 format. Then missing values are automatically padded with NaN. netCDF4 does not allow shared access to the .nc files any more (this is why we still support the old format).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant