[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 970107: how to change data in a variable
- Subject: Re: 970107: how to change data in a variable
- Date: Tue, 07 Jan 1997 09:05:10 -0700
>To: address@hidden
>From: "R. Bauer" <address@hidden>
>Subject: Re: 970107: how to change data in a variable
>Organization: Forschungszentrum Juelich Gmbh (KFA)
>Keywords: 199701071348.GAA20327
> > Without knowing whether you are using the C, Fortran, C++, perl, or new
> > netcdf-3 C interface, I can't tell you exactly what functions to call.
> >
>
> I am using idl 4.01.
The IDL interface to netCDF is supported by RSI. You should be able to
open the file for writing, change the values of a variable, and rewrite
it with the appropriate IDL routines:
NCDF_OPEN
NCDF_VARGET
NCDF_VARPUT
NCDF_CLOSE
You must use the keyword "WRITE" with NCDF_OPEN to open a file for
modification, since the default in IDL is to open netCDF files as
read-only. You only need NCDF_VARGET if the new values depend on the
old values.
--Russ
_____________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu