InSight Mars Mission Raw Photo API Wrapper
Project description
NASA InSight Mars Raw Image API
Python library to access the raw images and metadata from the InSight Mars mission
Images are from nasa.gov
Usage:
from insight import InSightAPI, utils
InSightMission = InSightAPI()
# Make initial request
json_request = InSightMission.make_request()
# Get image count
all_images = InSightMission.get_count(json_request)
# Get x number of image urls (order backwards, from newest to oldest)
images = InSightMission.get_images(json_request, x)
# Get image metadata:
metadata = InSightMission.get_metadata(json_request, image_id)
# Get x number of images + meatadata (order backwards, from newest to oldest)
metadata = InSightMission.get_images_metadata(json_request, x)
# Get all images available:
images = InSightMission.get_all(json_request)
To-do:
get_sol(data, sol)
get_sols(data, start_sol, end_sol)
Examples:
insight_get_images.py
insight_make_gif.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
insight-api-0.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for insight_api-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f42b977a4e029324b9b535e6a55540cfeedb093f2d1fa519b66c83b21f33afc |
|
MD5 | db16b83d2a39c1ce3f04504af0718ba0 |
|
BLAKE2b-256 | 23f690da7ea1f177cd898b171a5275d12dc4ddc4f7f7a28961e67eaff8901f22 |