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

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.

Bill, I know you've got a bias against this sort of this, BUT...

a) I was looking for a way to deal with sparse arrays in a general manner
b) anything associated with writing a file will be dominated by I/O times;
   this is just a way to give the CPU something to do while it's waiting :-)
c) as I said, I came up with this off the top of my head in about 10 minutes

> > 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.

Thanks, if Steve's *Accessor/*Adapter stuff doesn't work I'll check these
out.


 
 
  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