Skip to main content

Synopsis

This library provides a simple python interface to the heliophysics data and services of NASA's Coordinated Data Analysis System (CDAS). This library implements the client side of the CDAS RESTful web services and can return data in the SpacePy data model or an xarray.Dataset with all the original ISTP/SPDF metadata. Frequently asked questions concerning this library are at FAQ. For more general details about the CDAS web services, see https://cdaweb.gsfc.nasa.gov/WebServices/REST/.

Code Example

This package contains example code calling most of the available web services. To run the included example, do the following

python -m cdasws

Also, the following Jupyter notebooks demonstrate different features of the library:

  1. Basic Example (ipynb file) demonstrating use of library with results returned in SpacePy data model. Launch on Binder.
  2. Basic Example (ipynb file) demonstrating use of library with results returned in an xarray.Dataset. Launch on Binder.
  3. Magnetic Field Line Conjunction Example (ipynb file) with related data retrieval/plotting using cdasws. Launch on Binder.

And at the bottom of each CDAWeb dataset description is a "Data Access Code Examples" link that contains dataset-specific code utilizing this package to access the data.

Motivation

This library hides the HTTP, JSON/XML, and CDF details of the CDAS web services. A python developer only has to deal with python objects and methods (primarily the SpacePy data model or xarray.Dataset object with full ISTP/SPDF metadata).

Dependencies

The only required dependencies are python-dateutil and requests. If you call the get_data method then one of the following two sets of additional dependencies are required:

  1. To have get_data return the data in the SpacePy data model.
    • SpacePy. Refer to the SpacePy documentation for the details of SpacePy's dependencies.
  2. To have get_data return the data in an xarray dataset.

Installation

As noted in the dependencies above, if you intend to call the get_data method, you must install one of the following options.

  1. SpacePy.

     $ pip install -U spacepy
    
  2. cdflib and xarray.

     $ pip install -U cdflib
     $ pip install -U xarray
    

Then, to install this package

$ pip install -U cdasws

API Reference

Refer to cdasws package API reference

or use the standard python help mechanism.

from cdasws import CdasWs
help(CdasWs)

Tests

The tests directory contains unittest tests.

Contributors

Bernie Harris.
e-mail for support.

License

This code is licensed under the NASA Open Source Agreement (NOSA).

Metadata

Release files for cdasws 1.7.46

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdasws 1.7.46
File Size Uploaded
cdasws-1.7.46.tar.gz 22.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cdasws 1.7.46
File Interpreter ABI Platform
cdasws-1.7.46-py3-none-any.whl Python 3 none any Details

Total release size: 61.2 kB

Release files / cdasws-1.7.46.tar.gz

Download URL cdasws-1.7.46.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3dfd518e7f55ba155c107880ac63c6066f4c2ac2a5663cba36c4574cdc1ec766
BLAKE2b-256 checksum
How to use checksums
83257873b63cfc61c08c8f03a3e6dc58685ace91ffba15c65882dc60f70a3e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release files / cdasws-1.7.46-py3-none-any.whl

Download URL cdasws-1.7.46-py3-none-any.whl
Size 39.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4be69ae9cd61213d1f9b72d731f429408e831a1f4fdf732b36b183bb8bef12d8
BLAKE2b-256 checksum
How to use checksums
4dcf37f7b82c2780571aab7daa8d8761bd0a6bdbcccaba1ea4324abc16f593f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release history Release notifications | RSS feed

1.8.18

2 release files

1.8.17

2 release files

1.8.13

2 release files

1.8.12

2 release files

1.8.10

2 release files

1.8.9

2 release files

1.8.8

2 release files

1.8.7

2 release files

1.8.6

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.7.47

2 release files

This release

1.7.46 This release

2 release files

1.7.45

2 release files

1.7.44

2 release files

1.7.43

1 release file

1.7.42

2 release files

1.7.41

2 release files

1.7.39

2 release files

1.7.37

2 release files

1.7.36

2 release files

1.7.21

2 release files

1.7.17

2 release files

1.7.16

1 release file

0.2.2

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.21

1 release file

0.1.20

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page