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.
Hi Ann,
Actually, in my example, I'm only reading the first two time slices:
for (int timeIndex = 0; timeIndex < 2; ++timeIndex) {
I did that for testing and forgot to change it back. To read all of the time
slices, do:
for (int timeIndex = 0; timeIndex < shape[0]; ++timeIndex) {
Whoops!
-Christian
Ticket Details
===================
Ticket ID: QQO-385265
Department: Support netCDF Java
Priority: Normal
Status: Closed