NSF Unidata

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

[netCDF #GBB-400841]: NCVGT: : Start+count exceeds dimension bound

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 Steve,

It's possible you have the dimensions reversed in your start and count arrays.
In Fortran, the first dimension varies most quickly, but in C and the CDL
output by ncdump, the last dimension varies most quickly.  Without seeing
the output from ncdump -h, I can't tell for sure, but if the time dimension is
varying most slowly in the netCDF file (that is all values for a time are
stored
together) and you are trying to get all the values for one time, then you
should use

   start = (/ 1 , 1 , 1 , 1 /)
   count = (/ 1 , z , x , y /)

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: GBB-400841
Department: Support netCDF
Priority: Normal
Status: Closed