Re: Saving VisAD Data objects

> One other thing.  In your recurse method I'd try to avoid:
>   d[obj.getColumnIndex()][obj.getRowIndex()] = real.getValue();
> which is making three method calls to set a value in an array.
> If you map FlatFields to FITS images and tables, you can extract
> the values from the FlatField as arrays and then shuffle them
> into the arrays for the images or table without any method calls.

For index mapping problems like this, you may find the MultiArrayProxy,
IntMap (ClipMap, SliceMap, TransposeMap, DecimateMap, FlattenMap) framework
of ucar.multiarry to be of use. This is part of the netcdf distribution.


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