argopy.stores.filesystems.memorystore#
- class memorystore(cache: bool = False, cachedir: str = '', **kwargs)[source]#
Argo in-memory file system (global)
Note that this inherits from
argopy.stores.filestore
, not the:class:argopy.stores.argo_store_proto.Relies on
fsspec.implementations.memory.MemoryFileSystem
- __init__(cache: bool = False, cachedir: str = '', **kwargs)#
Create a file storage system for Argo data
Methods
__init__
([cache, cachedir])Create a file storage system for Argo data
cachepath
(uri[, errors])Return path to cached file for a given URI
clear_cache
()Remove cache files and entry from uri open with this store instance
exists
(path, *args)Check if path can be open or not
expand_path
(path)glob
(path, **kwargs)open
(path, *args, **kwargs)open_dataset
(path, *args, **kwargs)Return a xarray.dataset from a path.
open_json
(url, **kwargs)Return a json from a path, or verbose errors
open_mfdataset
(urls[, concat_dim, ...])Open multiple urls as a single xarray dataset.
read_csv
(path, **kwargs)Return a pandas.dataframe from a path that is a csv resource
register
(uri)Keep track of files open with this instance
store_path
(uri)Attributes
cached_files
protocol
File system name, one in fsspec.registry.known_implementations