CSVtoTIFF | R Documentation |
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.
CSVtoTIFF( Longitude, Latitude, Value, filename, crsref = "+proj=longlat +datum=WGS84", outdir = getwd() )
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 |
A raster representative of the climate data acquired through ClimateNA
Michael Burnett - UBC Faculty of Forestry
#data <- read.csv('climateNA_monthlyDataOutput.csv') #CSVtoTIFF(data$Longitude,data$Latitude,data$Tmin,'annual_Tmin.tif')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.