[Matrix-SIG] HELP! How to access a large array

Konrad Hinsen hinsen@cnrs-orleans.fr
Mon, 20 Sep 1999 21:17:44 +0200


> Is there any way that I can read some subsets of one array stored in netcdf  
> file without loading the whole array? Does f.variables['var'][x, y, ...] avoid
> loading the whole 'var' array? 

Yes. Since many netCDF files store arrays that are larger than
physical memory, this is in fact often the only way to deal with data
in netCDF files. Any access to a subarray will read precisely that
subarray. However, the time required for such an operation also
depends on the layout of the data in the file.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------