Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mapstery

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapstery

Digital terrain map manipulation high level functions

  • 0.0.7
  • PyPI
  • Socket score

Maintainers
1

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc