patternIndex {clim.pact} | R Documentation

## Create a Index for a spatial pattern

### Description

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.

### Usage

    patternIndex(map,field,anomaly=TRUE)

### Arguments

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

### Value

list containing the fields:

index | index
yy | years
mm | months
dd | days

### Author(s)

R.E. Benestad

### Examples

    ## Not run:
    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)
    ## End(Not run)

[Package Contents]