Learn R Programming

geotopbricks (version 1.5.8.2)

getProjection: It reads the CRS metadata utilzed in a GEOtop Simulation

Description

It reads the CRS metadata utilzed in a GEOtop Simulation

Usage

getProjection(x, cond = TRUE, ...)

Value

A string corresponding the projection and CRS if the argument cond is TRUE.

Arguments

x

name and full path of the file containimg CRS information

cond

logical value. If FALSE the function returns NA. Default is TRUE.

...

futher arguments

Examples

Run this code
library(geotopbricks)

wpath <- 'https://raw.githubusercontent.com/ecor/geotopbricks_doc/master/simulations/idroclim_test1'
## URL path  (RAW VERSION) of 
## https://github.com/ecor/geotopbricks_doc/tree/master/simulations/idroclim_test1
if (FALSE) {

x <- paste(wpath,"geotop.proj",sep="/")


crs <- getProjection(x)
}

Run the code above in your browser using DataLab