Description Usage Arguments Details Value Examples
A function that extract a time series of climate variables.
1 | get_climate(to, from, by, band, region, fun = "count")
|
to, from |
the starting and final range of date. |
by |
two types of increment of the sequence by month and year. |
band |
name of band. |
region |
region and object sf. |
fun |
function for extract statistic zonal ('count','kurtosis','max','mean','median','min','mode','percentile','std','sum','variance','first'). |
Name of some bands.
aet: Actual evapotranspiration, derived using a one-dimensional soil water balance model.
def: Climate water deficit, derived using a one-dimensional soil water balance model.
pdsi: Palmer Drought Severity Index.
pet: Reference evapotranspiration (ASCE Penman-Montieth).
pr: Precipitation accumulation.
ro: Runoff, derived using a one-dimensional soil water balance model.
soil: Soil moisture, derived using a one-dimensional soil water balance model.
srad: Downward surface shortwave radiation.
swe: Snow water equivalent, derived using a one-dimensional soil water balance model.
tmmn: Minimum temperature.
tmmx: Maximum temperature.
vap: Vapor pressure
vpd: Vapor pressure deficit.
vs: Wind-speed at 10m.
a sf object with the new variables.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
library(tidyverse)
library(rgee)
library(lis)
library(sf)
ee_Initialize()
# 1. Reading a sf object
region <- import_db("Peru_shp")
region_ee <- pol_as_ee(region , simplify = 1000)
# 2. Extracting climate information
data <- region_ee %>% get_climate(
to = "2001-02-01", from = "2002-12-31",
by = "month", band = "tmmx", fun = "max")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.