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

[netCDF #BUB-278306]: nc_eedge error



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