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