[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #GGI-373709]: Question about using EnhanceScaleMissing

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDFJava #GGI-373709]: Question about using EnhanceScaleMissing
  • Date: Tue, 21 Aug 2007 17:30:48 -0600

You are trying to read 2928 * 277 * 349 = 283 million elements at once. When 
you switched to NetcdfDataset, these are being promoted to floats, so 4 bytes 
per element. 

Better is to loop over the outer dimension if possible and process the dataset 
in pieces.

See "Reading data from a Variable" from the tutorial:

http://www.unidata.ucar.edu/software/netcdf-java/tutorial/NetcdfFile.html

Ticket Details
===================
Ticket ID: GGI-373709
Department: Support netCDF Java
Priority: Urgent
Status: Closed