createCityProcessor: Create closure to identify and aggregate heat waves

Description Usage Arguments Value Note

Description

This function creates a closure that returns a dataframe with the identified heat waves and heat wave characteristics for a given city for the specified projection period, as generated by the createHwDataframe function.

Usage

1

Arguments

global

An list object created by gen_hw_set that includes user specifications (e.g., the path to the output directory, the path to the input climate projections, the dataframe with city locations).

Value

This function creates a closure that takes inputs of threshold, ensembleSeries, and custom and will find and characterize all heat waves in all cities for a given ensemble. See the help file for formHwFrame for more information on the format of the dataframe created by this closure.

Note

The closure encapsulates an incrementer varaible and advances it with every call. This variable is used to index into the cities vector from the global object passed into this function.



Search within the futureheatwaves package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.