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.25.tar.gz (88.0 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.25-py3-none-any.whl (100.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: marslab-0.9.25.tar.gz
  • Upload date:
  • Size: 88.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for marslab-0.9.25.tar.gz
Algorithm Hash digest
SHA256 8f5ee7bad62952fd09c0691f6a2752dc22942ce970a2e4c426883cb5a5aa422a
MD5 3c8cc1766a210914ab4d2f92989a0be5
BLAKE2b-256 406d229f85fa1a90bb549b0d952890dca300fd6ba0fdca8481386e00d309ddaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: marslab-0.9.25-py3-none-any.whl
  • Upload date:
  • Size: 100.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for marslab-0.9.25-py3-none-any.whl
Algorithm Hash digest
SHA256 4de6c87ab3d4747fbb51e5aded8d18c3d2dd8054e3c3a801703df9329ac9be5d
MD5 01c6508c877bf7eafa3b563b6eb24677
BLAKE2b-256 50dee97d62a6936e5e6a52556401a8092ce4326a618570eab65927db542d8835

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