readASC: read an ascii-raster-file

View source: R/readASC.r

readASCR Documentation

read an ascii-raster-file

Description

reads an asc raster file and returns the resulting raster

Usage

readASC(x, CoS = NULL, use.raster = TRUE)

Arguments

x

character string pointing to a asc file

use.raster

logical. Should the file be returned as raster or as matrix?

Cos

(optional) character string in the format provided by proj4string

Details

If CoS is provided, the resulting raster is projected using the given coordinate system. If not, an unprojected raster is returned.

Value

if use.raster == TRUE a raster object is returned, else a matrix

Author(s)

Simon Frey


freysimon/ZAMGR documentation built on Nov. 3, 2023, 9:44 p.m.