Description Usage Arguments Value Examples
View source: R/Compute_ModisLST.R
Function automates the computation of MODIS Land Surface Temperature.It creates Shapefiles with Temperature columns appended and it is stored at the path provided by the user.This requires the user to download the raster files first. The user must use Download_tif to download the required raster files.
1 2 | Compute_ModisLST(path_to_tif, path_to_shapefiles, path_mod_shapefile,
aggregate)
|
path_to_tif |
Character String; Path to the folder that contains the tif files |
path_to_shapefiles |
Character String; or SpatialPolygonsDataFrames object; The path to the shapefile (.shp) or the shapefile object |
path_mod_shapefile |
Character String; The path where the user wants the Modified Shapefile to be stored |
aggregate |
Character String; Aggregate values 1. daily 2. weekly 3. monthly 4. yearly |
Dataframe with new columns appended with Land Surface Temperature in Celcius and modified shapefiles.
1 2 3 4 5 6 7 8 | shape_dsn <- system.file("vectors", package = "LSTModis")[1]
tif_dsn <- system.file("pictures", package = "LSTModis")[1]
Shapefile <- rgdal::readOGR(dsn=shape_dsn, layer="Shapefile")
pwd <- getwd()
df<-Compute_ModisLST(path_to_tif = tif_dsn,
path_to_shapefiles = Shapefile,
path_mod_shapefile = pwd,
aggregate = "weekly")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.