[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Shape files
- Subject: RE: Shape files
- Date: Thu, 23 Feb 2006 13:04:05 -0700 (MST)
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:address@hidden]
> 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
> address@hidden WWW: http://www.unidata.ucar.edu/
> ============================================================================
> ===
>
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================