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.

no data in netcdf file

Yi, Shuhua,

Try with

ierr = nf_put_var1_double(ncid, varid,1.0)

instead of
ierr = nf_put_var_double(ncid, varid,1.0)

Reagrds,

Pilar Ripodas