Utilities for retrieving and processing data from the Mars Climate Database
Project description
mars-MCD-helper
Utilities for retrieving and processing data from the Mars Climate Database.
Currently nothing more than an interface to
www-mars.lmd.jussie.fr. Note that
this tool is not in any way affiliated with that excellent project. It is
simply a requests-based scraper. Overuse or repetitive fetching could result in
ratelimiting or banning from jussieu.fr
.
Usage
from mars_mcd_helper import fetch_data, read_ascii_data
outf, imgf = fetch_data(outdir=".", get_img=True, ls=87.4)
sections = read_ascii_data(outf)
print("Image to compare at", imgf)
Requirements
mars-MCD-helper requires Python 3.7 or above.
To install Python 3.7, I recommend using pyenv
.
# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv
# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"
# install Python 3.7
pyenv install 3.7.12
# make it available globally
pyenv global system 3.7.12
Installation
With pip
:
python -m pip install mars-mcd-helper # or
python3.7 -m pip install mars-mcd-helper
With pipx
:
python3.7 -m pip install --user pipx
pipx install --python python3.7 mars-mcd-helper
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mars-mcd-helper-0.0.7.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for mars_mcd_helper-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e63cac276e20ba4d6dd8324196aceab4df2b237f81f1067364854f4c10fe7f4 |
|
MD5 | 14720b227bb428d7b35e0512459f4c17 |
|
BLAKE2b-256 | d20f074103d1557f83d9b68c52ab5c35e02dce300c23b8e1688303cbc4d53a91 |