Re: [netcdf-java] GridCoordSys introduces rounding error when converting from km to m and integer axis-type

Heiko Klein wrote:
The class ucar.nc2.dt.grid.GridCoordSys converts internally all projection-axes to km. But it seems like it does not convert the datatype to a float or double datatype and introduces therefore large rounding errors.

I have given my axes as m (in integer):
-3716017, -3712004, -3707991

The isRegular function of Coordinate1D sees (with a debugger attched) the values:
-3716, -3712, -3707
and as such fails with my approx. 4km grid-distance.



Best regards,

Heiko


this will be fixed in the next release of 4.1, thanks for reporting!