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

DSD installation guide #585

Closed
4 tasks done
veenstrajelmer opened this issue Oct 13, 2023 · 0 comments
Closed
4 tasks done

DSD installation guide #585

veenstrajelmer opened this issue Oct 13, 2023 · 0 comments

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Oct 13, 2023

Installation guide 2024

This installation guide prepares you for one of the breakout sessions of the Delft3D User Days - Day 1 about "Automated modelbuilding and postprocessing: Delft3D FM 1D2D and 2D3D models". In this session we will do some hands-on work with Python. The below installation guide provides you with a Python environment called dsd_env that contains the packages dfm_tools and hydromt_delft3dfm including all their dependencies. With this environment you can run all the example notebooks provided for this breakout session. You can also use the same environment for the breakout session "Deep-dive in pre- and postprocessing", since it also contains the packages HYDROLIB-core and xugrid. For those who were also present in 2023, the contents of the breakout sessions are very similar this year. Although, you can still attend if you want to know the latest updates (both robustness and functionality improvements) and you can ask any follow-up questions you may have.

Installation of Python environment

  • Download Miniforge3 from the miniforge github and install it with the recommended settings.
  • Open Miniforge Prompt
  • conda create --name dsd_env python=3.11 git -c conda-forge -y (python 3.9 or 3.10 or 3.12 are also fine, git is required to download the course materials)
  • conda activate dsd_env
  • python -m pip install dfm_tools[examples] hydromt_delft3dfm[examples] (the latest versions are required, so 0.31.0 and 0.3.0)

Download course materials from github
Execute the following code block from the command line in a folder where you'd like to download the course materials to. Make sure you have activated the dsd_env environment before you do so:

mkdir dsd_delft3d_python_coursematerials
cd dsd_delft3d_python_coursematerials
curl https://codeload.github.com/deltares/hydromt_delft3dfm/tar.gz/main | tar -xz --strip=1 hydromt_delft3dfm-main/examples
ren examples hydromt_delft3dfm
curl https://codeload.github.com/deltares/dfm_tools/tar.gz/main | tar -xz --strip=2 dfm_tools-main/docs/notebooks
ren notebooks dfm_tools

You can also find all course materials online:

Register to retrieve CMEMS and ECMWF/CDS data (for dfm_tools modelbuilder)

  • We will make use of publicly available data from Copernicus Programme of the European Union. To access this data you need to make two accounts at Copernicus Marine Service for CMEMS data and the ECMWF Climate Data Store for ERA5 data.
  • Do not forget to accept the license agreements, for ECMWF also the one on this page
  • You will be prompted for the CMEMS credentials and CDS/ECMWF apikey by the dfm_tools 2D3D modelbuilder notebook.

Doing the python exercises

  • Open a command line in the folder where you downloaded the course materials: cd dsd_delft3d_python_coursematerials
  • conda activate dsd_env
  • Launch jupyter with: python -m jupyter notebook
  • Open the notebook you want to work in and run it with SHIFT+ENTER or press the play button in the toolbar above

Installation of DeltaShell GUI (Delft3D FM Suite) (optional)

Installation of Open Earth Tools (OET) for MATLAB (optional)

Additional info for organizers

  • Presentations are available in: n:\Teams\DSD\DSD-INT 2024 - Delft Software Days\1.2 Delft3D User Days\Break-out sessions\1. Modelbuilding and postprocessing
  • In 2024 the msi/GUI is provided via the Deltares download portal (see link above), the course materials can be downloaded directly from Github (see above). Alternatively, download the latest course materials before the course and add them to course materials zipfile on the download portal.
  • Edward copy the contents of this issue in an email to the participants, including a license file as attachment.
  • Prepare slide+pitch to promote the breakout session during the DSD morning program
  • Reconsider planning in overview_slides.pptx, there is again 1.5+1=2.5 hours available
  • ERA5 download takes ages (also with new CDS, at 27-9-2024). Check this again in a few weeks and maybe ask participants to comment ERA5.
  • Streamline docs for DSD hydromt_delft3dfm#198
  • Make sure all participants have wifi (guest) access before the breakout session starts
  • Check the dsd_env environment:
    • run dfm_tools example notebooks
    • test/run model created by dfm_tools modelbuilder notebook >> runs in interacter and via batfile, but crashes when running in Delft3D FM Suite 2024.03 HMWQ (https://issuetracker.deltares.nl/browse/D3DFMIQ-3802). Commenting ExtForceFile in the mdu is a workaround to make the model run, but no output will be shown afterwards.
    • run hydromt_delft3dfm example notebooks
    • test/run models created by different hydromt_delft3dfm notebooks >> in interacter and in Delft3D FM Suite 2024.03 1D2D without errors, not sure if the models are generated as expected
@veenstrajelmer veenstrajelmer changed the title modelbuilder/hydromt_delft3dfm installation guide DSD modelbuilder/hydromt_delft3dfm installation guide Oct 13, 2023
@veenstrajelmer veenstrajelmer changed the title DSD modelbuilder/hydromt_delft3dfm installation guide DSD installation guide Oct 24, 2023
@veenstrajelmer veenstrajelmer closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2023
@veenstrajelmer veenstrajelmer changed the title DSD installation guide DSD 2023 installation guide Sep 17, 2024
@veenstrajelmer veenstrajelmer changed the title DSD 2023 installation guide DSD 2023/2024 installation guide Sep 19, 2024
@veenstrajelmer veenstrajelmer changed the title DSD 2023/2024 installation guide DSD installation guide Sep 27, 2024
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