clim_stats_ar5: Compute climate statistics

Description Usage Arguments Details Examples

Description

Compute climate statistics from spatial probability distributions.

Usage

1
2
clim_stats_ar5(type = "monthly", in_dir, out_dir, region_group,
  mc.cores = 32)

Arguments

type

character, "monthly" or "seasonal".

in_dir

input directory, e.g. snapdef()$ar5dir_dist_monthly or snapdef()$ar5dir_dist_seasonal. See details.

out_dir

output directory, e.g. one of the snapdef()$ar5dir_dist_stats entries. See details.

region_group

character, optional, to split into smaller file batches. See details.

mc.cores

number of CPUs when processing years in parallel. Defaults to 32 assuming Atlas compute node context.

Details

For efficiency, this function operates on outputs from clim_dist_monthly and clim_dist_seasonal. It does not need to redundantly access source downscaled geotiffs. This function is specific to AR5 outputs in the current implementation.

The example in_dir and out_dir shown are assumed if these arguments are missing. This is for convenience and they will adjust automatically based on type. If providing alternate directories, make sure to specify in accordance with your type.

Use region_group to optionally specify a region group file identifier. This will be used for pattern matching when listing files inside in_dir. This is helpful when there are many files, such that there could be RAM or time limitations.

Examples

1
2
3
4
5
## Not run: 
clim_stats_ar5(type = "monthly")
clim_stats_ar5(type = "seasonal")

## End(Not run)

leonawicz/snapprep documentation built on May 14, 2019, 8:54 a.m.