Skip to content

[com4FlowPy]: Selective calculation of Model Output Rasters #1064

@ahuber-bfw

Description

@ahuber-bfw

We now have the outputFiles option in [PATHS] in the (local_)com4FlowPyCfg.ini, but up to now only use it in com4FlowPy.py -> mergeAndWriteResults() to select which result-Rasters are finally written to disk as .tif or .asc files.

However, regardless of the options provided in outputFiles we still do all the calculations for all possible result rasters (i.e. we calculate routFluxSum, depFluxSum and everything else, even if we don't write it to disk later).

  • Potentially we can save some CPU-time/RAM/HD-Space by only initializing and calculating the result arrays, that are specified in [PATHS] 'outputFiles' option -- e.g. by passing the option to calculation() and return None for all the arrays, that are not specified in the .ini

This will be increasingly important (1) if we plan to introduce additional output rasters in the future and (2) for any regional scale application

Metadata

Metadata

Labels

enhancementNew feature or requestflowPyDevIdeas for future development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions