77 planet imagery
Uncomment the following line to install geemap if needed.
In [1]:
Copied!
# !pip install geemap
# !pip install geemap
In [2]:
Copied!
import os
import geemap
import os
import geemap
In [3]:
Copied!
# geemap.update_package()
# geemap.update_package()
First, you need to sign up a Planet account and get an API key. See https://developers.planet.com/quickstart/apis. Uncomment the following line to pass in your API key.
In [4]:
Copied!
# os.environ["PLANET_API_KEY"] = "12345"
# os.environ["PLANET_API_KEY"] = "12345"
In [5]:
Copied!
tile_format = "ipyleaflet"
if os.environ.get("USE_FOLIUM") is not None:
tile_format = "folium"
tile_format = "ipyleaflet"
if os.environ.get("USE_FOLIUM") is not None:
tile_format = "folium"
In [6]:
Copied!
# geemap.planet_quarterly()
# geemap.planet_quarterly()
In [7]:
Copied!
# geemap.planet_monthly()
# geemap.planet_monthly()
In [8]:
Copied!
# geemap.planet_catalog()
# geemap.planet_catalog()
In [9]:
Copied!
quarterly_tiles = geemap.planet_quarterly_tiles(tile_format=tile_format)
quarterly_tiles = geemap.planet_quarterly_tiles(tile_format=tile_format)
In [10]:
Copied!
monthly_tiles = geemap.planet_monthly_tiles(tile_format=tile_format)
monthly_tiles = geemap.planet_monthly_tiles(tile_format=tile_format)
In [11]:
Copied!
for tile in quarterly_tiles:
print(tile)
for tile in quarterly_tiles:
print(tile)
Planet_2016q1 Planet_2016q2 Planet_2016q3 Planet_2016q4 Planet_2017q1 Planet_2017q2 Planet_2017q3 Planet_2017q4 Planet_2018q1 Planet_2018q2 Planet_2018q3 Planet_2018q4 Planet_2019q1 Planet_2019q2 Planet_2019q3 Planet_2019q4 Planet_2020q1 Planet_2020q2 Planet_2020q3 Planet_2020q4 Planet_2021q1 Planet_2021q2 Planet_2021q3 Planet_2021q4
In [12]:
Copied!
for tile in monthly_tiles:
print(tile)
for tile in monthly_tiles:
print(tile)
Planet_2016_01 Planet_2016_02 Planet_2016_03 Planet_2016_04 Planet_2016_05 Planet_2016_06 Planet_2016_07 Planet_2016_08 Planet_2016_09 Planet_2016_10 Planet_2016_11 Planet_2016_12 Planet_2017_01 Planet_2017_02 Planet_2017_03 Planet_2017_04 Planet_2017_05 Planet_2017_06 Planet_2017_07 Planet_2017_08 Planet_2017_09 Planet_2017_10 Planet_2017_11 Planet_2017_12 Planet_2018_01 Planet_2018_02 Planet_2018_03 Planet_2018_04 Planet_2018_05 Planet_2018_06 Planet_2018_07 Planet_2018_08 Planet_2018_09 Planet_2018_10 Planet_2018_11 Planet_2018_12 Planet_2019_01 Planet_2019_02 Planet_2019_03 Planet_2019_04 Planet_2019_05 Planet_2019_06 Planet_2019_07 Planet_2019_08 Planet_2019_09 Planet_2019_10 Planet_2019_11 Planet_2019_12 Planet_2020_01 Planet_2020_02 Planet_2020_03 Planet_2020_04 Planet_2020_05 Planet_2020_06 Planet_2020_07 Planet_2020_08 Planet_2020_09 Planet_2020_10 Planet_2020_11 Planet_2020_12 Planet_2021_01 Planet_2021_02 Planet_2021_03 Planet_2021_04 Planet_2021_05 Planet_2021_06 Planet_2021_07 Planet_2021_08 Planet_2021_09 Planet_2021_10 Planet_2021_11 Planet_2021_12 Planet_2022_01 Planet_2022_02
In [13]:
Copied!
m = geemap.Map()
m.add_planet_by_month(year=2020, month=8)
m
m = geemap.Map()
m.add_planet_by_month(year=2020, month=8)
m
Out[13]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [14]:
Copied!
m = geemap.Map()
m.add_planet_by_quarter(year=2019, quarter=2)
m
m = geemap.Map()
m.add_planet_by_quarter(year=2019, quarter=2)
m
Out[14]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Last update:
2022-03-14