Skip to main content

Work with declassified keyhole satellite images.

Project description

A library and command-line tools for manipulating declassified imagery.

The primary use for this right now is mosaicking the separate “panel” scans of declassified imagery from EarthExplorer.

Usage

There are two steps to mosaick the panel images:

  1. Use the register subcommand to measure the panels’ overlap. This will typically look something like:

    keyhole register -j coreg.json name_*.tif

    This will create coreg.json with the overlap information.

  2. Then use the mosaick subcommand with the information generated in the previous step to combine the images:

    keyhole mosaick -o output.tif -j coreg.json name_*.tif

The shrink argument is useful for creating smaller preview images:

keyhole mosaick -o out.jpg --shrink 10 -j coreg.json name_*.tif

To create tiled pyramidal images:

keyhole mosaick -o out.tif \
    --tile --pyramid --tile_width 256 --tile_height 256 \
    -j coreg.json name_*.tif

For more information, see keyhole -h.

Installation

Before installation, you must have libvips installed. The procedure for that varies by platform; see the libvips documentation for more info. After that, simply:

pip install keyhole

This installs both the package and the command-line tool keyhole.

You can also run the code as a python module with python -m keyhole.

If you’ve cloned the keyhole repo and you have the dependencies described in pyproject.toml, you can simply run the script at the root of the repo:

python keyhole.py -h

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

keyhole-0.2.1.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

keyhole-0.2.1-py3-none-any.whl (19.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page