A function to import data from Surfer text grid file.
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.
Examples
if (FALSE) {
# 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)
}