Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Connecting an additional Sacramento model

Wiki MarkupThe catchment name is e.g. 'SC02' or 'E_70'. This name should match the name of the folder and should always have +precisely four+ characters. In this example we use \ [SC02\], any other catchment can be used for this. Copy the example of SC02 first before changing anything. Any file names in bold font or parts of files in bold font need to be changed inside the copied files and folders for an additional catchment.

Config

moduleConfigFiles

Add Forecast moduleInstance, e.g. Samo_SUB02_Forecast 1.00 default.xml
and add Historical moduleInstance e.g. Samo_SUB02_Historical 1.00 default.xml.

...

SacramentoPreAdapterConfigCatch_<SC02>.xml

Code Block
xml
xml

<?xml version="1.0" encoding="UTF-8"?>

...


<sacramentoModel xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews [http://fews.wldelft.nl/schemas/version1.0/sacramentoModel.xsd]"

...

No Format
>
         <general>
		<workDir>Work</workDir>
		<importDir>SC02\Import</importDir>
		<exportDir>SC02\Export</exportDir>
		<stateFile>..\State\Samo_state.xml</stateFile>
		<diagnosticFile>..\Log\Diagnostics.xml</diagnosticFile>
		<missingValue>-999.999</missingValue>
	</general>
	<activities>
		<preAdapterActivities>
			<dateFormat>yyyy MM dd HH</dateFormat>
			<input>Samo_input.xml</input>
			<output>SC02.dat</output>
			<mapping>
				<parameterId>Evaporation</parameterId>
				<locationId>67220</locationId>
				<column>1</column>
			</mapping>
			<mapping>
				<parameterId>Precipitation</parameterId>
				<locationId>SC02</locationId>
				<column>2</column>
			</mapping>
		</preAdapterActivities>
	</activities>
</sacramentoModel>

...

*SacramentoPostAdapterConfigCatch_<SC02>.xml*xml

Code Block
xml
xml

<?xml version="1.0" encoding="UTF-8"?>

...

<sacramentoModel xmlns="http://www.wldelft.nl/fews"

...


	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

...


	xsi:schemaLocation="http://www.wldelft.nl/fews [http://fews.wldelft.nl/schemas/version1.0/sacramentoModel.xsd]"

...

>
	<general>
		<workDir>work</workDir>

...


		<importDir>SC02\Import</importDir>

...


		<exportDir>SC02\Export</exportDir>

...


		<stateFile>..\State\Samo_state.xml</stateFile>

...


		<diagnosticFile>..\Log\Diagnostics.xml</diagnosticFile>

...


		<missingValue>-999.999</missingValue>

...


	</general>

...


	<activities>
		<postAdapterActivities>
			<dateFormat>yyyy MM dd HH</dateFormat>

...


			<input>SC02.rnf</input>

...


			<output>sacramento_results.xml</output>

...


			<mapping>
				<parameterId>Discharge</parameterId>

...


				<locationId>SC02</locationId>

...


				<column>1</column>

...


			</mapping>

...


		</postAdapterActivities>

...


	</activities>

...


</sacramentoModel>