Package Agriwater': January 30, 2019
Package Agriwater': January 30, 2019
Package Agriwater': January 30, 2019
BugReports https://github.com/cesarofs/agriwater/issues
Imports raster, sp, rgdal
RoxygenNote 6.1.0
Suggests knitr, rmarkdown
VignetteBuilder knitr
NeedsCompilation no
Author Cesar de Oliveira Ferreira Silva [cre]
(<https://orcid.org/0000-0002-5152-6497>),
Antonio Heriberto de Castro Teixeira [aut],
Rodrigo Lilla Manzione [ctb] (<https://orcid.org/0000-0002-0754-2641>)
Repository CRAN
Date/Publication 2019-01-30 22:34:00 UTC
1
2 albedo_l8
R topics documented:
albedo_l8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
albedo_modis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
albedo_s2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
evapo_l8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
evapo_l8t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
evapo_l8t_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
evapo_l8_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
evapo_modis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
evapo_modis_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
evapo_s2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
evapo_s2_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
kc_l8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
kc_l8t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
kc_l8t_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
kc_l8_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
kc_modis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
kc_modis_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
kc_s2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
kc_s2_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
radiation_l8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
radiation_l8t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
radiation_l8t_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
radiation_l8_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
radiation_modis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
radiation_modis_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
radiation_s2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
radiation_s2_grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
reflectance_l8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Index 22
Description
Surface Albedo using Landsat-8 images.
Usage
albedo_l8(doy)
Arguments
doy is the Day of Year (DOY)
albedo_modis 3
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24").
Description
Usage
albedo_modis()
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24").
Description
Usage
albedo_s2()
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24").
4 evapo_l8t
Description
Actual evapotranspiration (ETa) using Landsat-8 images with single agrometeorological data.
Usage
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
Description
Actual evapotranspiration (ETa) using Landsat-8 (including thermal bands) images with single
agrometeorological data.
Usage
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
Description
Actual evapotranspiration (ETa) using Landsat-8 (including thermal bands) images with a grid of
agrometeorological data.
Usage
evapo_l8t_grid(doy, a, b)
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
6 evapo_modis
Description
Actual evapotranspiration (ETa) using Landsat-8 images with a grid of agrometeorological data.
Usage
evapo_l8_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
Description
Actual evapotranspiration (ETa) using MODIS with single agrometeorological data.
Usage
evapo_modis(doy, RG, Ta, ET0, a, b)
Arguments
doy is the Day of Year (DOY)
RG is the global solar radiation
Ta is the average air temperature
ET0 is the reference evapotranspiration
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
evapo_modis 7
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
Examples
library(agriwater)
wd <- tempdir()
xy <- matrix(rnorm(100, mean = 0.07, sd = 0.01), 10, 10)
rast <- raster(xy)
extent(rast) <- c(-40.5,-40.45,-9.5,-9.45)
projection(rast) <- CRS("+proj=longlat +datum=WGS84")
writeRaster(rast, file.path(wd, "B2"),format = "GTiff", overwrite=TRUE)
xy <- matrix(rnorm(100, mean = 0.05, sd = 0.015),10, 10)
rast <- raster(xy)
extent(rast) <- c(-40.5,-40.45,-9.5,-9.45)
projection(rast) <- CRS("+proj=longlat +datum=WGS84")
writeRaster(rast, file.path(wd, "B1"),format = "GTiff", overwrite=TRUE)
setwd(initial)
Description
Actual evapotranspiration (ETa) using MODIS with a grid of agrometeorological data.
Usage
evapo_modis_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
Description
Actual evapotranspiration (ETa) using Sentinel-2 images with single agrometeorological data.
Usage
evapo_s2(doy, RG, Ta, ET0, a, b)
Arguments
doy is the Day of Year (DOY)
RG is the global solar radiation
Ta is the average air temperature
ET0 is the reference evapotranspiration
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
evapo_s2_grid 9
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
Description
Actual evapotranspiration (ETa) using Sentinel-2 images with a grid of agrometeorological data.
Usage
evapo_s2_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tem-
perature ("LST"), net radiation ("Rn_MJ"), Crop Coefficient ("kc") and Actual Evapotranspiration
(evapo).
kc_l8 Crop coefficient (ETa / ET0) using Landsat-8 images with single
agrometeorological data.
Description
Crop coefficient (ETa / ET0) using Landsat-8 images with single agrometeorological data.
Usage
kc_l8(doy, RG, Ta, a, b)
10 kc_l8t
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
kc_l8t Crop coefficient (ETa / ET0) using Landsat-8 images (including ther-
mal bands) with single agrometeorological data.
Description
Crop coefficient (ETa / ET0) using Landsat-8 images (including thermal bands) with single agrom-
eteorological data.
Usage
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
kc_l8t_grid 11
kc_l8t_grid Crop coefficient (ETa / ET0) using Landsat-8 images (including ther-
mal bands) with a grid of agrometeorological data.
Description
Crop coefficient (ETa / ET0) using Landsat-8 images (including thermal bands) with a grid of
agrometeorological data.
Usage
kc_l8t_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
kc_l8_grid Crop coefficient (ETa / ET0) using Landsat-8 images with a grid of
agrometeorological data.
Description
Crop coefficient (ETa / ET0) using Landsat-8 images with a grid of agrometeorological data.
Usage
kc_l8_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
12 kc_modis
kc_modis Crop coefficient (ETa / ET0) using MODIS with single agrometeoro-
logical data.
Description
Crop coefficient (ETa / ET0) using MODIS with single agrometeorological data.
Usage
kc_modis(doy, RG, Ta, a, b)
Arguments
doy is the Day of Year (DOY)
RG is the global solar radiation
Ta is the average air temperature
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
Examples
library(agriwater)
kc_modis_grid Crop coefficient (ETa / ET0) using MODIS with a grid of agrometeo-
rological data.
Description
Crop coefficient (ETa / ET0) using MODIS with a grid of agrometeorological data.
Usage
kc_modis_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
14 kc_s2_grid
kc_s2 Crop coefficient (ETa / ET0) using Sentinel-2 images with single
agrometeorological data.
Description
Crop coefficient (ETa / ET0) using Sentinel-2 images with single agrometeorological data.
Usage
kc_s2(doy, RG, Ta, a, b)
Arguments
doy is the Day of Year (DOY)
RG is the global solar radiation
Ta is the average air temperature
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
kc_s2_grid Crop coefficient (ETa / ET0) using Sentinel-2 images with a grid of
agrometeorological data.
Description
Crop coefficient (ETa / ET0) using Sentinel-2 images with a grid of agrometeorological data.
Usage
kc_s2_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Temper-
ature ("LST"), Crop Coefficient ("kc") and net radiation ("Rn_MJ").
radiation_l8 15
Description
Usage
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
Description
Energy balance using Landsat-8 images (including thermal bands) with single agrometeorological
data.
Usage
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
Description
Energy balance using Landsat-8 images (including thermal bands) with a grid of agrometeorological
data.
Usage
radiation_l8t_grid(doy, a, b)
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
radiation_l8_grid 17
Description
Energy balance using Landsat-8 images with a grid of agrometeorological data.
Usage
radiation_l8_grid(doy, a, b)
Arguments
doy is the Day of Year (DOY)
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
Description
Energy balance using Landsat-8 images with single agrometeorological data.
Usage
radiation_modis(doy, RG, Ta, ET0, a, b)
Arguments
doy is the Day of Year (DOY)
RG is the global solar radiation
Ta is the average air temperature
ET0 is the reference evapotranspiration
a is one of the regression coefficients of SAFER algorithm
b is one of the regression coefficients of SAFER algorithm
18 radiation_modis
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
Examples
library(agriwater)
wd <- tempdir()
setwd <- tempdir()
xy <- matrix(rnorm(100, mean = 0.07, sd = 0.01), 10, 10)
rast <- raster(xy)
extent(rast) <- c(-40.5,-40.45,-9.5,-9.45)
projection(rast) <- CRS("+proj=longlat +datum=WGS84")
writeRaster(rast, file.path(wd, "B2"),format = "GTiff", overwrite=TRUE)
xy <- matrix(rnorm(100, mean = 0.05, sd = 0.015),10, 10)
rast <- raster(xy)
extent(rast) <- c(-40.5,-40.45,-9.5,-9.45)
projection(rast) <- CRS("+proj=longlat +datum=WGS84")
writeRaster(rast, file.path(wd, "B1"),format = "GTiff", overwrite=TRUE)
Description
Usage
radiation_modis_grid(doy, a, b)
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
Description
Usage
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
Description
Usage
radiation_s2_grid(doy, a, b)
Arguments
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24"), NDVI, Surface Tempera-
ture ("LST"), Crop Coefficient ("kc"), Actual Evapotranspiration (evapo), latent heat flux "LE_MJ"),
net radiation ("Rn_MJ"), ground heat flux ("G_MJ") and the sensible heat flux ("H_MJ").
reflectance_l8 21
Description
Reflectancies from Landsat-8 images.
Usage
reflectance_l8(doy)
Arguments
doy is the Day of Year (DOY)
Value
It returns in raster format (.tif) the Surface Albedo at 24h scale ("Alb_24").
Index
albedo_l8, 2
albedo_modis, 3
albedo_s2, 3
evapo_l8, 4
evapo_l8_grid, 6
evapo_l8t, 4
evapo_l8t_grid, 5
evapo_modis, 6
evapo_modis_grid, 8
evapo_s2, 8
evapo_s2_grid, 9
kc_l8, 9
kc_l8_grid, 11
kc_l8t, 10
kc_l8t_grid, 11
kc_modis, 12
kc_modis_grid, 13
kc_s2, 14
kc_s2_grid, 14
radiation_l8, 15
radiation_l8_grid, 17
radiation_l8t, 15
radiation_l8t_grid, 16
radiation_modis, 17
radiation_modis_grid, 19
radiation_s2, 19
radiation_s2_grid, 20
reflectance_l8, 21
22