Re: [idvdevelopers] animationValue as Real for sampleToReal (gridUtil)

  • To: Valentijn Venus <venus@xxxxxx>
  • Subject: Re: [idvdevelopers] animationValue as Real for sampleToReal (gridUtil)
  • From: Don Murray <dmurray@xxxxxxxxxxxxxxxx>
  • Date: Tue, 13 Jan 2009 09:01:12 -0700
Hi Tyn-

Valentijn Venus wrote:
I'm looking for a way to get a Real animationValue at jython-level
required by this GridUtil method
(https://www.unidata.ucar.edu/software/idv/docs/javadoc/ucar/unidata/dat
a/grid/GridUtil.html#DEFAULT_SAMPLING_MODE):

The Real is the DateTime or index of the outer domain.  So, if you
had a field of Time->((x,y)->value), you'd pass in the Time value
as a DateTime.  However, if you had a field that was
index->((x,y)->value), then you'd need to use the index.  In each
case, the MathType of the Real has to be the same as the MathType
of the outer domain.  It will also only work for grids/images that
have a single parameter in the Range, i.e., it won't work for
a grid of wind components which would be (u,v).

Does that help?

Don

sampleToReal

public static Real sampleToReal(FieldImpl grid,
                                EarthLocation el,
                                Real animationValue)
                         throws VisADException,
                                RemoteException
This samples the given grid in both time and space and trys to return a
Real value
Parameters:
grid - The grid
el - Location
animationValue - Time
Returns:
Real at the given location and time
Throws:
RemoteException - On badness
VisADException - On badness

Any ideas which method i can best use?

Cheers, Tyn International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the 
addressee only. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or action in relation to the content 
of this information is strictly prohibited. If you have received this e-mail by 
mistake, please delete the message and any attachment and inform the sender by 
return e-mail. ITC accepts no liability for any error or omission in the 
message content or for damage of any kind that may arise as a result of e-mail 
transmission.
_______________________________________________
idvdevelopers mailing list
idvdevelopers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/

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



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvdevelopers archives: