Reading Dataset from memory · Issue #406 · Unidata/netcdf4-python (original) (raw)

Can netcdf4 read Dataset from memory?
Something like this:

from netCDF4 import Dataset f = open('netcdf_file.nc', 'rb') df = Dataset(f)

It would be quite convenient and useful API.
As for now to read netCDF4 Dataset from URL I need explicitly save it as named temporary file.