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.
jifengying, > To: address@hidden > From: "jifengying" <address@hidden> > Subject: HOW TO GET A CHARACTER VARIABLE > Organization: ? The above message contained the following: > HOW TO GET A CHARACTER VARIABLE, > whether should i use the order NF90_INQ_VAR_TEXT£¨£© > the result tell me that there is no the variable. > NF_INQ_VAR_??? If you use the Fortran-90 interface, then you can use the routine nf90_inq_varid(ncid, name, varid) to get the netCDF variable-id of the wanted variable. You can use the routine nf90_Inquire_Variable(ncid, varid, name, xtype, ndims, dimids, nAtts) to get more information about the variable -- especially its type. To get the values of the variable, you can use the routine nf90_get_var() For more information on how to use the netCDF package, see the web page http://my.unidata.ucar.edu/content/software/netcdf/index.html Regards, Steve Emmerson <http://www.unidata.ucar.edu>