Re: [idvusers] reading model grids from nc files

Hi Stuart....

If the GeoGrid is "ucar.nc2.dataset.grid.GeoGrid", then there is a
method, getCoordinateSystem() which returns a "GridCoordSys" object.
There are methods in there for getting a lat/lon bounding box, and
others:

<http://www.unidata.ucar.edu/software/netcdf-java/v2.2.22/javadocAll/ucar/nc2/dataset/grid/GridCoordSys.html>

Hope that's what you are looking for....??

tom

On Wed, Apr 2, 2008 at 3:58 PM, Stuart Maclean
<stuart@xxxxxxxxxxxxxxxxxx> wrote:
> I have a GeoGrid object, derived from a nc file of  a model run.
>  using the cf1.0 conventions, the nc file describes say a lambert
>  projection.    The math type of my data may then be
>
>  (Time -> ((XC[unit:km], YC[unit:km]) -> surface_temperature[unit:Pa]))
>
>  I am now trying to convert the x,y grid 'points' back to lat,lon,
>  since I need to produce a bounding box of the data according to some
>  other projection.
>
>  I cannot see how to proceed.  is VisADMath.java helpful at all?
>
>  I could always open the nc file manually, figure out the projection
>  and Y, X variable values and convert all values to reference lat,lon,
>  but I was hoping that this be done already in the IDV classes.
>
>  Any help appreciated
>
>  Stuart
>
>
>  _______________________________________________
>  idvusers mailing list
>  idvusers@xxxxxxxxxxxxxxxx
>  For list information, to unsubscribe, visit: 
> http://www.unidata.ucar.edu/mailing_lists/
>



-- 
Tom Whittaker
University of Wisconsin-Madison
Space Science & Engineering Center (SSEC)
Cooperative Institute for Meteorological Satellite Studies (CIMSS)
1225 W. Dayton Street
Madison, WI 53706 USA
ph: +1 608 262 2759


  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvusers archives: