getXYcoords            package:adehabitat            R Documentation

_C_o_m_p_u_t_e_s _t_h_e _X _a_n_d _Y _C_o_o_r_d_i_n_a_t_e_s _o_f _t_h_e _P_i_x_e_l_s _o_f _a _R_a_s_t_e_r _M_a_p

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

     'getXYcoords' computes the geographical coordinates of the rows
     and columns of pixels of a raster map.

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

     getXYcoords(w)

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

       w: an object of class 'asc', 'kasc', 'sahrlocs', or 'mapattr'.

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

     Returns a list with two components: 

       x: the x coordinates of the columns of pixels of the map

       y: the y coordinates of the rows of pixels of the map

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

     Clment Calenge calenge@biomserv.univ-lyon1.fr

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

     'import.asc', 'as.kasc', 'as.sahrlocs', 'storemapattr'

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

     data(puechabon)
     (elev <- getkasc(puechabon$kasc, "Elevation"))
     (coords <- getXYcoords(elev))
     nrow(elev) == length(coords$x)
     ncol(elev) == length(coords$y)

