The Ts package provides tools to calculate the Surface Temperature (Ts) from raster data.
It uses albedo, NDVI, and air temperature (Ta) to generate the Ts raster.
- The input air temperature raster (
Ta) must be in Kelvin (K). - The resulting surface temperature raster (
Ts) will be in the same unit as Ta.
-
Input rasters (
albedo,ndvi,Ta) do not need to have the same CRS or extent, the function will:- Align the CRS of all rasters to that of
albedo. - Resample
ndviandTato the resolution ofalbedo. - Crop all rasters to the intersection of their extents.
- Align the CRS of all rasters to that of
-
For meaningful results, input rasters should ideally cover roughly the same area.
You can install the development version of Ts directly from your local folder:
# Install from local directory
devtools::install("path/to/Ts")