NASA's Coordinated Data Analysis System Web Service Client Library
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/.
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 notebook demonstrate different features of the library:
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.
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).
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:
- To have get_data return the data in the SpacePy data model.
- To have get_data return the data in an xarray dataset.
As noted in the dependencies above, if you intend to call the get_data method, you must install either
- SpacePy and the CDF library (following the procedures at the SpacePy and CDF web sites).
- cdflib. $ pip install -U cdflib
Then, to install this package
$ pip install -U cdasws
Refer to cdasws package API reference
or use the standard python help mechanism.
from cdasws import CdasWs help(CdasWs)
The tests directory contains unittest tests.
e-mail for support.
This code is licensed under the NASA Open Source Agreement (NOSA).
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.