Closed AndrewWittenberg closed 6 years ago
The coordinates are perhaps a bit over-specified; having coordinate bounds, and also the attribute point_spacing = "even". This is really a valid description, and could in fact describe a case where the coordinates are evenly spaced but not centered in the grid cells.
Ferret has a logic error, where the longitude axis gets marked as evenly spaced, but then in the process of analyzing its properties, including the coordinates and bounds, the coordinates are detected as being irregularly spaced, and neither the coordinates nor the the start-and-delta which are all that's needed to describe an axis with even spacing and grid points get stored. This occurred in the change to using dynamic storage rather than fixed block of storage for coordinate data.
I think the right thing to do here is to handle such an axis as irregular, even though that may not have been the intent of the writers of the file. Then we won't lose possibly-important information stored in the bounds. This is what the earlier Ferret versions did.
This is fixed, in cd_get_1_axis.F, and a new benchmark test included.
Starting in v7.3 (dated 12/4/17), some NetCDF datasets are no longer read in properly. E.g. a satellite altimetry dataset, downloaded from JPL:
This worked just fine in v7.21 (dated 8/31/17):
But from v7.3 (dated 12/4/17) onward, we now get weirdness with the grid, and can no longer make the plot at all. E.g. in the latest v7.41 (dated 8/27/18):
What's going on? We actually get different errors in v7.3 and other versions -- e.g. axes do have numeric limits, but they're wrong.