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.2.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

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

psa_utils-0.2.2-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psa_utils-0.2.2.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for psa_utils-0.2.2.tar.gz
Algorithm Hash digest
SHA256 eee01c5b6de06035cc2b9d90f1e89707da49539d004e53710e265537f298d050
MD5 28edd01fd13f9b10c98115b0342e0659
BLAKE2b-256 0940113d595b4dd819ddcae2095992f233c1a6591e543b0fca4f9ab78c75ff02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psa_utils-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for psa_utils-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a6170f046aed430ce8e9818b2e36bc6f8b3aeb33ff4c9d6cc49def3003e6ca1
MD5 4551bfa0b6f67830455384c692f8a597
BLAKE2b-256 0e802d3a174163ee30caf37771f6d866d2fb8832088acd1a4b12872f44bcd8f0

See more details on using hashes here.

Supported by

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