Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

DataImpl Arithmetic


Greetings!

What are the rules regarding arithmetic with DataImpls? Do they need to be of the same type?
I.e., can I only do FlatField ff = (FlatField) old_ff.multiply(other_ff)

I'm having some trouble creating (essentially scaling) a set by a constant.

I'm trying the following:

Linear1DSet alt_set = new Linear1DSet(altitude,
                                         alt_map.getRange()[0],
                                         alt_map.getRange()[1],
                                         100);

Linear1DSet refr_set = (Linear1DSet)alt_set.multiply( new Real((4.0/3.0)*CURVE) );

And I get a runtime error at the above line that reads:

Exception in thread "main" visad.UnimplementedException: SetType.binary

Thanks for your help with this trivial problem!

-kevin.


--
+------------------------------------------------------------+
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"
+------------------------------------------------------------+

==============================================================================
To unsubscribe visad, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


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