reprojectASCII: Reproject ASCII raster file

View source: R/reprojectASCII.R

reprojectASCIIR Documentation

Reproject ASCII raster file

Description

Reads and reprojects an ASCII raster file following the data acquisition with ClimateNA (or any alternative source).

Usage

reprojectASCII(file, direc = getwd(), NAflag = -9999, projection = "EPSG:4326")

Arguments

file

ASCII file that requires reprojection

direc

The output directory.

NAflag

NA value within the raster to mask when reprojecting.

projection

The output projection in which the ASCII input requires to be reprojected to. The default value is "EPSG:4326"

Value

Same ASCII file reprojected

Author(s)

Michael Burnett - UBC Faculty of Forestry

Examples

files <- list.files(pattern='*asc$')
for(i in files){
  reprojectASCII(i,NAflag = 32647)
}

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