Writing instance model restart files does not work with Simona
wkramer opened this issue · 0 comments
wkramer commented
For EnKF simulations with Simona writing instance model restart files does not work.
Simona writes a .nc
file while OpenDA expects a .zip
. There is a work around when writing the main model, where a directory listing is done after OpenDA request Simona to write a restart file.
The default src\waqua\waqcosta\etc\WaquaOpenDaConfig.xml
config will cause EnKF simulations to fail.
<?xml version="1.0" encoding="UTF-8"?>
<openDaApplication xmlns="http://www.openda.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openda.org http://schemas.openda.org/openDaApplication.xsd">
<stochObserver className="OBSERVER_CLASS">
<workingDirectory>.</workingDirectory>
<configFile>OBSFIL</configFile>
</stochObserver>
<restartOutFileTimes timeFormat="dateTimeString">RESTARTTIMES</restartOutFileTimes>
<stochModelFactory className="org.openda.costa.CtaStochModelFactory">
<workingDirectory>.</workingDirectory>
<configString>modelClass=WAQUA_CLASS;model=WAQCTA_CONFIG</configString>
</stochModelFactory>
<algorithm className="org.openda.algorithms.kalmanFilter.METHOD">
<workingDirectory>.</workingDirectory>
<configString>OPENDACOSTACONFIG</configString>
</algorithm>
<resultWriter className="org.openda.utils.AsciiResultWriter">
<workingDirectory>.</workingDirectory>
<configFile>METHOD-results.txt</configFile>
</resultWriter>
</openDaApplication>
This requires a copy in the run directory with <restartOutFileTimes timeFormat="dateTimeString">RESTARTTIMES</restartOutFileTimes>
commented out.
See: