pysatCDF
Self-contained Python reader for NASA CDF file format
Uses standard and extended Fortran CDF interfaces to load Common Data Format (CDF) files into Python.
Example
import pysatCDF
with pysatCDF.CDF(filename) as cdf:
# All variable data loaded into dictionary in .data
cdf.data
data = cdf.data[name]
# Attributes dictionary
cdf.meta
attribute = cdf.meta[name][attr_name]
# CDF variable information available by name
cdf[name]
# Data access similar to other packages
data = cdf[name][...]
attribute = cdf[name].attrs[attr_name]
# Export data to pysat data and metadata format
data, meta = cdf.to_pysat()
Testing
pysatCDF has been tested on Mac OS X and Ubuntu 15.04. Support is included for building on windows via Windows Subsystem for Linux.
Motivation
Provide simple, robust access to CDF data in Python and simplify adding instruments to pysat.
Installation in POSIX compatible environments
Actual CDF loading is performed by the [NASA CDF libraries] (http://cdf.gsfc.nasa.gov/html/sw_and_docs.html) which are included with pysatCDF.
To install pysatCDF
git clone https://github.com/rstoneback/pysatCDF.git
cd pysatCDF
python setup.py install
Installing pysatCDF in MacOS
MacOS does not ship with a Fortran compiler. One method for getting a suitable build environment is to use brew.
brew install gcc
and then install pysatCDF as normal.
Installing pysatCDF in Windows
Install the Windows Subsytem for Linux and proceed as per POSIX installation.
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[0.3.2] - 2022-05-13
- New Features
- Compatible with pysat v3.0+
- Deprecations
- Documentation
- Added pull request templates and other GitHub project documentation.
- Switched Windows installation instructions to favor installing WSL.
- Bug Fix
- Improved builds for newer compilers.
- Replaces uninterpretable characters with '*' so data loading may continue.
- Maintenance
- Adopted latest pysat development standards.
- Shifted from TravisCI to GitHub Actions for online testing.
- Adopted setup.cfg
- Improved PEP8 compliance
Metadata
Release files for pysatCDF 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pysatCDF-0.3.2.tar.gz | 1.2 MB | Without provenance | Details |
Release files / pysatCDF-0.3.2.tar.gz
| Download URL | pysatCDF-0.3.2.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e87ebbbd035dfdfa4be3a92a893c4912bd1b78b2dbc204f10e8dc1565810509
|
|
BLAKE2b-256 checksum How to use checksums |
e29c8cd4a94328f3296e44209376177321f836adcc9ad872d710efc54fe01ad8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Security for pysatCDF 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.