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.
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 address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: GBB-400841 Department: Support netCDF Priority: Normal Status: Closed