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



Steve,

Now that I see the ncdump output, the row-major CDL declaration

   float ht(record, z, y, x) ;

would correspond to a column-major Fortran declaration with the dimensions
reversed:

   ALLOCATE ( ht ( x , y , z3+1 ) )

and consistent start and count vectors:

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

We have a worked out example here of the output from ncdump of an example
file, and Fortran 90 programs for writing and reading the 4D variable:

http://www.unidata.ucar.edu/software/netcdf/examples/programs/pres_temp_4D.cdl
http://www.unidata.ucar.edu/software/netcdf/examples/programs/pres_temp_4D_wr.f90
http://www.unidata.ucar.edu/software/netcdf/examples/programs/pres_temp_4D_rd.f90

If it's not clear that the row-major and column-major dimension orders are just
reversed, maybe the example above will help.

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