Coder Social home page Coder Social logo

planet's Introduction

Project Status lifecycle GitHub license GitHub commit

Package to download Planet Scope images (4.77 m res)

Norway’s International Climate and Forests Initiative Imagery Program paid millions so we can all have access to planet high resolution images (4.77 meters) for monitoring the tropical forest. There are several other planet-products, but those are not part of the approach here.

This is a very experimental package and have only been tested in Linux (I am sure this will not work on Windows, and i am not planning to make it so).

| Planet - NICFI Account | Planet Python client | Install Planet Package | First Steps |

1. planet - NICFI Account

First you need an account on planet platform to access Planet Scope Imaginary, this can be done here

2. Planet Python client

Second you must install the planet python client, open your terminal and install planet. All documentation is available here

pip install planet

3. Install Planet Package

devtools::install_github("klauswiese/Planet")

4. First Steps

4.1 Available Image Collections

Planet have daily images taken by dove satellites (with this type of account we do not have access to daily images), derivate from this images they generate biannual composites (mostly cloud free) and monthly images for monitoring forest in the tropics.

4.1.1 Planet Scope Tropical Normalized Analysis Biannual Archive

As in rigth now (NOvember 19 2021), there are 10 composites:

    Second semester of 2015
    First semester of 2016
    Second semester of 2016
    First semester of 2017
    Second semester of 2017
    First semester of 2018
    Second semester of 2018
    First semester of 2019
    Second semester of 2019
    First semester of 2020

4.1.2 Planet Scope Tropical Normalized Analysis Monthly Monitoring

For the monthly monitoring only exist for september, october, november and december of 2020, all 2021 andJanuary to April of 2022.

4.2 PlanetScopeNICFI()

This function is to see the images available to download.

library(Planet)
PlanetScopeNICFI()

$`Biannual Collection`
   PS_Tropical_Normalized_Analytic_Biannual
1                             December 2015
2                                 June 2016
3                             December 2016
4                                 June 2017
5                             December 2017
6                                 June 2018
7                             December 2018
8                                 June 2019
9                             December 2019
10                                June 2020

$`Monthly Collection`
  PS_Tropical_Normalized_Analytic_Monthly
1                          September 2020
2                            October 2020
3                           November 2020
4                           December 2020
5                            January 2021
6                           February 2021
7                              March 2021
8                              April 2021
9                                May 2021
10                              June 2021
11                              July 2021
12                            August 2021
13                         September 2021
14                           October 2021
15                          November 2021
16                          December 2021
17                           January 2022
18                          February 2022
19                             March 2022
20                             April 2022

4.3 PlanetScopeInit(), PlanetScopeBiannual() and PlanetScopeMonthly()

PlanetScopeInit() is for initialize the planet python client, this function needs the email account, the password and the directory where you put the planet client. In a linux SO you can find the directory by typing in your terminal:

which planet

#~/miniconda3/bin/planet

This will display the directory where your planet python client is installed. Now you have all the elements to run this package.

library(Planet)

# 1. Initialize ----

#Data for initialize
Email <- "the email you use to create planet - NICFI account"
Password <- "The password you set"
DirPlanet <- "~/miniconda3/bin/planet"

#Initialize the planet Python client
PlanetScopeInit(DirPlanet = DirPlanet, 
                Email = Email, 
                Password = Password
                )
                  
# 2. Monthly ----

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

#Execute function
PlanetScopeMonthly(Name = Name, 
                    AOI = AOI, 
                    DirPlanet = DirPlanet, 
                    Year = Year, 
                    Month = Month
                    )
# 3. Biannual ----

#Data to download Planet Scope Image
AOI <- "~/To/Your/vector/directory/AOI.shp"
Name <- "TheNameYouLike"
Year <- 2020
Semester <- 1 #for the semester of the year

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

planet's People

Contributors

klauswiese avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.