Skip to main content

Synopsis

This library provides a simple python interface to the 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.
  2. Basic Example (ipynb file) demonstrating use of library with results returned in an xarray.Dataset.
  3. Magnetic Field Line Conjunction Example (ipynb file) with related data retrieval/plotting using cdasws.

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.
    • CDF which is not (at the time of this writing) automatically installed with SpacePy.
  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 either

  1. SpacePy and the CDF library (following the procedures at the SpacePy and CDF web sites).

  2. cdflib.

    $ pip install -U cdflib

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).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdasws-1.7.39.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdasws-1.7.39-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file cdasws-1.7.39.tar.gz.

File metadata

  • Download URL: cdasws-1.7.39.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.12

File hashes

Hashes for cdasws-1.7.39.tar.gz
Algorithm Hash digest
SHA256 247402684d5166cd3dfafc370d41bbc220639961881e034797fc93de587869cc
MD5 fc42553fb4eb299162acf1364ed5e788
BLAKE2b-256 6e2e8fe5d50d5eb664509e1b2a0592ce004ffee14f20583326b67d6be4843586

See more details on using hashes here.

File details

Details for the file cdasws-1.7.39-py3-none-any.whl.

File metadata

  • Download URL: cdasws-1.7.39-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.12

File hashes

Hashes for cdasws-1.7.39-py3-none-any.whl
Algorithm Hash digest
SHA256 3cd44ea452711fe0cbb45a4cffd3009fe6d47fb2d1a98236bd8e0d71f7bc72c1
MD5 eab1c82441bab738581a9220df22454c
BLAKE2b-256 9564e6d35be9a70135ad32012878c4f96dff6fb2bfe0311cd6fecbafceb00d4c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.8.18

2 files

1.8.17

2 files

1.8.16

2 files

1.8.15

2 files

1.8.14

2 files

1.8.13

2 files

1.8.12

2 files

1.8.11

2 files

1.8.10

2 files

1.8.9

2 files

1.8.8

2 files

1.8.7

2 files

1.8.6

2 files

1.8.5

2 files

1.8.4

2 files

1.8.3

2 files

1.8.2

2 files

1.7.47

2 files

1.7.46

2 files

1.7.45

2 files

1.7.44

2 files

1.7.43

1 file

1.7.42

2 files

1.7.41

2 files

1.7.40

2 files

This release

1.7.39 This release

2 files

1.7.38

2 files

1.7.37

2 files

1.7.36

2 files

1.7.31

2 files

1.7.24

2 files

1.7.21

2 files

1.7.17

2 files

1.7.16

1 file

0.2.2

2 files

0.2.1

1 file

0.2.0

1 file

0.1.21

1 file

0.1.20

1 file

0.1.19

1 file

0.1.18

1 file

0.1.17

1 file

0.1.16

1 file

0.1.14

1 file

0.1.13

1 file

0.1.12

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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