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.
>From: "Hui Du" <address@hidden> >Organization: ? >Keywords: 200405051753.i45Hr4tK017194 Hui Du, Just in case you did not get the email sent to the netcdfgroup that addresses your problem, here it is again: From: Juergen Holfort <address@hidden> To: address@hidden Organization: Norwegian Polar Institute Date: Wed, 05 May 2004 20:25:13 +0200 Ragarding Hui Du#s problem I suppose your probelm lies in the definition of data in the subroutine rdncdf2d. The variable data is declared real, which is fine for your second data file with the variable type float, but not for your first file, where the variable is short (or integer). In Fortran I also would use the functions NF_GET_VARA_real of NF_get_vara_int2, etc. instead of ncvgt. Hope this helps, Juergen Holfort -- Dr. Jürgen Holfort Norsk Polarinstitutt, Polarmiljøsenteret, 9296 Tromsø -- **************************************************************************** < Unidata User Support UCAR Unidata Program < (303)497-8643 P.O. Box 3000 < address@hidden Boulder, CO 80307 < ---------------------------------------------------------------------------- < Unidata WWW Service http://my.unidata.ucar.edu/content/support < ---------------------------------------------------------------------------- < NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.