Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Intersection of FlatFields


Thanks, Bill. What if I simply wanted to get the maximum range value (domain->range) of f1? (not even worried about f2 at this point) Is there a VisAD method for that, or would I just get the range values (getFloats) and loop through them to find the max range value?

Thanks again.
-kevin.


Bill Hibbard wrote:


I meant the max() and min() methods of DataImpl. Given two
compatible Fields f1 and f2, you can compute a Field whose
values are their max's or min's with f1.max(f2) or f1.min(f2).
But as I said in my previous message, this can't quite get
you what you need. You will need to use your original idea
of simply looping through the values of f1 and f2 (if they
don't have the same sampling, you can call something like
'newf1 = f1.resample(f2.getDomainSet());' before you loop
through their samples.



--
+------------------------------------------------------------+
Kevin L. Manross        [KD5MYD]               (405)-366-0557
CIMMS Research Associate               kevin.manross@xxxxxxxx
[NSSL-WRDD/SWATN]           http://www.cimms.ou.edu/~kmanross

"My opinions are my own and not representative of CIMMS, NSSL,
 NOAA or any affiliates"
+------------------------------------------------------------+


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690