[Date Prev][Date Next][Index][Thread] [SGT Mail Archive] [SGT Main Page]

Re: Unable to generate Cartesian plot




Hi Ruhaak
I am also new to sgt but based on what I have done so far, I can tell you that all you need to do is change the range values. Something like this:
double[] axis1 =new double[nlon];
        double[] axis2 =new double[nlat];
        for(int i=0;i<axis1.length;i++) axis1[i] = xmin+i*dx;
        for(int i=0;i<axis2.length;i++)axis2[i] = ymin+i*dy;
       
        td = new SimpleGrid(values, axis1, axis2,fieldName);
where xmin, ymin, dx and dy can be anything. The don't have to be lat lon as long as they define a gridded field.
hope this helps..
nihat
 


Rühaak, Wolfram <Wolfram.Ruehaak@gga-hannover.de>
Sent by: owner-sgt@noaa.gov

02/08/2007 11:56 AM

Please respond to
Rühaak, Wolfram <Wolfram.Ruehaak@gga-hannover.de>

To
sgt@noaa.gov
cc
Subject
Unable to generate Cartesian plot





*************************************************
Message from the sgt mail list.
*************************************************

Dear all,

I want to plot 2D gridded data. For this purpose I use a modified version of http://www.epic.noaa.gov/java/sgt/src/JGridDemo.java.

What code modifications are necessary to get a Cartesian plot (instead of the geographic coordinate system which is originally applied).
I have found the Cartesian interface in the API. However, what code is necessary to apply this Cartesian interface?

Thank you very much, cheers
Wolfram Ruehaak


*************************************************
To remove yourself from this mailing list,
send mail to <epic-majordomo@noaa.gov> with
"unsubscribe sgt" in the message body.



Privacy Notice, External Links Disclaimer.