File System Interface for CDF Files
Project description
cdffs
A file system interface (cdffs) to allow users to work with CDF Files using the fsspec supported/compatible python packages (pandas, xarray etc).
fsspec provides an abstract file system interface to work with local/cloud storages and based on the protocol name (example, s3 or abfs) provided in the path, fsspec translates the incoming requests to storage specific implementations and send the responses back to the upstream package to work with the desired data.
Refer fsspec documentation to get the list of all supported/compatible python packages.
Installation
cdffs is available on PyPI. Install using,
pip install cognite-cdffs
Usage
Important steps to follow when working with CDF Files using the fsspec supported python packages.
- Import
cdffspackage
from cognite import cdffs # noqa
-
Follow instructions from Authentication to authenticate.
-
Read/write the files from/to CDF using
fsspecsupported packages. Example,- Read
zarrfiles using usingxarray.
ds = xarray.open_zarr("cdffs://sample_data/test.zarr")
- Write
zarrfiles usingxarray.
ds.to_zarr("cdffs://sample_data/test.zarr", storage_options={"file_metadata": metadata})
- Read
Refer cdffs.readthedocs.io for more details.
Contributing
Want to contribute? Check out CONTRIBUTING.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cognite_cdffs-0.2.4.tar.gz.
File metadata
- Download URL: cognite_cdffs-0.2.4.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f32e2eb81f9ebe33fc1712e17c978fd4dd0c626b8345631dd7b57251b366bf19
|
|
| MD5 |
4e4d5ac4850674875eed2480e37fd36d
|
|
| BLAKE2b-256 |
f866ed9975e8584150e3eedd80fdc14049c638473de4d75a083ab3931742b94b
|
File details
Details for the file cognite_cdffs-0.2.4-py3-none-any.whl.
File metadata
- Download URL: cognite_cdffs-0.2.4-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab0c80b633d9ee6fc15d59755d5fac20ac2538046470d7123772e558336b9b31
|
|
| MD5 |
e169456063b99291e2710cc44bbc2830
|
|
| BLAKE2b-256 |
43508343365e2d7347d429200e2a7e42f8ddb3acb36660b5d08860f43810139b
|