NCAR / pynio

PyNIO is a multi-format data I/O package with a NetCDF-style interface
http://www.pyngl.ucar.edu/Nio.shtml
Apache License 2.0
112 stars 37 forks source link

No way to get location of opened file? #48

Open jhollowed opened 3 years ago

jhollowed commented 3 years ago

If I open a file as

f = Nio.open_file('xxx.nc', 'r')

there seems to be no way to recover the file location 'xxx.nc' from the object f (unless it happens to be an attribute of xxx.nc). Is this intended? It would be very convenient for scopes into which f is passed to be able to recover this information.