User Tools

Site Tools


start:hype_tutorials:transfer_point_sources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start:hype_tutorials:transfer_point_sources [2018/04/11 13:51]
cpers
start:hype_tutorials:transfer_point_sources [2018/04/11 13:54]
cpers
Line 1: Line 1:
 =====How to transfer point sources to PointSourceData.txt===== =====How to transfer point sources to PointSourceData.txt=====
  
-If you have point sources in your GeoData.txt file, these will not be read for future HYPE versions. This document will show how you transfer your point sources to the PointSourceData.txt file. +If you have point sources in your [[start:​HYPE_file_reference:​GeoData.txt|GeoData.txt]] ​file, these will not be read for future HYPE versions. This document will show how you transfer your point sources to the [[start:​HYPE_file_reference:​PointSourceData.txt|PointSourceData.txt]] ​file. 
-There are two main differences between point sources in GeoData.txt and PointSourceData.txt that you need to be aware of:+There are two main differences between point sources in [[start:​HYPE_file_reference:​GeoData.txt|GeoData.txt]] ​and [[start:​HYPE_file_reference:​PointSourceData.txt|PointSourceData.txt]] that you need to be aware of:
  
-  - In GeoData.txt you will have columns with point source data for all subbasins (i.e. many have zeros). The PointSourceData.txt file will only hold data for the subbasins where you actually have point sources.  +  - In [[start:​HYPE_file_reference:​GeoData.txt|GeoData.txt]] ​you will have columns with point source data for all subbasins (i.e. many have zeros). The [[start:​HYPE_file_reference:​PointSourceData.txt|PointSourceData.txt]] ​file will only hold data for the subbasins where you actually have point sources.  
-  - In GeoData.txt the different types of point sources (i.e. 1-3 e.g. waste water, industry, stormwater) are given in different columns. In PointSourceData.txt these will be given on different rows, and the type will be given in an additional column.+  - In [[start:​HYPE_file_reference:​GeoData.txt|GeoData.txt]] ​the different types of point sources (i.e. 1-3 e.g. waste water, industry, stormwater) are given in different columns. In [[start:​HYPE_file_reference:​PointSourceData.txt|PointSourceData.txt]] these will be given on different rows, and the type will be given in an additional column.
  
 ===Step-by-step transfer of point sources=== ===Step-by-step transfer of point sources===
  
-Create PointSourceData.txt from a copy of the GeoData.txt -file. Remove all columns except subid and those related to point sources (those starting with psN_, N=1-3). Remove all rows with subbasins that only have zero for the point source columns. Duplicate (or triplicate) rows that have more than one type of point source that is non zero. Add a column named ps_type. Add columns for the point source data (i.e. ''​ps_vol'',​ ''​ps_tpconc'',​ etc.) in PointSourceData.txt.+Create ​[[start:​HYPE_file_reference:​PointSourceData.txt|PointSourceData.txt]] ​from a copy of the GeoData-file. Remove all columns except subid and those related to point sources (those starting with psN_, N=1-3). Remove all rows with subbasins that only have zero for the point source columns. Duplicate (or triplicate) rows that have more than one type of point source that is non zero. Add a column named ps_type. Add columns for the point source data (i.e. ''​ps_vol'',​ ''​ps_tpconc'',​ etc.) in [[start:​HYPE_file_reference:​PointSourceData.txt|PointSourceData.txt]].
  
 For each row that is not duplicated; Set the ps_type to the type of the non-zero point source (e.g. ''​ps2_vol''​ give ''​ps_type''​ 2).  Copy of move the data from old columns to new columns. ​ For each row that is not duplicated; Set the ps_type to the type of the non-zero point source (e.g. ''​ps2_vol''​ give ''​ps_type''​ 2).  Copy of move the data from old columns to new columns. ​
start/hype_tutorials/transfer_point_sources.txt · Last modified: 2024/01/25 11:37 (external edit)