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.
>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