Versions Compared

Key

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

...

To facilitiate this, the following steps are followed in FEWS
FEWS copies the model state file (say: Model.zip) from database to a model directory say ".\Model\state". This zipped file may contain one or more state files depending on a model (for example HBV, model has number of state file which is equivalent to number of of districts). Preprocessor will then unzip tthis file so that the model state file Topkapi.stt is copied from zipped file to the ".\Topkapi\Reno\state" directory and rename this state file to appropraite name as accepted by the model - say for the model run starting at 04/10/2005 00:00 hrs - the state file should of named 200509210000.SttThe information of state locations and date and time of state is written to a PI State XML file.

No Format


<?xml version="1.0" encoding="UTF-8"?>
<State
    xsi:schemaLocation="http://www.wldelft.nl/fews/PI http://fews.wldelft.nl/schemas/version1.0/pi-schemas/pi_state.xsd"
    version="1.2" xmlns="http://www.wldelft.nl/fews/PI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <stateId>warm</stateId>
    <timeZone>0.0</timeZone>
    <dateTime date="2008-02-10" time="00:00:00"/>
    <stateLoc type="file">
        <readLocation>D:\Fews\App\po_sa\Modules\Topkapi\Trebbia\Fews_in\State\Topkapi_in.stt</readLocation>
        <writeLocation>D:\Fews\App\po_sa\Modules\Topkapi\Trebbia\Fews_in\State\Topkapi_in.stt</writeLocation>
    </stateLoc>
</State>

Preprocessor will then unzip the contents of this file and copies it to tghe appropraite model state directory. Preprocessor can name it accordingly using the period from Mapstack file.
Model is then runnned, using this state file, for a given period. The states files are written back to the state directory say ".\Topkapi\RenoModel\state" directory at every simulation time step (in this case 1 hr)endof simulation.
After the model run is completed, the Postprocessor then renames and copies the last state file (or files) back to the zip model state zipped file (say:Model.zip)

say 200510040000.Stt to Topkapi.stt file and make a zipped file Topkapi.zip which contains this Topkapi.stt file. The last state file can be determined easily using the period from mapstack file.
FEWS then copies this new zipped file back to its database and give it a time stamp equal to the end of simulation run.

...