View source: R/importSurferGrd.R
importSurferGrd | R Documentation |
A function to import data from Surfer text grid file.
importSurferGrd(fname, k = 1000, destaggering = FALSE)
fname |
Surfer grd file to be imported |
k |
Factor to apply to x and y coordinates |
destaggering |
Boolean variable to apply or not destaggering. |
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.
A dataset with x, y and z columns is returned.
importRaster()
, importADSOBIN()
## Not run:
# 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.