tryToGet_ClimDB: Organizes the calls (in parallel) which obtain specified...

Description Usage Arguments Details

View source: R/ExtractData_ClimateDownscaling.R

Description

This function assumes that a whole bunch of global variables exist and contain appropriate values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
tryToGet_ClimDB(
  ids_ToDo,
  clim_source,
  use_CF,
  use_NEX,
  climDB_meta,
  climDB_files,
  reqGCMs,
  reqRCPsPerGCM,
  reqDownscalingsPerGCM,
  locations,
  getYears,
  assocYears,
  project_paths,
  dir_failed,
  fdbWeather,
  climate.ambient,
  dbW_compression_type,
  sim_time,
  seeds_DS,
  sim_scens,
  resume,
  verbose,
  print.debug,
  seed = NA
)

Arguments

seed

A seed set, NULL, or NA. NA will not affect the state of the RNG; NULL will re-initialize the RNG; and all other values are passed to set.seed.

Details

The daily extractions parallelize over GCM x scenario combinations, i.e., data for all locations are extracted for one value of GCM x scenario at a time. This is good if file handling is slow and memory is not limiting.

The monthly extractions parallelize over GCM x locations combinations, i.e., data for one location is extracted for all scenarios of one GCM at a time. This is good if file handling is fast and memory is limiting.


Burke-Lauenroth-Lab/rSFSW2 documentation built on Aug. 14, 2020, 5:20 p.m.