npsat.WriteGridData: npsat.WriteGridData writes data values for gridded...

View source: R/npsat.R

npsat.WriteGridDataR Documentation

npsat.WriteGridData writes data values for gridded interpolation

Description

npsat.WriteGridData writes data values for gridded interpolation

Usage

npsat.WriteGridData(filename, data, method, axisFiles)

Arguments

filename

This is the name of the file

data

The data to print. this is either an 1D vector, a 2D matrix or 3D array

method

METHOD is LINEAR or NEAREST

axisFiles

is the names of the files that describe the axis objects.

Value

just prints a file

Examples

2D Example:
N = 20
P <- peaks(v = N)
x <- 10*P$X[1, ]
y <- 10*P$Y[, 1]
orig <- -30
dx <- diff(x)[1]
writeAxis("peakAxis_cnst.tmp", c(orig, dx, N), "CONST")
writeData("peak_data_cnst_p.tmp", data = P$Z, mode = "POINT", "LINEAR",
           axisFiles = c("Rgridinterp/peakAxis_cnst.tmp", "Rgridinterp/peakAxis_cnst.tmp"))
Note that we pass as many axisFiles as needed. In this example the x and y axis are identical so we pass the same file

UCD-GW-Nitrate/gwtools documentation built on April 5, 2025, 5:01 p.m.