You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

What-if functionaliteit in het NWM biedt de gebruiker de mogelijkheid om interactief (via een GUI) veranderingen door te voeren in een model data sets, bijvoorbeeld om een nieuwe schematisatie van een model te maken. Deze what-if functionaliteit is vooralsnog alleen geimplementeerd voor Zoetwater (en nog niet voor Veiligheid). Op deze pagina wordt uitgelegd hoe de what-if functionaliteit gebruikt moet worden in het Nationaal Water Model. Als voorbeeld is het LHM model genomen, maar de functioanliteit werkt ook voor de andere Zoetwater modellen (LSM, NDB, LTM).
Er zijn twee opties die hieronder uitgelegd worden, te weten  "Gebruik van een What-if scenario" and Geadvanceerd gebruik van een What-if scenario".

Gebruik van een What-if scenario voor Zoetwater modellen (zonder scenario.xml)

  • Place a zip-folder with the new data files at the server under D:\what_if_scenarios (see Figuur WIF.1.): These new files overwrite during the LHM prepossessing the existing files of the base schematisation.
    Do not use any spaces within the folder name!
    The mentioned zip-folder has to be at the same server, where the FSS is hosted which will run the LHM-workflow in combination with the what-if scenario. For example, at the Deltares Test environment the FSS can be approached via 'Remote Desktop Connection' to either aw-fs041.xtr.deltares.nl (with  FSS00 t/m FSS04) or aw-fs042.xtr.deltares.nl with FSS05 t/m FSS09).
    The new model data files also allow a README.txt or other informative files (e.g. description, name, date etc) can be stored in the zipped file as well. To ensure that these files are also archived the filename extension must be .txt.


    Figuur WIF.1.: Place zip-folder in d:\what_if_scenario
  • Go to OC (Operator Client) of the NWM
  • Open the What-if scenario display via Menu/Extra/What-If Scenario (or Ctrl + W, Tool symbol)
  • Make a new scenario (with button Nieuw scenario aanmaken..)(see Figuur WIF.2.); the name of the scenario has to be the same as the zipped file in D:\what_if_scenarios at the server (without extension .zip) which was generated within the first step; if required set a new scenario description


    Figuur WIF.2.: What-if Scenario display
  • Specify the scenario with tab 5:Properties (see Figuur WIF.3.)
  • select from the File_path  drop-down menu the line D:\what_if_scenarios


    Figuur WIF.3.: Select file_path
  • save the scenario with the button Bewaar alles
  • with the button Beheren.. you can delete or modify the scenario
  • Start the LHM run
      • via Starten workflow display:
        • Specify task (base schematisation)
        • Specify what-if scenario via wat-als drop-down menu (see Figuur WIF.4.)


          Figuur WIF.4.:Start workflow

      • via interactive forecasting display:
        • Specify task (base schematisation) in the interactive forecast display
        • Set task options (button Taak uitvoer opties)
        • Specify what-if scenario via wat-als drop-down menu (see Figuur WIF.5.)


          Figuur WIF.5.: Interactive forecast display

 

Geavanceerd gebruik van een What-if scenario voor Zoetwater modellen (met scenario.xml)

With help of the scenario.xml the user has a more flexibility in terms of the zip-folder name and the location for defining what-if scenarios. The steps are described in the following (just changes to the steps described above are explicitly mentioned):

  • Place a zip-folder with the new data files somewhere at the server
  • Prepare a scenario.xml on your local machine (e.g. ScenariosA.xml or see see Figuur WIF.6.):
    • Set the scenario name (it can be different from the zip-folder name) under name
    • Set the scenario id (if the id is already used in the system a warning will occur during import (see Figuur WIF.7.)) under id
    • Set the absolute path and name of the uploaded zip-folder under value

      Figuur WIF.6.: Example scenario.xml


      Figuur WIF.7.: Warning by same IDs

  • Import the scenario.xml via button Importeer... of the what-if display:
    • Go to tab 5:Properties and select from the File_path  drop-down menu the line with the new path and filename
    • save the scenario with the button Bewaar alles...
  • Use the scenario as mentioned above in your workflow



Overzicht volgorde LHM preprocessing stappen

De stappen die binnen de NWM component "LHM" achtereenvolgens worden uitgevoerd binnen het Delft-FEWS systeem zijn:

  1. Verwijderen van alle niet-gezipte bestanden en het daarmee leegmaken van de LHM modelomgeving.

  2. Uitpakken LHM modelbestanden.
  3. Importeren van model-states.

  4. Exporteren NDB chlorideconcentraties.

  5. Resampling KNMI OpenDap data.

  6. Draaien LHM preprocessing scripts met bijbehorende ini-file.

Hieronder zijn de eerste twee stappen verder uitgewerkt. De stappen 3 t/m 6 hebben geen subtaken en zijn daarom niet in meer detail uitgewerkt.

1. Verwijderen van alle niet-gezipte bestanden en het daarmee leegmaken van de LHM modelomgeving:

De volgende bestanden en/of mappen worden verwijderd voordat een LHM simulatie wordt uitgevoerd zijn te vinden in dit bestand.

2. Uitpakken LHM modelbestanden:

Het uitpakken van de LHM modelbestanden gebeurt in de volgorde:

  1. Modeldata.zip --> %ROOT_DIR%\tmp
  2. Preprocessing.zip --> %ROOT_DIR%
  3. Postprocessing.zip --> %ROOT_DIR%\postprocessing
  4. Script.zip --> %ROOT_DIR%
  5. Klimaat scenario ($climate$$climateyear$.zip) --> %ROOT_DIR%\tmp
  6. Socio-economisch scenario ($socioeconomic$$climateyear$-socecon.zip) --> %ROOT_DIR%\tmp
  7. S0, S1, S2, S3 ($measure$-$socioeconomic$$climateyear$.zip) --> %ROOT_DIR%\tmp

Voorbeeld van een specifiek scenario:

Modeldata.zip –> preprocessing.zip –> postprocessing.zip –> script.zip –> WH2050.zip –> Druk2050-socecon.zip –> S0-Druk2050.zip

 

 

 

 

  • No labels