Learn R Programming

synoptReg (version 0.2.2)

raster_clas: Raster conversion of the Synoptic Classification

Description

This function converts the dataframe of the synoptic classification data into a Raster Stack format.

Usage

raster_clas(longitude, latitude, grouped_data)

Arguments

longitude

Numeric vector containing longitudes

latitude

Numeric vector containing latitudes

grouped_data

Data frame. S-mode data frame containing an integer column with the circulation types. i.e. output obtained from synoptclas function.

Value

a Raster Stack containing the circulation types.

Examples

Run this code
# NOT RUN {
# Load data (mslp)
data(mslp)
# Converting our data, but without modifying time period
smode_mslp <- tidy_cuttime_nc(mslp)
# classification performance
smode_clas <- synoptclas(smode_mslp$smode_data, ncomp = 6)
# convert all the precipitation maps based on CT to a raster stack
raster_clas(longitude = mslp$lon, latitude = mslp$lat,
            grouped_data = smode_clas$grouped_data)

# }

Run the code above in your browser using DataLab