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

Improve dfm modelbuilder workflow #1

Open
16 of 27 tasks
veenstrajelmer opened this issue Jan 10, 2024 · 0 comments
Open
16 of 27 tasks

Improve dfm modelbuilder workflow #1

veenstrajelmer opened this issue Jan 10, 2024 · 0 comments

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Jan 10, 2024

Initialize service:

  • Login to EDITO datalab: https://datalab.digitaltwinocean.edito.eu/
  • Service Catalog >> Ocean modelling >> Dfm-modelbuilder >> Launch
  • Launch
  • this will initialize a Python environment with the JupyterLab IDE and dfm_tools installed

Run the modelbuilder:

  • Open modelbuilder_example.ipynb
  • optionally, update spatial/temporal extent in block [2]
  • optionally, adjust the min/max grid resolution with dxy in block [2] and min_edge_size in block [5].
  • restart kernel and run all cells by clicking image
  • generates a folder with D-FlowFM model input files for the desired area/period
  • the last cell of the notebook uploads the model to your S3 bucket

run the D-FlowFM model with another service:

  • make sure you have the "Vietnam_model" folder in your s3 bucket (including run_docker.sh)
  • go to the EDITO Service Catalog
  • Process Catalog >> Ocean modelling >> Delft3d-fm >> Launch (is this still the correct service? Delft3dfm-demo dissapeared)
  • After approximately 3 minutes, this results in a DFM_OUTPUT_Vietnam folder in your s3 bucket

Remaining issues (helm chart):

Remaining issues (init.sh and extend_modelbuilder_notebook.py)

  • in init.sh: after copying ipynb, add cell that calls a to be created upload_model_to_s3(dir_model) function and supplying the correct foldername/dir_model to that function
  • ipynb/py files are downloaded twice. Seems like init script is executed twice, which might be a bug in edito
  • clear notebook output with jupyter nbconvert --clear-output --inplace my_notebook.ipynb
  • stretchtype is manually to zero in extra notebook cell until mdu stretchtype should be -1 or 0 instead of 1 Deltares/HYDROLIB-core#691 is fixed
  • install from pypi instead of main branch (do this when the modelbuilder is complete)

Remaining issues (modelbuilder, notebook and run_docker.sh):

Remaining issues (s3 upload):

Remaining issues (running delft3dfm):

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

No branches or pull requests

1 participant