Skip to main content
# Mapstery

Digital terrain map manipulation library.

High level scripts to convert, transform, manipulate small and large imagery
using GDAL in python to cover part of the needs of the NASA/ESA Frontier
Development Lab with respect to Space Resources challenges.

## Quick install

```
pip install mapstery
```

For developers, you might like to install the last version from git. So if you've
cloned _Mapstery_ in a folder called `mapstery_repo` then you could do the following:
`pip install mapstery_repo/`

NB: Make sure the gdal python package version correspond to the system gdal library.
If you have GDAL python installation problems you may have to match versions between
gdal system libraries and gdal python package, one way or another.

## Quick start

```
import mapstery
import numpy as np

M = mapstery.Map(500, 500)
M.add_band(np.ones((35,50))*128.0, "BAND_NAME_01")
M.add_band(np.ones((80,150))*89.0, "BAND_NAME_02")
M.save("/tmp/mastery_test0.gtif")
```

## Another example, combining layers
```
import mapstery
import numpy as np

M = mapstery.Map(500, 500)
M.dataset='layers.json'
M.save("/tmp/testjson.gtif")

```

## Json file example: layers.json
```
{
"BNAME":"LRO1.png",
"BNAME2":"LRO2.png"
}
# BNAME - BAND NAME
# LRO1.png - file path

```
## Dev infos

You can write your own scripts in `tests/` starting with the *dev_* prefix so that they are ignored by git.


Metadata

Release files for mapstery 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mapstery 0.0.7
File Interpreter ABI Platform
mapstery-0.0.7-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / mapstery-0.0.7-py2.py3-none-any.whl

Download URL mapstery-0.0.7-py2.py3-none-any.whl
Size 8.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
28af1aebe6f86eddaadd57b7c9474d2f99657a0bb55811ae33e6bda1ee14d2ab
BLAKE2b-256 checksum
How to use checksums
77b58da8599ca1888554bcc92b3ea420d37eeea01e0de1000e9874534b11b5f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Security for mapstery 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page