NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi, I installed netcdf on a debian box using the the usual package means. I'm trying to assign some global string metadata in a file that i create, successfully, with nc_create(). My statement to assign the metadata looks like this: int status = nc_put_att_string( ncid, NC_GLOBAL, key, strlen( value ), &value ); where key and value both have declaration const char*. This compiles without error or warning, and i believe the values i'm passing in are innocuous. Nevertheless, at runtime, i get a return status of -45, which nc_strerror() reports as NetCDF: Not a valid data type or _FillValue type mismatch. Am i missing some piece of setup that i need to do (besides getting the ncid for the file)? This is my first call on the library after creating the file, so presumably my ncid for the file couldn't have gotten too messed up yet. TIA for any clues, or pointers to the manual, or any other advice. dan
netcdfgroup
archives: