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.

Re: [idvdevelopers] [idvusers] follow up to previous mail: Netcdf grids and Contour2DdDisplayable

Stuart-

I moved this over to idvdevelopers because these programming
questions are best suited for that list instead of idvusers.
We don't want to scare any novices off. ;-)

Are you printing out what gg is?  Is it possible that you are
not using the right GeoGrid (e.g. the one for surface_temperature)?
How are you subsetting the grid?  The name is only for creating the
FlatField.  You need to have the right geogrid to get the correct
data.

Don

Stuart Maclean wrote:
To update my previous mail about using a Contour2DDisplayable object and a GeoGrid from a nc file, I have discovered something odd. I printed out the domain and range values of the FlatField i am using for the Displayable. the domain has X and Y values as I expected, but the range values are off.

Given that I do this:

        GeoGridAdapter gga = new GeoGridAdapter( ggds, gg,
                                                 "surface_temperature" );
        FieldImpl fi = gga.getData();

I expected my flatfield to have values from the surface_temperature variable. However I am seeing values from some other variable, and from within the middle of the grid of data too.

It's as though the netcdf offset logic is awry.

Or maybe I am using the classes wrong.

Anyway, the Contour2Ddisplayable is handling the map projection from X, Y in the grid to lat, lon, so it is not that that is the issue, as I previously thought.

Stuart

_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/

--
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************



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