Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

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



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
russ@xxxxxxxxxxxxxxxx                     http://www.unidata.ucar.edu



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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690