MCPcopy Index your code
hub / github.com/pydata/xarray / _open_remote_file

Function _open_remote_file

xarray/backends/common.py:218–227  ·  view source on GitHub ↗
(file, mode, storage_options=None, open_kwargs=None)

Source from the content-addressed store, hash-verified

216
217
218def _open_remote_file(file, mode, storage_options=None, open_kwargs=None):
219 import fsspec
220
221 fs, _, paths = fsspec.get_fs_token_paths(
222 file, mode=mode, storage_options=storage_options
223 )
224
225 open_kwargs = open_kwargs or {}
226
227 return fs.open(paths[0], mode=mode, **open_kwargs)
228
229
230def _encode_variable_name(name):

Callers 2

openMethod · 0.90

Calls 1

openMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…