A python package for working with the ESA Planetary Science Archive. The following sub-modules are available:
Provides functions to help with downloading public data products using either PDAP or TAP
Provides a class to package PDS4 products for delivery to the PSA
Provides useful utilities for working with the geogen geometry generator package
A wrapper of the astropy tap class with some convenience functions and useful queries
A minimal wrapper of the PDAP API using the requests library
Common functions used across the package
Anything contained here is designed for PSA internal use.
The following dependencies must be met:
- python >=3.6
- matplotlib
- numpy
- astropy
- pandas
- pyyaml
- requests
pip install psa_utils
should do the job, although creating a dedicated environment is recommended (see below).
First, clone this repository. If you are using conda, the dependencies can be installed in a new environment using the provided environment file:
conda env create -f environment.yml
The newly created environment can be activated with:
conda activate psa_utils
Otherwise, please make sure the dependencies are installed with your system package manager, or a tool like pip
. Use of a conda environment or virtualenv is recommended!
The package can then be installed with:
python setup.py install
The URL for the PSA can be specified when instantiating the tap class. If none is given, a default URL is used, which corresponds to the default operational server.
The Jupyter notebook included with this repository shows examples of each function and module. Click here to access the notebook!