get2Drayblox              package:RTOMO              R Documentation

_G_e_t _2_D _b_l_o_c_k _f_r_o_m _m_o_d_e_l _d_e_s_c_r_i_p_t_i_o_n _a_n_d _r_a_y _p_a_t_h

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

     Uses x-y coordinates of points to determine the indecies and
     lengths of rays penetrating the model.

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

     get2Drayblox(x1, y1, x2, y2, xo, yo, NODES = FALSE, PLOT = FALSE)

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

      x1: x coordinate of starting block

      y1: y coordinate of starting block

      x2: x coordinate of ending block

      y2: y coordinate of ending block

      xo: x block divisions

      yo: y block divisions

   NODES: logical, whether xo, yo ae nodes or edges

    PLOT: logical, TRUE=plot ray

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

      ix: x index

      iy: y index

      iz: layer index

   lengs: length in each block

    mids: midpoints of sections

   nodes: nodes of a 2D vector representation of layer

      LX: x-divisions

      LY: y-divisions

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

     Jonathan M. Lees<jonathan.lees@unc.edu>

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

     get3Drayblox

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

     xo = seq(from=0.5, by=1, length=100)
     yo = seq(from=0.5, by=1, length=100)

     IYZ = get2Drayblox(10, 4, 64, 50, xo, yo , NODES=FALSE, PLOT=FALSE)

