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: Mark Mihelic <address@hidden> >Subject: NcFile from handle >Organization: Litton/PRC >Keywords: 200001212240.PAA23851 netCDF C C++ Hi Mark, > A question about interchanging the information gathered using the C > interface, with the C++ interface. > > Is there a method to get the NcFile, when all that one has is the handle > (int) from the C interface? No, to get an NcFile you need to use the NcFile constructor, which currently requires a file name. What you want could probably be added by writing another constructor; the C handle is stored as a protected member NcFile::the_id. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu