[geotk] Trouble reading GMT grid file

Brian Schlining bschlining at gmail.com
Thu Nov 3 18:40:50 EDT 2011


>  Maybe someone else deployed a NetCDF 4.2.26 on an other repository from a slightly different code.
That someone would be me. I was helping John get some maven issues sorted out; then I put it in a repo at http://code.google.com/p/mbari-maven-repository/ when it was first released.
> 

> 
> > I see it in v4.2 and v4.3(dev) although 'getName' is now deprecated, the docs say use 'getFullName' or 'getShortName' instead.
> Yes, I noticed that. As a safety, I replaced every calls to 'getName()' by 
> 'getShortName()'. This change should be effective tomorrow after Hudson has done 
> its job, if it is okay for you to try the 3.x-SNAPSHOT version...

No problem. I'll try out the SNAPSHOT version tomorrow and see where I get to.
> 
> As a side note, since you are trying NetCDF, I'm actively working on this part 
> lately :-). I just commited a few days ago this class:
> 
> http://www.geotoolkit.org/apidocs/org/geotoolkit/image/io/metadata/NetcdfISO.html
> 
> You can try code like below for instance:
> 
> NetcdfFile file = NetcdfFile.open("myNetCDF.nc");
> NetcdfISO ncISO = new NetcdfISO(file, null);
> Metadata metadata = ncISO.createMetadata();
> file.close();
> System.out.println(metadata);
> 
> 
> This will be integrated with Image I/O metadata later.

Cool, I'm assuming that's in the snapshot build? I'll try it out tomorrow too.

p.s. Assuming I get it read in, my next question is how to I create a 1200x1200 image of a map from the GridCoverage with the Geotk libraries? ) I don't need to display it, I'm just going to write it to disk.

-- 
Brian Schlining 




More information about the Geotoolkit mailing list