On 03/11/16 11:18, c...@habmalnefrage.de wrote:
> Hi list,
> I've worked through the NetCDFReaderTest and lots of other files lately but 
> I'm
> still struggling with the NetCDF reader:
> 1.) I've managed to read the coverages from the files and the corresponding
> points as simple features using the RasterAsPointCollectionProcess. But I
> couldn't figure out how to retrieve the attributes of a coverage (e.g.
> long_name, units, _FillValue etc.)? Using the test files (e.g. "O3-NO2.nc",
> "wind.nc") I tried feature.getProperties(), feature.getAttributes() - both
> provide only geometry and value - and coverage.getProperties() which is 
> empty...
> Is there a way?

The coverage API is an abstraction over the raw NetCDF layer. I do not 
know if these internal implementation details are accessible. Perhaps 
Daniele can confirm?

> 2.) I have files containing longitude values from 335° to 404° (with
> CENTRAL_MERIDIAN at 360°) instead of -25° to 44° (in WGS84). There is no
> coordinate system information in the files. The NetCDF reader seams to convert
> all values greater than 360° but leaves the others unchanged. Hence, the
> resulting coverage has values from 44° to 335° which certainly isn't correct.
> Maybe I have to use the NetCDFProjection class but I couldn't find an example
> how to use it. What's the way to get the proper values?

I do not think you should have to use a NetCDFProjection. What version 
of GeoTools are you using? There were some recent changes in the 
NetCDF-Java library affecting longitude handling but I think only in 
GRIB2 files. Excessive or inconsistent tampering with longitudes might 
be a bug in GeoTools. Do you have a sample file that you can share?

> 3.) How do I know all the values which I can or I have to use for
> GeneralParameterValue (despite the ones used in the test units)?
> Thank you in advance.
> Christiane

Good question. Daniele?

Kind regards,

-- 
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to