import visad.*; public class dataex7 { public static void main (String arg[]) { try { 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); System.out.println("obs = "+obs); } catch (Exception e) {System.out.println(e);} } }