swatplus_modeling
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| swatplus_modeling [2026-05-29 12:15 pm] – mpokhrel | swatplus_modeling [2026-05-29 04:30 pm] (current) – mpokhrel | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== How to add inflow hydrograph ===== | ===== How to add inflow hydrograph ===== | ||
| - | **PointID selection for the inlet** | + | |
| + | ==== PointID selection for the inlet ==== | ||
| The point ID for the inlet is defined when we prepare the SWAT+ model in QSWAT+. We can verify it in QGIS using the Identify Features tool. | The point ID for the inlet is defined when we prepare the SWAT+ model in QSWAT+. We can verify it in QGIS using the Identify Features tool. | ||
| - | **Implementation workflow using swatpluseditor** | + | ==== Implementation workflow using SWAT+ Editor ==== |
| - | Edit SWAT+ Inputs | + | Edit SWAT+ Inputs |
| {{: | {{: | ||
| - | To prepare the input file, we can export the empty recall file in .csv format, add the flow data (in volume, | + | To prepare the input file, we can export the empty recall file in .csv format, add the flow data (in volume, |
| Table: sample input file format for the inlet | Table: sample input file format for the inlet | ||
| Line 20: | Line 21: | ||
| |2|1|2|2005|pt_day|pt028|16465483.4|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0| | |2|1|2|2005|pt_day|pt028|16465483.4|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0|0.0| | ||
| - | **File that are generated or changed in the model** | + | ==== File that are generated or changed in the model ==== |
| * file.cio: define // | * file.cio: define // | ||
| * recall.rec | * recall.rec | ||
| * recall.con | * recall.con | ||
| - | * pt028.rec (Example | + | * pt028.rec (example |
| + | |||
| + | ==== How to visualize or print output changes after defining an inflow ==== | ||
| - | **How to visualize or print output changes after defining an inflow** | ||
| * Run the model before and after defining the inflow file, but save the outputs in different Textinout files. Make sure the model prints the channel output so that we can validate it at the downstream channel section. | * Run the model before and after defining the inflow file, but save the outputs in different Textinout files. Make sure the model prints the channel output so that we can validate it at the downstream channel section. | ||
| - | | + | * Identify the channel downstream of the inlet.(using QGIS) |
| - | | + | * Use the following awk command to extract the flow rate (m< |
| - | * | + | |
| - | * Use the following awk command to extract the flow rate (m³/s) at the downstream channel. | + | |
| - | < | + | < |
| awk ' | awk ' | ||
| </ | </ | ||
| + | ==== Structure of generated files ==== | ||
| + | === recall.rec === | ||
| + | The following shows the structure of the recall.rec file for the SWAT+ model | ||
| + | |||
| + | ^recall.rec: | ||
| + | |id|name|rec_typ|file| | ||
| + | |1|pt028|1|pt028.rec| | ||
| + | |||
| + | Terminology used in the file is explained as follows | ||
| + | ^ Term ^ Meaning | ||
| + | | pt028 | Name of recall object | ||
| + | | rec_type | recall type, 1 for daily data| | ||
| + | | pt028.rec | file containing actual time series | | ||
| - | | + | === recall.con === |
| + | The following shows the structure of the recall object connection file for the SWAT+ model | ||
| + | ^recall.con: | ||
| + | |id|name|gis_id|area|lat|lon|elev|rec|wst|cst|ovfl|rule|out_tot|obj_typ|obj_id|hyd_typ|frac| | ||
| + | |1|pt028|28|0.00001|43.00159|-115.20618|762.45911|1|s42895n115230w|0|0|0|1|sdc|104|tot|1.00000| | ||
| + | ^Term^value^short_description^ | ||
| + | |wst|s42895n115230w|Pointer to the weather station file| | ||
| + | |cst|0|No constituent station assigned.| | ||
| + | |ovfl|0|No overflow routing defined.| | ||
| + | |rule|0|No management or routing rule applied.| | ||
| + | |out_tot|1|One downstream routing connection exists.| | ||
| + | |obj_typ|sdc|**I searched for the sdc in the documentation and couldn' | ||
| + | |obj_id|104|Identifier of the SDC object receiving the flow.| | ||
| + | |hyd_typ|tot|Routes total flow and associated constituents without splitting by component.| | ||
| + | |frac|1.00000|100% of flow are routed to the downstream SDC object.| | ||
| + | inlet -> SDC -> route unit | ||
| {{tag> | {{tag> | ||
swatplus_modeling.1780078552.txt.gz · Last modified: by mpokhrel
