xray.Dataset.load

Dataset.load()

Manually trigger loading of this dataset’s data from disk or a remote source into memory and return this dataset.

Normally, it should not be necessary to call this method in user code, because all xray functions should either work on deferred data or load data automatically. However, this method can be necessary when working with many file objects on disk.