-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from lreis2415/dev
unified coding style of python scripts
- Loading branch information
Showing
112 changed files
with
4,185 additions
and
3,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
data/dianbu/data_prepare/management2/areal_struct_management.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## This file define areal structural BMPs parameters. | ||
# SUBSCENARIO: BMP unique ID | ||
# NAME: BMP Name | ||
# DESC: BMP Description | ||
# REFERENCE: Literature reference | ||
# LANDUSE: Suitable landuse ID, if not sure, please fill in 'ALL', separated by '-', such as '2-4' | ||
# PARAMETERS: Spatial parameters that the BMP affects, the format MUST be: | ||
# NAME1:DESC1:CHANGE1:IMPACT1-NAME2:DESC2:CHANGE2:IMPACT2-... | ||
# where, NAME is the parameter's ID, which will be one of the GridFS file in SPATIAL.files | ||
# DESC is the corresponding description | ||
# CHANGE is the change method, which can be VC,RC,AC. VC: replace, RC: multiply, AC: add. | ||
# IMPACT is the impact value. | ||
SUBSCENARIO,NAME,DESC,REFERENCE,LANDUSE,PARAMETERS | ||
1,fengjin,fengjin,fengjin,7-16,Interc_max:Maximum Interception Capacity:AC:1-Conductivity:Soil hydraulic conductivity:RC:3.5-USLE_C:Cover management factor:VC:0.0008-USLE_K:Soil erodibility factor:RC:0.64 | ||
2,shengtailincao,shengtailincao,shengtailincao,4-7-16-33,Interc_max:Maximum Interception Capacity:AC:2.5-Depression:Depression storage capacity:RC:2-Conductivity:Soil hydraulic conductivity:RC:5-USLE_C:Cover management factor:VC:0.0012-USLE_K:Soil erodibility factor:RC:0.095-USLE_P:the erosion control practice factor:RC:0.8 | ||
3,jingjilinguo,jingjilinguo,jingjilinguo,4-7-16-33,Interc_max:Maximum Interception Capacity:AC:1.5-Depression:Depression storage capacity:RC:5-Conductivity:Soil hydraulic conductivity:RC:4-USLE_C:Cover management factor:VC:0.0015-USLE_K:Soil erodibility factor:RC:0.65-USLE_P:the erosion control practice factor:RC:0.6 | ||
4,dixiaolingaizao,dixiaolingaizao,dixiaolingaizao,7-16,Interc_max:Maximum Interception Capacity:AC:2.5-Depression:Depression storage capacity:RC:1.5-Conductivity:Soil hydraulic conductivity:RC:3.5-USLE_C:Cover management factor:VC:0.0024-USLE_K:Soil erodibility factor:RC:0.98-USLE_P:the erosion control practice factor:RC:0.8 | ||
5,chaguoyuanpogaiti,chaguoyuanpogaiti,chaguoyuanpogaiti,4-7-16,Interc_max:Maximum Interception Capacity:AC:1-Depression:Depression storage capacity:RC:5-Conductivity:Soil hydraulic conductivity:RC:3-USLE_C:Cover management factor:VC:0.0008-USLE_K:Soil erodibility factor:RC:0.78-USLE_P:the erosion control practice factor:RC:0.3-Slope:Slope:VC:0.001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
data/examples/3.postprocess/post_dianbu2_30m_longterm_omp_zhulj_win.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### ZHU LJ-Windows-T430 | ||
[PATH] | ||
MODEL_DIR = C:\z_code\Hydro\SEIMS\data\dianbu\model_dianbu2_30m_demo | ||
ScenarioID = 0 | ||
|
||
[MONGODB] | ||
HOSTNAME = 127.0.0.1 | ||
PORT = 27017 | ||
ClimateDBName = HydroClimate_dianbu2_demo | ||
BMPScenarioDBName = BMP_Scenario_dianbu2_30m_demo | ||
SpatialDBName = model_dianbu2_30m_demo | ||
|
||
[PARAMETERS] | ||
PLOT_SUBBASINID = 4 | ||
PLOT_VARIABLES = Q QI QG QS CH_COD CH_TP CH_TN CH_NO3 CH_NH4 CH_ORGN SED GWNO3 PERCO_N_GW SUR_NO3_TOCH SUR_SOLP_TOCH CH_SOLP | ||
[OPTIONAL_PARAMETERS] | ||
#UTCTIME | ||
Time_start = 2013-01-01 | ||
Time_end = 2013-12-31 | ||
Resolution = 300 | ||
[SWITCH] | ||
LANG_CN = False |
18 changes: 0 additions & 18 deletions
18
data/examples/3.postprocess/post_dianbu_30m_longterm_omp_dgpm.ini
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
data/examples/3.postprocess/post_dianbu_30m_longterm_omp_gaohr_win.ini
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
data/examples/3.postprocess/post_dianbu_30m_longterm_omp_zhulj_win.ini
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
data/examples/3.postprocess/post_dingguang_30m_longterm_omp_zhulj_win.ini
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dgpm-cluster.local 1 | ||
dgpm-compute-1.local 2 | ||
dgpm-compute-2.local 2 | ||
dgpm-compute-3.local 2 | ||
dgpm-cluster.local 1 | ||
dgpm-compute-1.local 2 | ||
dgpm-compute-2.local 2 | ||
dgpm-compute-3.local 2 | ||
dgpm-compute-4.local 2 |
78 changes: 39 additions & 39 deletions
78
data/examples/5.scenarios/nsgaii_dianbu2_30m_longterm_omp_dgpm.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
# Linux-cluster 192.168.6.55, logged in with user: zhulj | ||
|
||
[PATH] | ||
MODEL_DIR = /home/zhulj/SEIMS/models | ||
fieldFile = /home/zhulj/SEIMS/models/dianbu/data_prepare/spatial/mgtfield_t100_2.txt | ||
pointFile = /home/zhulj/SEIMS/models/dianbu/data_prepare/management2/point_source_distribution.txt | ||
pointBMPsFile = /home/zhulj/SEIMS/models/dianbu/data_prepare/management2/point_source_management.txt | ||
|
||
[NSGAII] | ||
GenerationsNum = 2 | ||
PopulationSize = 4 | ||
CrossoverRate = 0.75 | ||
MutateRate = 0.05 | ||
|
||
[MONGODB] | ||
HOSTNAME = 192.168.6.55 | ||
PORT = 27017 | ||
BMPScenarioDBName = BMP_Scenario_dianbu2_30m_longterm | ||
|
||
[SEIMS_Model] | ||
model_Exe = /home/zhulj/SEIMS/seims_omp_rel_x86-201611/seims_omp | ||
model_Workdir = /home/zhulj/SEIMS/models/dianbu/model_dianbu2_30m_longterm | ||
threadsNum = 4 | ||
layeringMethod = 0 | ||
timeStart = 2014-01-01 | ||
timeEnd = 2014-12-31 | ||
|
||
[BMPs] | ||
# BMPs | ||
bmps_farm = 0 1 | ||
# bmps_cattle = 1 2 3 4 | ||
bmps_cattle = 2 3 | ||
# bmps_pig = 1 2 3 4 | ||
bmps_pig = 2 3 | ||
bmps_sewage = 1 2 3 4 5 6 7 8 | ||
# BMPs cost (Index Correspond with BMPs id, e.g.) | ||
bmps_farm_cost = 208. 166. | ||
bmps_cattle_cost = 0. 15. 15. 160. 15. | ||
bmps_pig_cost = 0. 6. 6. 70. 6. | ||
# Linux-cluster 192.168.6.55, logged in with user: zhulj | ||
|
||
[PATH] | ||
MODEL_DIR = /home/zhulj/SEIMS/models | ||
fieldFile = /home/zhulj/SEIMS/models/dianbu/data_prepare/spatial/mgtfield_t100_2.txt | ||
pointFile = /home/zhulj/SEIMS/models/dianbu/data_prepare/management2/point_source_distribution.txt | ||
pointBMPsFile = /home/zhulj/SEIMS/models/dianbu/data_prepare/management2/point_source_management.txt | ||
|
||
[NSGAII] | ||
GenerationsNum = 2 | ||
PopulationSize = 4 | ||
CrossoverRate = 0.75 | ||
MutateRate = 0.05 | ||
|
||
[MONGODB] | ||
HOSTNAME = 192.168.6.55 | ||
PORT = 27017 | ||
BMPScenarioDBName = BMP_Scenario_dianbu2_30m_longterm | ||
|
||
[SEIMS_Model] | ||
model_Exe = /home/zhulj/SEIMS/seims_omp_rel_x86-201611/seims_omp | ||
model_Workdir = /home/zhulj/SEIMS/models/dianbu/model_dianbu2_30m_longterm | ||
threadsNum = 4 | ||
layeringMethod = 0 | ||
timeStart = 2014-01-01 | ||
timeEnd = 2014-12-31 | ||
|
||
[BMPs] | ||
# BMPs | ||
bmps_farm = 0 1 | ||
# bmps_cattle = 1 2 3 4 | ||
bmps_cattle = 2 3 | ||
# bmps_pig = 1 2 3 4 | ||
bmps_pig = 2 3 | ||
bmps_sewage = 1 2 3 4 5 6 7 8 | ||
# BMPs calculate_economy (Index Correspond with BMPs id, e.g.) | ||
bmps_farm_cost = 208. 166. | ||
bmps_cattle_cost = 0. 15. 15. 160. 15. | ||
bmps_pig_cost = 0. 6. 6. 70. 6. | ||
bmps_sewage_cost = 0. 1000. 1000. 1000. 1000. 8000.15 8000.15 8000.15 8000.15 |
86 changes: 43 additions & 43 deletions
86
data/examples/5.scenarios/nsgaii_dianbu2_30m_longterm_omp_gaohr_win.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
## GaoHR-Windows | ||
|
||
[PATH] | ||
MODEL_DIR = D:\GaohrWS\GithubPrj\SEIMS\model_data | ||
fieldFile = D:\GaohrWS\GithubPrj\SEIMS\model_data\dianbu\data_prepare\spatial\mgtfield_t100_2.txt | ||
pointFile = D:\GaohrWS\GithubPrj\SEIMS\model_data\dianbu\data_prepare\management2\point_source_distribution.txt | ||
pointBMPsFile = D:\GaohrWS\GithubPrj\SEIMS\model_data\dianbu\data_prepare\management2\point_source_management.txt | ||
scenariosInfo = D:\SEIMS_model\Model_data\model_dianbu2_30m_longterm\NSGAII_OUTPUT\scenarios_info.txt | ||
|
||
[NSGAII] | ||
GenerationsNum = 2 | ||
PopulationSize = 4 | ||
CrossoverRate = 0.75 | ||
MutateRate = 0.1 | ||
SelectRate = 0.25 | ||
|
||
[MONGODB] | ||
HOSTNAME = 192.168.6.55 | ||
PORT = 27017 | ||
BMPScenarioDBName = BMP_Scenario_dianbu2_30m_longterm | ||
|
||
[SEIMS_Model] | ||
model_Exe = D:\SEIMS_model\SEIMS\Release\seims_omp | ||
model_Workdir = D:\SEIMS_model\Model_data\model_dianbu2_30m_longterm | ||
threadsNum = 2 | ||
layeringMethod = 0 | ||
timeStart = 2014-01-01 | ||
timeEnd = 2014-12-31 | ||
|
||
[BMPs] | ||
# BMPs | ||
bmps_farm = 0 1 | ||
# bmps_cattle = 1 2 3 4 | ||
bmps_cattle = 2 3 | ||
# bmps_pig = 1 2 3 4 | ||
bmps_pig = 2 3 | ||
bmps_sewage = 1 2 3 4 5 6 7 8 | ||
# BMPs cost (Index Correspond with BMPs id, e.g.) | ||
bmps_farm_cost = 208000. 166000. | ||
bmps_cattle_cost = 0. 15. 15. 160. 15. | ||
bmps_pig_cost = 0. 6. 6. 70. 6. | ||
bmps_sewage_cost = 0. 2000. 2000. 2000. 2000. 8000.15 8000.15 8000.15 8000.15 | ||
|
||
## GaoHR-Windows | ||
|
||
[PATH] | ||
MODEL_DIR = D:\GaohrWS\GithubPrj\SEIMS\model_data | ||
fieldFile = D:\GaohrWS\GithubPrj\SEIMS\model_data\dianbu\data_prepare\spatial\mgtfield_t100_2.txt | ||
pointFile = D:\GaohrWS\GithubPrj\SEIMS\model_data\dianbu\data_prepare\management2\point_source_distribution.txt | ||
pointBMPsFile = D:\GaohrWS\GithubPrj\SEIMS\model_data\dianbu\data_prepare\management2\point_source_management.txt | ||
scenariosInfo = D:\SEIMS_model\Model_data\model_dianbu2_30m_longterm\NSGAII_OUTPUT\scenarios_info.txt | ||
|
||
[NSGAII] | ||
GenerationsNum = 2 | ||
PopulationSize = 4 | ||
CrossoverRate = 0.75 | ||
MutateRate = 0.1 | ||
SelectRate = 0.25 | ||
|
||
[MONGODB] | ||
HOSTNAME = 192.168.6.55 | ||
PORT = 27017 | ||
BMPScenarioDBName = BMP_Scenario_dianbu2_30m_longterm | ||
|
||
[SEIMS_Model] | ||
model_Exe = D:\SEIMS_model\SEIMS\Release\seims_omp | ||
model_Workdir = D:\SEIMS_model\Model_data\model_dianbu2_30m_longterm | ||
threadsNum = 2 | ||
layeringMethod = 0 | ||
timeStart = 2014-01-01 | ||
timeEnd = 2014-12-31 | ||
|
||
[BMPs] | ||
# BMPs | ||
bmps_farm = 0 1 | ||
# bmps_cattle = 1 2 3 4 | ||
bmps_cattle = 2 3 | ||
# bmps_pig = 1 2 3 4 | ||
bmps_pig = 2 3 | ||
bmps_sewage = 1 2 3 4 5 6 7 8 | ||
# BMPs calculate_economy (Index Correspond with BMPs id, e.g.) | ||
bmps_farm_cost = 208000. 166000. | ||
bmps_cattle_cost = 0. 15. 15. 160. 15. | ||
bmps_pig_cost = 0. 6. 6. 70. 6. | ||
bmps_sewage_cost = 0. 2000. 2000. 2000. 2000. 8000.15 8000.15 8000.15 8000.15 | ||
|
Oops, something went wrong.