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.
Shigan Jiang, > To: address@hidden > From: Shigan Jiang <address@hidden> > Subject: NCAGTC: : In Fortran, string too short > Organization: SUNY Albany > Keywords: netCDF Fortran The above message contained the following: > When I use the gennet.f to read a netcdf file, the computer gives > the following error message, > > NCAGTC: : In Fortran, string too short > > The data file is from ARM. How can I solve this problem. > Thanks for your answer! The above error means that the following function was called: NCAGTC(NCID,VARID,ATTNAME,BUF,ATTLEN,RCODE) and that the value of ATTLEN was less than the length of the character attribute ATTNAME. You'll have to look through your code to discover where this occurs. You can use the ncdump(1) utility to discover the length of the attribute. Regards, Steve Emmerson