Hi Ann, Sorry, I probably should have commented my code a little to explain what's going on. There are two "shape" arrays we're concerned with: shape and readShape. shape is the original shape of the variable (e.g. Temperature). readShape is the size of the chunks that we're reading per loop iteration. In my example, we're assuming that the variable is 4D and that its dimensions are ordered time-z-y-x. We're going to read one time slice at a time (again, this is common, but not required). So, if we imagine that the original shape is , we're going to use a readShape of , which is a chunk equal to one time slice. There are 100 time slices total. readShape will remain the same each iteration, but origin â the location within the original shape from which we'll be reading â must change. We want something like: origin= origin= ... origin= We accomplish that by setting origin = timeIndex, and running timeIndex from 0 to shape-1 (shape is the length of the time dimension). Hopefully that clears things up for you. Let me know if you have other questions. Cheers, Christian Ticket Details =================== Ticket ID: QQO-385265 Department: Support netCDF Java Priority: Normal Status: Closed
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.