[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shape files
- Subject: Re: Shape files
- Date: Fri, 17 Feb 2006 13:34:59 -0700 (MST)
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/
===============================================================================