nsrdb.all_sky.all_sky.all_sky_h5_parallel

all_sky_h5_parallel(f_source, rows=slice(None, None, None), cols=slice(None, None, None), col_chunk=10, max_workers=None, disc_on=False)[source]

Run all-sky from .h5 files.

Parameters:
  • f_source (str) – File path to source data file containing all sky inputs. Can be a single h5 file or MultiFileResource with format: /dir/prefix*suffix.h5

  • rows (slice) – Subset of rows to run.

  • cols (slice) – Subset of columns to run.

  • col_chunk (int) – Number of columns to process on a single core. Larger col_chunk will increase the REST2 memory spike substantially, but will be significantly faster.

  • max_workers (int | None) – Number of workers to run in parallel.

  • disc_on (bool) – Compute cloudy sky dni with disc model or farms-dni model.

Returns:

output (dict) – Namespace of all-sky irradiance output variables with the following keys:

’clearsky_dhi’ ‘clearsky_dni’ ‘clearsky_ghi’ ‘dhi’ ‘dni’ ‘ghi’ ‘fill_flag’