NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
NOTE: The decoders
mailing list is no longer active. The list archives are made available for historical reasons.
there's code located at the netcdf-java tree, src/ucar/nc2/iosp/grib especially file GribVertCoord.java robb... On Tue, 21 Feb 2006, Nelson Brandon K A1C AFWA/SCSA wrote: > Robb, > > Thanks for this tidbit. I am still having a lot of trouble figuring > it all out. Have you discovered anything else? > > V/r > > A1C Nelson, Brandon K > > Communications-Computer Systems Programmer > > HQ AFWA/SCSA (402) 294-1404 > > -----Original Message----- > From: Robb Kambic [mailto:rkambic@xxxxxxxxxxxxxxxxxxxxxxxx] > Sent: Friday, February 17, 2006 2:35 PM > To: Nelson Brandon K A1C AFWA/SCSA > Cc: decoders > Subject: Re: Shape files > > Nelson, > > actually i trying to understand it myself. i'm looking at > netcdf java code at src/ucar/ma2 dir > > Array data = Array.factory(datatype.getPrimitiveClassType(), > Range.getShape( section)); > IndexIterator ii = data.getIndexIterator(); > Range range = (Range) section.get(0); > > for (int r=range.first(); r<=range.last(); r+= range.stride()) > ii.setLongNext( values[r] ); > > the range is the shape, the values arrays is the initial dataset, and the > data Array is the resulting polygon. > > datatype.getPrimitiveClassType() resolves to LONG in this case. it might > be easier if you wrote your own code to do the above steps. > > robb... > > > > > > On Fri, 17 Feb 2006, Nelson Brandon K A1C AFWA/SCSA wrote: > > > Robb? > > > > > > > > Any news on how to pull out shape files from GRIB files? > > > > > > > > V/r > > > > A1C Nelson, Brandon K > > > > Communications-Computer Systems Programmer > > > > HQ AFWA/SCSA (402) 294-1404 > > > > ============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/ ==============================================================================
decoders
archives: