patternIndex            package:clim.pact            R Documentation

_C_r_e_a_t_e _a _I_n_d_e_x _f_o_r _a _s_p_a_t_i_a_l _p_a_t_t_e_r_n

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

     Create a Index for a spatial pattern identified from a map object,
     eg `link{corField}', `link{mapField}', or `link{composite.field}'.
     The index is computed using a spatial correlation.

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

     patternIndex(map,field,anomaly=TRUE)

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

     map: Map describing spatial structure.

   field: Field in which the pattern is searched.

 anomaly: If true, compute and use the anomalies of the given field.

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

     list containing the fields:

       index  index
          yy  years
          mm  months
          dd  days

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

     R.E. Benestad

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

     sst <- retrieve.nc("DNMI_sst.nc")
     data(oslo.t2m)
     csst <- composite.field(sst,oslo.t2m)
     patternIndex(csst,sst,anomaly=FALSE)

     lsst<-mapField(sst)
     patternIndex(lsst,sst)

