NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: images and efficieny

Hi Garrett,

The default for FlatFields (used to store images) is to
use 4-byte floats for values. However, the full FlatField
constructor signature includes an argument 'Set[] range_sets'.
If you use a Linear1DSet with no more than 255 values, then
values for the corresponding range RealType will be stored
in bytes.

I don't know if the McIDAS AREA file adapter uses this or not.
I don't think the Plain netCDF adapter uses it. You might be
able to read a files into a FlatField with floats, then copy
it into a FlatField with bytes.

Good luck,
Bill

On Mon, 26 Nov 2001, Campbell, Garrett wrote:

> I need to load 4 to 6 full disk satellite images at 5 km resolution and
> then compare
> patches of the images.  (2500 X 2500 pixels).
> I can load two of these, but then the memory overflows with mx384.  It
> appears that
> loading replaces all the 8 bit pixels with reals or doubles.  Is there a
> way to
> keep these arrays as bytes?
> 
> The comparisons occur on small areas within the images (100X100km or
> 20X20 pixels)
> which are extracted with image.resample(domain..).  That seems to work.
> But I need to step across the full disk image, resampling each piece so
> I can not afford
> to reload the 6 images for each matching step (each cloud).
> 
> Any suggestions would be appreciated.
> 
> G. Garrett Campbell Ph. D.
> Cooperative Institute for Research in the Atmosphere
> Colorado State University
> Ft. Collins, CO, USA
> 970 491 8497
> campbell@xxxxxxxxxxxxxxxxxx 
> 


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