Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • create a new (empty) state.WDM file using WDMutil
    • Open WDM Util
    • Menu: File > New > fill in the name of the WDM file
    • confirm that you will create a new WDM file:
  • Prepare the complete HSPF case including the UCI file, the WDM input file, the WDM output (results) file and the empty WDM state file (created in the previous step)
    • Note that the UCI file should already contain items for the WDM state file, if not present add these first in the EXT TARGET Block
  • open the complete HSPF case in WinHSPF 2.3 (only works in this version) and adjust the WDM state file:
    • Open WinHSPF.exe
    • Menu: File > Open > select the uci file (the uci file should include the EXT TARGET section describing the items that are needed for the WDM state file, see "Checking the format of the UCI file"
    • Menu: Edit > EXT TARGET; a Edit EXT TARGETS Block dialog should open
    • Click on Add (then Apply button will be selectable), 
    • Click on Apply; a new dialog "Add Dataset" should open
    • change the following in the Add Dataset dialog:
      • LocationNames; shorten the location Ids (the total length of locationIds is limited to 8 characters) 
        • use P for PERLND, IMP for IMPLND, and RCH for RCHRES;
        • use e.g. MS Excel for adjusting the names; copy all records from the Location column to excel, shorten the names and paste the shortened names back into the table of the Add Dataset dialog)
        • do the same for the Time Units column, if the units are not in hours; IMPORTANT: the time unit should always be in hours (code = 3), otherwise the restart function will not work. OpenDA searches for the values in the WDM state file for the model's end timestep.

          C TCODE - time units of data
          C 1 - second 4 - day
          C 2 - minute 5 - month
          C 3 - hour 6 - year


          The result should look something like this:
  • When done press OK (Confirm that the empty row will be ignored by pressing OK again), 
  • Close the Edit EXT TARGETS Block dialog by clicking OK 
  • Then save the adjusted WDM file via Menu: File > Save
  • Close WinHSPF (Menu: File > Exit)
  • The WDM state file should now be filled with the new items; confirm this by opening the file in WDM Util
  • Optionally try to run HSPF in WinHSPF 2.3 before exiting WinHSPF