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

Re: Bug inside CHARACTER array example: (fwd)



------- Forwarded Message

Date:    Wed, 18 Sep 2002 13:17:45 -0600
From:    Russ Rew <address@hidden>
To:      address@hidden
Subject: Re: Bug inside CHARACTER array example: 

>To: address@hidden
>From: Guntram =?iso-8859-1?Q?Sei=DF?= <address@hidden>
>Subject: Bug inside CHARACTER array example
>Organization: UCAR/Unidata
>Keywords: 200209180822.g8I8Mt105521

Hi Guntram,

> since a few weeks we decided to use NetCDF as one of our preferred direct 
> access formats.
> Now I tried the first time, to write an array of CHARACTER-Strings into a 
> NetCDF file.
> I used the example code inside your FORTRAN77 documentation under
> 7.15 Reading and writing CHARACTER String values.
> 
> I found the following code segment being wrong, it doesent work correctly:
> 
>    ! write txval into tx netCDF variable in record 3
>      TSTART(1) = 0      ! start at beginning of variable
> 
> When I changed it to :
>      TSTART(1) = 1      ! start at beginning of variable (changed to one)
> 
> it worked!
> 
> So please change the example on your documentation page
> http://www.unidata.ucar.edu/packages/netcdf/guidef/guidef-12.html#HEADING12-1332
> if possible.

Thanks very much for pointing out this bug in our documentation.  It's
fixed now.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu

------- End of Forwarded Message