CSVtoTIFF: Rasterize Climate data from ClimateNA

View source: R/CSVtoTIFF.R

CSVtoTIFFR Documentation

Rasterize Climate data from ClimateNA

Description

This function uses a CSV input to produce a raster file from a desired climate column based on the longitude and latitude of that point.

Usage

CSVtoTIFF(
  Longitude,
  Latitude,
  Value,
  filename,
  crsref = "+proj=longlat +datum=WGS84",
  outdir = getwd()
)

Arguments

Longitude

The data frame column including the Longitudinal data

Latitude

The data frame column including the Latitudinal data

Value

numeric. The data frame column including the raster pixel values

filename

character. Output file name. Must include file type (example ".tif")

crsref

character. Description of the Coordinate Reference System (map projection) in PROJ.4, WKT or authority:code notation

outdir

character. Output directory for the raster file

Value

A raster representative of the climate data acquired through ClimateNA

Author(s)

Michael Burnett - UBC Faculty of Forestry

Examples

#data <- read.csv('climateNA_monthlyDataOutput.csv')
#CSVtoTIFF(data$Longitude,data$Latitude,data$Tmin,'annual_Tmin.tif')


Silva21-irss/silvR21 documentation built on Sept. 14, 2022, 7:55 a.m.