[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20030609:FieldImpl and RealTuple questions



To: address@hidden
From: "Daniel Bramer" <address@hidden>
Subject: FieldImpl and RealTuple questions
Organization: UIUC
Keywords: 200306091525.h59FPCLd011806 Tuple range

Dan-

Sorry for the delay in responding to this.  We've been trying
to get the release out.

I am working with getting my LineProbe to read data. I have done some digging to find a method called GridUtil.getProfileAtLatLonPoint(FieldImpl, LatLonPoint) used in ProfileControl.java that returns a FieldImpl of the Line, but I have been stuck trying to get this field converted into a Tuple (or Tuple of Tuples) to pass to my classes. Is this easy? recommended? Is there a class that does this that I can use as an example?

From that method you should get something that is either:

(x,y,z) -> (value)

or

(Time -> ((x,y,z) -> (value)))  (for a time sequence)

What format do you want to pass to your applet in the end (z->value)?

Also, I am also noticing that I am not seeing pressure/altitude data when I do a println of FieldImpl.toString() on the profile data. I can see the range and dimension length, but that's it. Again, is there a class/method that does this well?

FieldImpl.toString() will print out the range values.  There's not
a real good method to print out the domain values, but you could get
the domain set with GridUtil.getSpatialDomain(FieldImpl).

I'm going to be out the rest of the day, but let me know in
more detail what you want to pass in and I'll get back to you
on Monday.

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