This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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 address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================