sh {SoPhy} | R Documentation

## Sample code

### Description

The functions provide the code for the figures and simulations in the publications of Schlather and Huwe

### Usage

    sh.jch(input=NULL, dev=2, pspath="./", txt.result.dir = "txt/",
           simu.path="simu/", standard.method = "fix.m",
            final=TRUE, PrintLevel=0, bw=TRUE, readlines=TRUE)
    sh.jh(input=NULL, dev=2, pspath="./", final=TRUE, PrintLevel=0,
           readlines=TRUE, low.resolution=TRUE, bw=TRUE)

### Arguments

`input` | vector of values for automatic choice of the submenues
`dev` | device, see `Dev`
`pspath` | path used for all postscript files in `sh.jh` and for all postsript files in `sh.jch` except those based on the extended simulation study
`txt.result.dir` | path used for non-graphic results
`simu.path` | path used for the postscript files based on the extended simulation study
`standard.method` | standard `method` for estimating the `risk.index`
`final` | logical. If `TRUE` all the parameters are identical to those used in the papers; then at least 1GB of memory on a Linux machine is needed. If `FALSE` some few parameters are changed so that the simulations run faster and less memory is needed.
`PrintLevel` | If `PrintLevel`>1 some information on the course of the algorithm is printed
`bw` | logical. if `TRUE` then all graphics will be printed in black and white, only.
`readlines` | logical. Only used if `is.numeric(dev)`. If `readlines=FALSE` then the system waits a second before the next plot is calculated or shown. Otherwise the system waits for return.
`low.resolution` | logical. Figures of low resolution are created. This takes time, but reduces size by about factor 10. This feature only works on unix/linux systems.

### Details

Additionally to the figures in Schlather and Huwe (2005a,b), sh.jh allows for the simulation of profiles given in Crestana and Posadas (1998) and Schwartz et al. (1999).

### Value

`NULL`
Depending on the value of `dev`, see `Dev`, postscript or pdf files are created.

### Author(s)

Martin Schlather, schlath@hsu-hh.de http://www.unibw-hamburg.de/WWEB/math/schlath/schlather.html

### References

Schlather, M. and Huwe, B. (2005a) A stochastic model for 3-dimensional flow patterns in dye tracer experiments. J. Hydrol. 310, 17-27.

Schlather, M. and Huwe, B. (2005b) A risk index for characterising flow pattern in soils using dye tracer distributions. J. Contam. Hydrol. 79, to appear.

Crestana, S. and Posadas, A.N.D. (1998) k 2-d and 3-d fingering in unsaturated soils investigated by fractal analysis, invasion percolation modeling and non-destructive image processing. In Baveye, P., Parlange, J.Y., and Stewart, B.A., editors, Fractals in Soil Science. Boca Raton: CRC Press.

Schwartz, R.C., McInnes, K.J., Juo, A.S.R., and Cervantes, C.E. (1999) The vertical distribution of a dye tracer in a layered soil. Soil Sci., 164, 561–573.

### See Also

`SoPhy`, `plotFlow2d`, `plotFlow3d`

### Examples

      final <- FALSE # final <- TRUE
      printlevel <- 1 + !interactive()
      sh.jh(input=if (!interactive()) c(1, 2, 5, 0), final=final,
           Print=printlevel)
      sh.jch(input=if (!interactive()) c(1:14, 0), final=final,
             Print=printlevel)

[Package SoPhy version 1.0.28 Index]