Daniele,
I checked the raw longitude values in the original file. As you said, they are not monotonic and go from 335.05 to 44.04988.
So the first longitude value is greater than the last one and all values greater than 180 should be subtracted by 180 to map everything into (-180,180). As far as I can see gt-netcdf can't process this, so I think I have to do this with using the NetCDF Java library. Or is there a way with geotools by using some kind of transformation when reading the coverages?
Kind regards,
Christiane
--
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.
Ben Caradoc-Davies <b...@transient.nz>schrieb:
On 17/11/16 02:27, Daniele Romagnoli wrote:
> As you can see the coordinates go from 335.05 to 44.04988.
> The CoordSys tab of ToolsUI also reports Longitude axis type as a not
> regular axis.
> So I think the problem is in how the coordinates are reported back by
> NetCDF-Java.
I see the same raw values with "ncdump -v longitude" so this behaviour
is not specific to NetCDF-Java. The longitude values in this file are
not monotonic and appear to have been mapped into (0, 360).
> As far as I remember, in the past we dealt with coordinates in the range
> [180, 540] but they were increasing (monotone).
> These ones aren't monotone, instead.
> Wondering if the problem is due to that. I will double check.
Christiane indicated off-list that this sample file has been extracted
from an even larger file. The longitude values might have been modified
on extraction.
Christiane, please check the raw longitude values in your original
full-size file with "ncdump -v longitude".
Panoply might be able to handle non-monotonic longitudes, but I do not
think gt-netcdf can.
Kind regards,
--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users