Skip to content

A collection of scripts and functions to process Planet Skysat imagery

License

Notifications You must be signed in to change notification settings

dshean/skysat_stereo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI

skysat_stereo

Tools and libraries for processing Planet SkySat imagery, including camera model refinement, stereo reconstruction, and orthomosaic production

Introduction

Planet operates a constellation of 13 SkySat-C SmallSats, which can acquire very-high-resolution (0.7 m to 0.9 m) triplet stereo and continuous video imagery with short revisit times. This provides an excellent opportunity to derive on-demand, high-resolution Digital Elevation Models (DEMs) for any point on the Earth's surface, with broad applications for Earth science research. However, the quality of these DEMs is currently limited by the geolocation accuracy of the default SkySat camera models, and few existing photogrammetry tools can process the SkySat images.

Purpose

We developed automated workflows to refine the SkySat camera models and produce accurate DEMs and orthomosaics. This workflow is described and evaluated in a manuscript submitted to ISPRS Journal of Photogrammetry and Remote Sensing in July 2020. This repository contains all tools and libraries as a supplement to the manuscript under review. This project is under active development and we welcome contributions (information for contributors forthcoming) and preliminary feedback from early visitors (you) :)

Contents

skysat_stereo - libraries used throughout the processing workflow

  • asp_utils.py - library of functions involving components of the NASA Ames Stereo Pipeline
  • skysat.py - library of functions specific for SkySat processing
  • misc_geospatial.py - miscelaneous functions for geospatial analysis and image processing

scripts - command line utilities for the SkySat processing workflow.

  1. skysat_overlap.py - identifies overlapping scenes
  2. skysat_preprocess.py - prepares subset of video scenes, generates frame camera models
  3. ba_skysat.py - bundle adjustment and camera refinement
  4. skysat_stereo_cli.py - stereo reconstruction
  5. skysat_dem_mos.py - generates DEM composites with relative accuracy and count metrics
  6. skysat_pc_cam.py - point clouds gridding, DEM co-registration, export updated frame and RPC camera models
  7. skysat_orthorectify.py - orthorectify individual scenes and produce orthoimage mosaics
  8. plot_disparity.py - visualize DEM, disparity map, stereo triangulation intersection error map

notebooks - notebooks used during analysis and figure preparation

Sample products

SkySat Triplet Stereo

triplet_product Figure 1: Orthoimage mosaic and DEM composite generated from a SkySat triplet stereo collection over Mt. Rainier, WA, USA. These final products were derived from L1B imagery that is © Planet, 2019 (Planet Team, 2017).

triplet_accuracy Figure 2: Relative and absolute accuracy before (using Planet RPCs) and after the skysat_stereo correction workflow.

SkySat Video

video_samples Figure 3: Sample products from SkySat video collection over Mt. St. Helen's crater (after skysat_stereo correction workflow). These final products were derived from L1A imagery that is © Planet, 2019 (Planet Team, 2017).

Dependencies

Installation

Please see the install instructions.

Notes:

  • These tools were developed and tested on a dedicated Broadwell node on the NASA Pleiades supercomputer, running SUSE Linux Enterprise Server.
  • Many tools use parallel threads and/or processes, and the hardcoded number of threads and processes were tuned based on the available resources (28 CPUs, 128 GB RAM). Some utilities should autoscale based on available resources, but others may require modifications for optimization on other systems.
  • The code should work for *nix platforms. We have not tested on Windows.

License

This project is licensed under the terms of the MIT License.

Citation

Accompanying manuscript is under review, and will be available via open access after publication. For now, please cite as:

  • Bhushan, Shashank, Shean, David E., Alexandrov, Oleg, & Henderson, Scott. (2020). Automated digital elevation model (DEM) generation from very-high-resolution Planet SkySat triplet stereo and video imagery. ISPRS Journal of Photogrammetry and Remote Sensing, submitted.
  • Shashank Bhushan, David Shean, Oleg Alexandrov, & Scott Henderson. (2020, July 11). uw-cryo/skysat_stereo: Zenodo doi release (Version 0.1). Zenodo. http://doi.org/10.5281/zenodo.3940086

Funding and Acknowledgments

  • This research was supported by the NASA Terrestrial Hydrology Program (THP) and the NASA Cryosphere Program. Shashank Bhushan was supported by a NASA FINESST award (80NSSC19K1338) and the NASA HiMAT project (NNX16AQ88G). David Shean, Oleg Alexandrov and Scott Henderson were supported by NASA THP award 80NSSC18K1405. SkySat tasking, data access, and supplemental support was provided under the NASA Commercial Smallsat Data Acquisition Program 2018 Pilot Study
  • We acknowledge Compton J. Tucker and others at NASA Goddard Space Flight Center and NASA Headquarters for coordinating the Commercial Satellite Data Access Program Pilot and assisting with prelimnary SkySat tasking campaigns. Paris Good at Planet provided invaluable assistance with data acquisition and facilitated discussions with Planet engineering teams. Thanks are also due to Ross Losher, Antonio Martos, Kelsey Jordahl and others at Planet for initial guidance on SkySat-C sensor specifications and camera models. Resources supporting this work were provided by the NASA High-End Computing (HEC) Program through the NASA Advanced Supercomputing (NAS) Division at Ames Research Center. Friedrich Knuth and Michelle Hu provided feedback on initial manuscript outline, code development and documentation. We also acknowledge input from the larger ASP community during photogrammetry discussions.

Refrences

Planet application program interface: In space for life on earth. San Francisco, CA. https://api.planet.com.

About

A collection of scripts and functions to process Planet Skysat imagery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.9%
  • Python 1.1%