On Thu, Jun 30, 2011 at 1:49 AM, Chris Barker <Chris.Barker@noaa.gov> wrote:
On 6/27/11 9:53 AM, Charles R Harris wrote:
> Some discussion of disk storage might also help. I don't see how the
> rules can be enforced if two files are used, one for the mask and
> another for the data, but that may just be something we need to live with.

It seems it wouldn't be too big  deal to extend the *.npy format to
include the mask.

Could one memmap both the data array and the mask?

This I haven't thought about too much yet, but I don't see why not. This does provide a back door into the mask which violates the abstractions, so I would want it to be an extremely narrow special case.

-Mark
 

Netcdf (and assume hdf) have ways to support masks as well.

-Chris




--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion