Hi Daniele

There is no documentation at this stage.

There is the steps assuming that your image have only one band. If you have 
more 
bands, just repeat the steps for each of them.

* Create a Category using the constructor expecting the following informations:
   - Minimum packed value
   - Maximum packed value
   - scale
   - offset

* If there is a "nodata" value, create a Category using the constructor
   expecting only the following information (without scale/offset):
   - A single packed value.

* Create a SampleDimension with the list of above categories and
   SI.CELSIUS unit.

* Create a GridCoverage2D with the above SampleDimension.

The GridCoverage that you get is ViewType.PACKED. Invoking 
GridCoverage2D.evaluate(position) will give you the packed values.

In order to get geophysics values, invokes the following:

     coverage = GridCoverage2D.view(ViewType.GEOPHYSICS);

Invoking evaluate(position) on the coverage returned by the above will give you 
the temperature in °C, with "nodata" values replaced by NaN.

        Martin

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to