tuple??

Hello,

How I can make more than 1 element?

/////////////////////////////////////////////////////////

RealType temperature, speed, time;

      Unit degC = visad.data.netcdf.units.Parser.parse("degC");

      temperature = new RealType("temperature", degC, null);

      Unit kts = visad.data.netcdf.units.Parser.parse("kts");

      speed = new RealType("speed", kts, null);

      Unit sec = visad.data.netcdf.units.Parser.parse("seconds");

      time = new RealType("time", sec, null);

      RealTupleType mydata = new RealTupleType(time, speed, temperature);

      double obsTemp = 32.;

      double obsSpeed = 15.;

      double obsTime = 4096.;

      double[] values = {obsTime, obsSpeed, obsTemp};

      RealTuple obs = new RealTuple(mydata, values);

////////////////////////////////////////////////////////////////////////////////////

à(4096.0, 15.0, 32.0)

 

What I need is:

{(0.0,0.0,0.0),

  (1.0,1.0,1.0),

  (2.0,2.0,2.0),

  (3.0,3.0,3.0),

  (3.0,4.0,3.0)}

How I can do that?

Thanks .

 




 



Join the world?s largest e-mail service with MSN Hotmail. Click Here