Compute_ModisLST: Compute MODIS Land Surface Temperature

Description Usage Arguments Value Examples

View source: R/Compute_ModisLST.R

Description

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.

Usage

1
2
Compute_ModisLST(path_to_tif, path_to_shapefiles, path_mod_shapefile,
  aggregate)

Arguments

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

Value

Dataframe with new columns appended with Land Surface Temperature in Celcius and modified shapefiles.

Examples

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")

piyush96/LSTModis documentation built on May 21, 2019, 9:22 a.m.