Skip to main content

A collection of PSA utilities

Project description

psa_utils

A python package for working with the ESA Planetary Science Archive. The following sub-modules are available:

download

Provides functions to help with downloading public data products using either PDAP or TAP

packager

Provides a class to package PDS4 products for delivery to the PSA

geogen

Provides useful utilities for working with the geogen geometry generator package

tap

A wrapper of the astropy tap class with some convenience functions and useful queries

pdap

A minimal wrapper of the PDAP API using the requests library

common

Common functions used across the package

internal

Anything contained here is designed for PSA internal use.

Dependencies

The following dependencies must be met:

  • python >=3.6
  • matplotlib
  • numpy
  • astropy
  • pandas
  • pyyaml
  • requests

Installation

pip

pip install psa_utils

should do the job, although creating a dedicated environment is recommended (see below).

conda

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

URL

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.

Example

The Jupyter notebook included with this repository shows examples of each function and module. Click here to access the notebook!

Project details


Download files

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

Source Distribution

psa_utils-0.2.6.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

psa_utils-0.2.6-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file psa_utils-0.2.6.tar.gz.

File metadata

  • Download URL: psa_utils-0.2.6.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for psa_utils-0.2.6.tar.gz
Algorithm Hash digest
SHA256 94fec6e9bfd46053b295e9b8cb0b161a769899f7ba80cee979d22897f2fb1a1d
MD5 5ce9f6f7395638a000ba9412e8f761ce
BLAKE2b-256 9073911d7eec772bc3f89dd111f618593cd87f5b27ed440a2ad3cd6cbd5735a5

See more details on using hashes here.

File details

Details for the file psa_utils-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: psa_utils-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for psa_utils-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8066242da239c03b291d062c0bd41ea0b18e280b108e9cb841e88870ba52406e
MD5 0ec65ec071e7c0571e3eb2e3d29daa73
BLAKE2b-256 03cb1eea71e7c7673fd4b68ecce611262fac795eafc0cd178c4496d9ce572c9d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page