argopy.stores.implementations.local.filestore#
- class filestore(cache: bool = False, cachedir: str = '', **kwargs)[source]#
Argo local file system
Relies on
fsspec.implementations.local.LocalFileSystem- __init__(cache: bool = False, cachedir: str = '', **kwargs)#
Create a file storage system for Argo data
- Parameters:
cache (bool (False))
cachedir (str (from OPTIONS))
**kwargs ((optional)) – Other arguments are passed to
fsspec.filesystem()
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)expand_path(path, **kwargs)Turn one or more globs or directories into a list of all matching paths to files or directories.
first(path[, N])Read first N bytes of a path
full_path(path[, protocol])Return fully developed path
glob(path, **kwargs)info(path, *args, **kwargs)ls(path, **kwargs)open(path, *args, **kwargs)open_dataset(path[, errors, lazy, xr_opts])Create a
xarray.Datasetfrom a local path pointing to a netcdf fileopen_json(url[, errors])Open and process a json document from a path
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)unstrip_protocol(path, **kwargs)Attributes
async_implasynchronouscached_filesprotocolFile system name, one in
fsspec.registry.known_implementationsseptarget_protocol