Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct the graph model from geometry files 👍 #14

Closed
2 tasks done
Tracked by #19
xldeltares opened this issue Jul 11, 2023 · 3 comments · Fixed by #37
Closed
2 tasks done
Tracked by #19

Construct the graph model from geometry files 👍 #14

xldeltares opened this issue Jul 11, 2023 · 3 comments · Fixed by #37

Comments

@xldeltares
Copy link
Owner

xldeltares commented Jul 11, 2023

construct the graph with node and edges attributes representing the physical features of the network.

There might be need to update hydromt-delft3dfm to get necessary physical parameters, e.g. diameters, slope and friction of the pipes, size and depths of the manholes and area and slope of the subcatchments.
There might be need to refactor previous scripts.
See also https://github.com/xldeltares/hydrolib-nowcasting/tree/master

@xldeltares xldeltares changed the title Construct the graph model from geometry files Construct the graph model from geometry files 👍 Jul 18, 2023
@xldeltares
Copy link
Owner Author

model configuration (ref: neural hydrology):

# --- Model configuration --------------------------------------------------------------------------

# base model type [lstm, ealstm, cudalstm, embcudalstm, mtslstm]
# (has to match the if statement in modelzoo/__init__.py)
model: cudalstm

# prediction head [regression]. Define the head specific parameters below
head: regression

# ----> Regression settings <----
output_activation: linear

# ----> General settings <----

# Number of cell states of the LSTM
hidden_size: 20

# Initial bias value of the forget gate
initial_forget_bias: 3

# Dropout applied to the output of the LSTM
output_dropout: 0.4

@xldeltares
Copy link
Owner Author

xldeltares commented Jul 18, 2023

# --- Network configurations --------------------------------------------------------------------------

# which data set to use [delft3dfm, infoworks]
source: delft3dfm

# Path to data set root
source_dir: ../../network/Eindhoven

# network component [edges, nodes]
# can be either a list or a single
edges: 
  - pipe
  - pump

nodes: 
  - manholes
  - weirs

# which columns to compute
target_variables:
  - Q(mm/d)
  - depth(m)
  - T(/yr)

# clip negative values to zero for all variables listed below. Should be a list, even for single variables.
clip_targets_to_zero:
  - Q

@xldeltares xldeltares linked a pull request Jul 26, 2023 that will close this issue
@xldeltares
Copy link
Owner Author

Currently using hydrolib-nowcasting. So far it works. but requires refactoring. try to remove the dependencies on different workflows and call from hydromt-delft3dfm directly.
maybe a todo for later: maintain of network module to latest hydromt --> maybe good to do that in global vector roads work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant