extended_jc: extended_jc

Description Usage Arguments Value References See Also Examples

Description

Gets daily classification of weather types at every grid-point over the map or selected area of interest according to the Jenkison and Collison scheme.

Usage

1
extended_jc(mslp, loni, lati, times, gale = FALSE, num_cores = 2)

Arguments

mslp

3-Dimensional array ([loni,lati,time]) with mean sea level pressure in Pa.

loni

Array with longitude values.

lati

Array with latitude values.

times

Array with the dates used.

gale

Logial. If TRUE, the function returns also Gale days.

num_cores

Number of cores (2 by default).

Value

A list with two objects:

References

Otero, N., Sillmann, J. & Butler, T. Assessment of an extended version of the Jenkinson–Collison classification on CMIP5 models over Europe Climate Dynamics. https://doi.org/10.1007/s00382-017-3705-y

See Also

classification_jc calculate_cwt

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# Load data
data(press)
# Get coordinates
longitudes <- press$loni
latitudes  <- press$lati
times      <- press$dates

# Example when the classification is restricted to an area
# Select longitudes and latitudes within the European domain: -10W,40E, 40N,70N
ilon  <- which(longitudes>(-10)&longitudes<40)
loni  <- longitudes[ilon]
ilat  <- which(latitudes>40&latitudes<70)
lati  <- latitudes[ilat]
cwtEU <- extended_jc(press$msl[ilon,ilat,], loni, lati, times, gale=FALSE, num_cores=2)
 ## Not run: 
# Not run
# This is a long running example
# Get the classification for the whole map, all longitudes and latitudes
cwtGlobal <- extended_jc(press$msl, longitudes, latitudes, times, gale=FALSE, num_cores=2)

## End(Not run)

jcext documentation built on May 1, 2019, 10:27 p.m.

Related to extended_jc in jcext...