A function to import data from Surfer text grid file.
Details
Surfer grd file is imported and an array of x, y, z columns is returned X and y coordinates can be converted from km to m (default k=1000) and vice versa. Destaggering is applied by default.
Examples
if (FALSE) { # \dontrun{
# Import Surfer Grd file and convert coordinates from km to m,
# with destaggering
mydata <- importSurferGrd("/path_to_file/filename.grd", k = 1000)
# Import Surfer Grd file and do not convert coordinates, without destaggering
mydata <- importSurferGrd(
"path_to_file/filename.grd",
k = 1,
destaggering = FALSE
)
} # }
