NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Dave, > Is there a method to find the filename of an open netcdf file from the > ncid. The method ncinquire does not provide it. No, there's no way to determine the name with which a file was opened from the netCDF C, Fortran, or C++ API's. If there was a way to get the file name, it would be wrong if the file was renamed by another process after it was opened. Maybe that's the reason no such function exists. Similarly, I think it's also not possible to determine the name of the file associated with a file descriptor returned by the Unix open() call (please correct me if I'm wrong about this). --Russ
netcdfgroup
archives: