argopy.stores.ftpstore
argopy.stores.ftpstore#
- class ftpstore(cache: bool = False, cachedir: str = '', **kwargs)[source]#
Argo ftp file system
- Relies on:
https://filesystem-spec.readthedocs.io/en/latest/api.html#fsspec.implementations.ftp.FTPFileSystem
- __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)expand_path
(path)glob
(path, **kwargs)open
(path, *args, **kwargs)open_dataset
(url, *args, **kwargs)Open and decode a xarray dataset from an ftp url
open_json
(url, **kwargs)Return a json from an url, or verbose errors
open_mfdataset
(urls[, max_workers, method, ...])Open multiple ftp urls as a single xarray dataset.
open_mfjson
(urls[, max_workers, method, ...])Open multiple json urls
read_csv
(url, **kwargs)Read a comma-separated values (csv) url into Pandas DataFrame.
register
(uri)Keep track of files open with this instance
store_path
(uri)Attributes
protocol
File system name, one in fsspec.registry.known_implementations