Planet Stories
Published in

Planet Stories

Volcan de Fuego, Guatemala January 25th, 2017 © Planet Labs

Demystifying Planet’s Command Line Tool

Planet Python CLI
Planet Explorer: Search and Download
From: Real Python: Python 3 Installation & Setup Guide © Real Python
It’s important to note that while you can install the CLI without Planet credentials, you have to have a Planet account before you can use it to search for or download any data.
Planet Community: General Discussion and Feature Requests
Maybe you want to find stats for all imagery that intersect your geometry over different time intervals, try the planet data stats feature
Release notes for our latest release

“Tips, Tricks and Cheat codes to Planet CLI”

planet init
planet data search --item-type "PSScene4Band" --asset-type "analytic" --date acquired gt "2018–01–01" --date acquired lt "2018–12–31" --range cloud_cover lt "0.2" --geom "full path to geometry.geojson" --limit "Maximum number of images to search for"
planet data download --item-type "PSScene4Band" --asset-type "analytic" --date acquired gt "2018–01–01" --date acquired lt "2018–12–31" --range cloud_cover lt "0.2" --geom "full path to geometry.geojson" --dest "full path to folder where you want to download all images"
planet data search --item-type "PSScene4Band" --asset-type "analytic" --date acquired gt "2018–01–01" --date acquired lt "2018–10–01" --range cloud_cover lt "0.2" --geom "full path to geometry.geojson" --limit "Maximum number of images to search for" >>"full path to footprint.geojson"
planet data search --string-in id 20180912_133342_0f3b --item-type PSScene4Band --asset-type analytic
planet data search: single image metadata
planet data download --string-in id 20180912_133342_0f3b --item-type PSScene4Band --asset-type analytic --dest "full path where you want to download image"planet data download --string-in id 20180912_133342_0f3b --item-type PSScene4Band --asset-type analytic_xml --dest "full path where you want to download image metadata"
planet data download: single image download
planet data stats --interval month --geom "path to geometry.geojson" --item-type "PSScene4Band" --asset-type "analytic"
planet data stats: monthly occurrence for geometry

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Samapriya Roy

Remote sensing applications, large scale data processing and management, API applications along with network analysis and geostatistical methods