changliao1025 / hexwatershed

The C++ backend of the HexWatershed a mesh independent flow direction model for hydrologic models
Other
3 stars 0 forks source link

Domain or watershed data operation #7

Open changliao1025 opened 2 years ago

changliao1025 commented 2 years ago

Some algorithms are better handled at watershed scale. However, the model is expected to run with multiple watersheds. As a result, some redesign may be needed.

changliao1025 commented 2 years ago

Depression filling must be domain scale.

changliao1025 commented 2 years ago

After compset_calculate_flow_accumulation, there are possibly multiple watersheds. Starting from this point, all the remaining algorithms should consider multiple watersheds.

changliao1025 commented 2 years ago

It is also possible that some cells does not belong to any watershed, therefore it is desired to use the domain container so the program won't miss any cell.

changliao1025 commented 2 years ago

Once all the cells are processed, we can then group them into watersheds, and output individual watershed as well, just like the pyflowline component.

changliao1025 commented 2 years ago

Stream segment topology information maybe added later. And the program needs to sync both domain-based and watershed-based.

changliao1025 commented 2 years ago

compset_find_index_by_cellid can only be used at domain.