sh                   package:SoPhy                   R Documentation

_S_a_m_p_l_e _c_o_d_e

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     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)

_A_r_g_u_m_e_n_t_s:

   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. 

_D_e_t_a_i_l_s:

     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).

_V_a_l_u_e:

     'NULL'

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

_A_u_t_h_o_r(_s):

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

_R_e_f_e_r_e_n_c_e_s:

     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.

_S_e_e _A_l_s_o:

     'SoPhy', 'plotFlow2d', 'plotFlow3d'

_E_x_a_m_p_l_e_s:

       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)

