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.
Claudia,
>Date: Mon, 3 Feb 2003 16:09:22 -0500 (EST)
>From: Claudia Schmid <address@hidden>
>Organization: NOAA/AOML
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20030203:Not a netCDF data type or _FillValue type mismatch
The above message contained the following:
> the variable is declared as character*14 and the netcdf type is NF_CHAR in
> nf_def_var
In that case, change
iret = nf_put_att_text(ncid, CALIBRATION_DATE_id,
*'_FillValue', 14, '00000000000000')
to
iret = nf_put_att_text(ncid, CALIBRATION_DATE_id,
*'_FillValue', 1, '0')
The fill-value for a netCDF variable of type NF_CHAR is a single character.
The netCDF data model doesn't support aggregate fill-values.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>