rwgen.RainfallModel.update_simulation_config
- RainfallModel.update_simulation_config(default_block_size=1000, check_block_size=True, minimum_block_size=10, check_available_memory=True, maximum_memory_percentage=75, block_subset_size=50, spatial_buffer_factor=15)
Update default configuration settings for simulation.
- Parameters:
default_block_size (int) – Number of years (maximum) to simulate at once to avoid memory issues.
check_block_size (bool) – Flag to indicate whether code should automatically check whether the default_block_size (probably) needs to be reduced to avoid memory issues (see
check_available_memory
andmaximum_memory_percentage
).minimum_block_size (int) – Minimum number of years to simulate at once.
check_available_memory (bool) – Flag to indicate whether current system memory usage should be checked to limit the maximum amount of memory assigned in simulation.
maximum_memory_percentage (int or float) – Maximum percentage of system memory that may be assigned by a simulation. If estimated memory usage exceeds this percentage then a smaller block size will be tried until the
minimum_block_size
is reached.block_subset_size (int) – Block subset size (number of years) for internal use in discretisation (as it is much faster to discretise subsets of each block).
spatial_buffer_factor (float) – Number of standard deviations of raincell radius distribution to use with buffer method of spatial raincell simulation.