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 Lee, It looks to me like you might have got your dimensions in the wrong order. Remember that ncdump output has variable dimensions in C order, with the fastest varying dimension last, but Fortran must have the first dimension varying fastest. So in the case of the variable you are trying to read into, the last dimension should be the time dimension (1) and the first dimension should correspond to the west_east dimension (29), so the array wrfCelLat (or xtmp) should be dimensioned (or allocated) (29,24,1) which, if I'm interpreting your symbols correctly (I can't tell for sure) would be allocate ( wrfCelLat(woLonDimLen, woLatDimLen, 1) ) Note also that using nf90_get_var() on a record variable is often suspect unless you're sure of the number of records, The docuentation points out: Take care when using the simplest forms of this interface with record variables when you don't specify how many records are to be read. If you try to read all the values of a record variable into an array but there are more records in the file than you assume, more data will be read than you expect, which may cause a segmentation violation. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: BUB-278306 Department: Support netCDF Priority: Normal Status: Closed