[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #GBB-400841]: NCVGT: : Start+count exceeds dimension bound
- To: thin_runner@xxxxxxxxx
- Subject: [netCDF #GBB-400841]: NCVGT: : Start+count exceeds dimension bound
- From: "Unidata netCDF Support" <support-netcdf@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 15:13:39 -0700
- Delivered-to: support-netcdf@unidata.ucar.edu by laraine.unidata.ucar.edu (Postfix) with ESMTP id 76D12CB1E2; Fri, 29 Feb 2008 15:13:39 -0700 (MST) id 4A8FAD5116; Fri, 29 Feb 2008 15:13:39 -0700 (MST)
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