barronh / pseudonetcdf

PseudoNetCDF like NetCDF except for many scientific format backends
GNU Lesser General Public License v3.0
76 stars 35 forks source link

Enhancement/ioapitflag #119

Closed barronh closed 2 years ago

barronh commented 2 years ago

Adding better time capability and audit functions.

Time-independent Functionality

The ioapi getTimes function failed when SDATE was set to -635, which is used sometimes for time independent data. This had cascading effects on all functions that used getTimes as part of the meta-data refresh.

This bug-fix essentially updates the file to have a 1970001 SDATE and warns the user. This is far preferable to the previous work arounds.

Adding Audit

It is easy to get IOAPI metadata wrong. When you do, it will still work in netcdf mode, but will fail when being read by IOAPI. This update adds an audit system. The audit system will tell you what is wrong, but will not update it. This is useful for checking products during development to ensure that they will be CMAQ-ready when they are complete.