importSurferGrd {simulariatools} | R Documentation |
Import Grid file
Description
A function to import data from Surfer text grid file.
Usage
importSurferGrd(fname, k = 1000, destaggering = FALSE)
Arguments
fname |
Surfer grd file to be imported |
k |
Factor to apply to x and y coordinates |
destaggering |
Boolean variable to apply or not destaggering. |
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.
Value
A dataset with x, y and z columns is returned.
See Also
importRaster()
, importADSOBIN()
Examples
## 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)
[Package simulariatools version 2.5.1 Index]