[Date Prev][Date Next][Index][Thread]
[SGT Mail Archive]
[SGT Main Page]
JVectorDemo
*************************************************
Message from the sgt mail list.
*************************************************
Dear Dr.Denbo,
I apologize because I'm relatively new to java and SGT.
I would like to fill the JVectorDemo with my own data.
JVectorDemo uses the class TestData in the following way:
SGTGrid uComp;
SGTGrid vComp;
SGTVector vector;
TestData td;
JPlotLayout rpl;
/*
* Create a test grid with sinasoidal-ramp data.
*/
Range2D xr = new Range2D(190.0f, 250.0f, 3.0f);
Range2D yr = new Range2D(0.0f, 45.0f, 3.0f);
td = new TestData(TestData.XY_GRID, xr, yr,
TestData.SINE_RAMP, 20.0f, 10.f, 5.0f);
uComp = (SGTGrid)td.getSGTData();
td = new TestData(TestData.XY_GRID, xr, yr,
TestData.SINE_RAMP, 20.0f, 0.f, 3.0f);
vComp = (SGTGrid)td.getSGTData();
vector = new SGTVector(uComp, vComp);
How can I fill uComp and vComp with two vectors of fixed data
respectively to obtain a "feather" plot. I have also examined
and modified the class TestData but for now without success.
How can you do this in the easiest way? I will appreciate if
you can give me a suggestion.
Best regards
Boris Petelin
*************************************************
To remove yourself from this mailing list,
send mail to <Majordomo@epic.noaa.gov> with
"unsubscribe sgt" in the message body.