PlanetScopeMonthly: Planet Scope Monthly composite for the tropics from NICFI

View source: R/PlanetScopeMonthly.R

PlanetScopeMonthlyR Documentation

Planet Scope Monthly composite for the tropics from NICFI

Description

Download Planet Scope imagesfrom NICFI project using planet python client

Usage

  PlanetScopeMonthly(Name, DirPlanet, AOI, Year, Month)

Arguments

Name

Text to name the folder for download images

DirPlanet

Directory to planet API install

AOI

Directory to Area of Interest Vector (any format sf can read ex: .GPKG, .shp)

Year

2020 by default

Month

9 for september, the are monthy images for september (9), october (10) , november (11) and december (12) from 2020, january (1), february (2) , march (3), april (4), may (5), june (6), july (7), august (8), september (9), october (10), november (11) and december (12) from 2021 and january (1) to april (4) from 2022

Value

Planet scoper monthly composite for the area of interest

Author(s)

Klaus Wolfgang Wiese Acosta

Examples

#Data to Initialize the planet Python client
DirPlanet <- "~/anaconda3/bin/planet"
Email <- "Your email for planet NICFI account"
Password <- "Your passwrod for planet NICFI account"

#Initialize the planet Python client
PlanetScopeInit(DirPlanet = DirPlanet, 
                    Email = Email, 
                    Password = Password)


#Data to download Planet Scope Image
AOI <- "~/To/Your/vector/directory/AOI.shp"
Name <- "TheNameYouLike"
Year <- 2021
Month <- 1

#Execute function
PlanetScopeMonthly(Name = Name, 
                    AOI = AOI, 
                    DirPlanet = DirPlanet, 
                    Year = Year, 
                    Month = Month)
  

klauswiese/Planet documentation built on June 11, 2022, 6:45 p.m.