Skip to main content

Utilities for working with remote sensing observational data of planetary bodies.

Project description

marslab

DOI tests codecov

A library of Python utilities for working with observational data of Mars, especially multispectral image data from rovers. This library does not contain discrete user-facing applications; if you're looking for a clock, a plotter, or an image generator, you've found one of its dependencies.

Feedback is welcomed and encouraged. If the content of your feedback might be covered by the MSL or M2020 Team Guidelines, please email: chase@millionconcepts.com Otherwise, please file an Issue.

installation

We recommend that you use the conda package manager to control your Python environment for this library. We do not officially support use of non-conda Python environments (the setup.py file is included for convenience and install hooks only). If you're already equipped with conda, please create an env for this package using the following commands:

conda env create -f environment.yml
conda activate marslab

Otherwise, please follow the rest of the instructions in this file.

step 1: install conda and support software

If you already have Anaconda or Miniconda installed on your computer, you can skip this step. If it's very old and not working well, you should uninstall it first. We definitely don't recommend installing multiple versions of conda unless you have a really strong need to do so.

You can get conda here as part of the Miniconda distribution of Python. Download the 64-bit version of the installer for your operating system and follow the instructions on that website to set up your environment. Make sure you download Miniconda3, not Miniconda2. marslab is not compatible with Python 2.

On Windows, depending on what else you have installed in your environment, you may also need to install Build Tools for Visual Studio, which you can find on this page: https://visualstudio.microsoft.com/downloads/

step 2: create conda environment

Now that you have conda installed, you can set up a Python environment to use marslab. Open up a terminal: Anaconda Prompt on Windows, Terminal on macOS, or your console emulator of choice on Linux. Navigate to the directory where you put the repository. Make sure you have git installed in your base conda environment:

conda install -n base git

After that completes, run:

conda env create -f environment.yml

Say yes at the prompts and let the installation finish. Then run:

conda env list

You should see marslab in the list of environments. Now run:

conda activate marslab

and you will be in a Python environment that contains all the packages marslab needs.

This library has an additional dependency on Windows that is not currently accounted for in the environment.yml file. Run pip install windows-curses to install it.

Important: now that you've created this environment, you should always have it active whenever you work with marslab.

If you can't activate the environment, see 'common gotchas' below.

common gotchas

  • If you get error messages when running a Notebook or other marslab code, make sure you have activated theconda environment by running conda activate marslab.
  • If you use multiple shells on macOS or Linux, conda will only automatically set up the one it detects as your system default. If you can't activate the environment, check a different shell.
  • If you've already got an installed version of conda on your system, installing an additional version without uninstalling the old one may make environment setup very challenging. We do not recommend installing multiple versions of conda at once unless you really need to.

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

marslab-0.9.26.tar.gz (89.2 kB view details)

Uploaded Source

Built Distribution

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

marslab-0.9.26-py3-none-any.whl (102.8 kB view details)

Uploaded Python 3

File details

Details for the file marslab-0.9.26.tar.gz.

File metadata

  • Download URL: marslab-0.9.26.tar.gz
  • Upload date:
  • Size: 89.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for marslab-0.9.26.tar.gz
Algorithm Hash digest
SHA256 32d0a9804dcc5fe72853dc2f66cc1c404dd634b55b5e47a2b7f19bbcd785f156
MD5 8646a22e77c909773a0df6bf41b698d0
BLAKE2b-256 22ff04d75b0de98394f12a5a94d6a1b8f616db300d17fdc045ee2f68cae2add4

See more details on using hashes here.

File details

Details for the file marslab-0.9.26-py3-none-any.whl.

File metadata

  • Download URL: marslab-0.9.26-py3-none-any.whl
  • Upload date:
  • Size: 102.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for marslab-0.9.26-py3-none-any.whl
Algorithm Hash digest
SHA256 4a1325f6a5ce2aa65d134bc78237c9b31829cf8a994d32a55797edaa35c9404e
MD5 da62ebf121a66f60dd7fa53b00e2caf9
BLAKE2b-256 cb9425ff010475dfcb7066b40cc4864ee5b92ed1ae587a1064ac9ba1600539b5

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