Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Commit

Permalink
Added soil analysis
Browse files Browse the repository at this point in the history
Added soil triangle and  more sophisticated AWC calculation using CalcPTF (not called from R; external program)
  • Loading branch information
flakesw committed Dec 10, 2020
1 parent 1417fd9 commit b668fac
Show file tree
Hide file tree
Showing 12 changed files with 13,467 additions and 12,879 deletions.
26 changes: 7 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,12 @@ outputs/

# PRISM input data
Raw data/prism_data/

#gSSURGO
Raw data/gssurgo_g_nv/

.RData
.Rhistory
.Rproj.user/EAEB7255/console06/INDEX001
.Rproj.user/EAEB7255/pcs/windowlayoutstate.pper
.Rproj.user/EAEB7255/sources/prop/2A13C8B0
.Rproj.user/EAEB7255/sources/prop/8DF0DCEC
.Rproj.user/EAEB7255/sources/prop/A1FFFDE6
.Rproj.user/EAEB7255/sources/prop/A30485D9
.Rproj.user/EAEB7255/sources/prop/AA116D9C
.Rproj.user/EAEB7255/sources/prop/D455C530
.Rproj.user/EAEB7255/sources/prop/INDEX
.Rproj.user/EAEB7255/sources/s-197F81BE/9E5C163F
.Rproj.user/EAEB7255/sources/s-197F81BE/9E5C163F-contents
.Rproj.user/EAEB7255/sources/s-197F81BE/BA4339
.Rproj.user/EAEB7255/sources/s-197F81BE/BA4339-contents
.Rproj.user/EAEB7255/sources/s-197F81BE/C3F69618
.Rproj.user/EAEB7255/sources/s-197F81BE/C3F69618-contents
.Rproj.user/EAEB7255/sources/s-197F81BE/F6A93CBA
.Rproj.user/EAEB7255/sources/s-197F81BE/F6A93CBA-contents
.Rproj.user/EAEB7255/sources/s-197F81BE/lock_file
.Rproj.user/shared/notebooks/paths
.Rproj.user/
.Rproj.user
.Rproj.user\
105 changes: 105 additions & 0 deletions Raw data/CalcPTF understory 2020-12-08.csv

Large diffs are not rendered by default.

104 changes: 104 additions & 0 deletions Raw data/soils_missing_imputed_with_new_ptf_2020-12-7.csv

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Raw data/tree_and_shrub_cover_020815.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
,Plot,Percent_cover,Tree_cover
1,DES1014,0.221988796,0.265406162
1,DES1014,0.165,0.265406162
2,DES1014120,0,0.360644258
3,DES1014240,0.013305322,0.183473389
4,DES1014360,0.029621849,0.355042017
Expand Down Expand Up @@ -39,7 +39,7 @@
38,RAV339120,0.010504202,0.467086835
39,RAV339240,0.021708683,0.362745098
40,RAV339360,0.006302521,0.462184874
41,RAV358,0.205392157,0.201680672
41,RAV358,0.0196,0.201680672
42,RAV358120,0,0.049719888
43,RAV358240,0.000770308,0.290616246
44,RAV358360,0,0.278011204
Expand Down Expand Up @@ -99,5 +99,5 @@
98,WHIS64120,0.117086835,0.165266106
99,WHIS64240,0.131442577,0.090336134
100,WHIS64360,0.243207283,0.044817927
101,TOI1577,0.500140056,0.500140056
102,TOI1577360,0.277310924,0.277310924
101,TOI1577,0.037,0.500140056
102,TOI1577360,0,0.277310924
25,298 changes: 12,649 additions & 12,649 deletions clean data/climate_data_monthly.csv

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions clean data/plot_data.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"","Plot","Aforb","Bg","Cheatgrass","Crust","Gravel","Litter","Agrass","Pforb","Pgrass","Rock","Shrub","All","Live_ba","Live_ba_2005","Dead_ba","Total_ba","Dead_rat","Delta_pdc","cwd_normal_cum","AWC","Tree_cover","Shrub_cover_li","Total_cover","BA_plot","Cluster","Avg_depth","dppt","dppt_winter","dfdsi","dstdVPD","dstdppt","dVPDmjj"
"1","DES1014",0.875,14.375,0.25,0,0,40.625,0,1,1.375,13.5,4.375,7.875,8.44614541815584,3.50975,8.50140530807792,16.9475507262338,0.50163032082968,-10.8158425858571,352.409096300602,16.9743491443045,0.265406162,0.221988796,20.03,195.86,"DES1014",25.75555556,48.398999214172,48.6400003433223,0.793579288982635,-0.169074299109057,1.58840382154901,-2.1445
"1","DES1014",0.875,14.375,0.25,0,0,40.625,0,1,1.375,13.5,4.375,7.875,8.44614541815584,3.50975,8.50140530807792,16.9475507262338,0.50163032082968,-10.8158425858571,352.409096300602,16.9743491443045,0.265406162,0.165,20.03,195.86,"DES1014",25.75555556,48.398999214172,48.6400003433223,0.793579288982635,-0.169074299109057,1.58840382154901,-2.1445
"2","DES1014120",0,32.25,0,0.125,11.625,36.25,0,2.375,4.625,10.25,0,7,24.4719511,8.34075,2.386290688,26.858241788,0.0888476135867602,-8.00647095190716,352.409096300602,7.03166021004436,0.360644258,0,38.45,222.08,"DES1014",23.6,-16.899999141693,74.8300023078914,2.15194005363172,-1.55208022011095,2.91539802356725,-5.2512
"3","DES1014240",0.375,33.625,0.25,0,8.875,39.625,0,1,7.5,6,0.375,9.5,11.43434925,3.23525,4.7231037,16.15745295,0.29231734201027,-1.80065889514063,352.409096300602,18.1330284039839,0.183473389,0.013305322,24.79,113.79,"DES1014",36.66666667,8.67900371551497,85.5520009994505,1.19236364516266,-0.246350378628407,2.39638052984261,-3.0442
"4","DES1014360",0,35.5,2.625,0,6.125,38.875,0,0.75,2.625,10.875,1.875,7.875,17.8910606,5.387,0.702701924,18.593762524,0.0377923469277928,-10.2781017220557,352.409096300602,18.1648194195048,0.355042017,0.029621849,36.97,129.31,"DES1014",17,-16.899999141693,74.8300023078914,2.15194005363172,-1.55208022011095,2.91539802356725,-5.2512
Expand Down Expand Up @@ -31,15 +31,15 @@
"30","NP342120",0,16.125,0,0.5,20.25,41.625,0,3,12.125,5.25,3.375,18.5,19.0911215,5.19375,2.3225396,21.4136611,0.108460649916609,-21.2209933774146,381.020485639572,19.653194573943,0.389355742,0.074719888,33.4,141.19,"NP342",15.4,-17.112003803253,77.1910018920897,2.11236348728909,-1.46963694080871,2.93037909190049,-5.5227
"31","NP342240",0,12.5,1.375,1.5,30.75,9.875,0,0.125,5.75,15,20.875,28.125,8.97224385,1.449,0.16485785,9.1371017,0.0180426852423017,-24.1781268390235,381.020485639572,16.183426938508,0.176470588,0.0732493,14.64,31.61,"NP342",24,-17.112003803253,77.1910018920897,2.11236348728909,-1.46963694080871,2.93037909190049,-5.5227
"32","NP342360",0,24.125,0.125,1,9.625,41.625,0,1.375,6,18.625,5.75,13.25,20.83083065,5.13,3.452846,24.28367665,0.142187941709395,-21.0531742630326,381.020485639572,11.7558420427121,0.237394958,0.017717087,26.4,137.29,"NP342",31.6,-17.112003803253,77.1910018920897,2.11236348728909,-1.46963694080871,2.93037909190049,-5.5227
"33","NPELECTRICEEL",0.125,5.125,2.5,0,32.75,44,0,1.375,8.25,6.75,0,12.25,22.63210735,0,1.40421585,24.0363232,0.0584205761553414,-15.4890739401423,366.814312696457,30.9300811537536,0.29956086596875,0.0720003716428571,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"34","NPELECTRICEEL120",0,17.25,0,0,2.75,67,0,0,3.125,0,0.25,3.375,30.7319336,0,0.69153005,31.42346365,0.0220068054146539,-15.4890739401423,366.814312696457,19.1994249435442,0.29956086596875,0.0720003716428571,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"35","NPELECTRICEEL240",0,19.875,0,0.375,28.25,38.375,0,0.75,11.25,0.25,3.75,15.75,21.64960135,0,0.02205065,21.671652,0.00101748819148628,-15.4890739401423,366.814312696457,5.21667510808872,0.29956086596875,0.0720003716428571,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"36","NPELECTRICEEL360",0,13,0,0.375,32.25,43.375,0,1.875,10.5,0,0.125,12.5,21.7702009,0,0.0664424,21.8366433,0.00304270208049788,-15.4890739401423,366.814312696457,18.6072198018927,0.29956086596875,0.0720003716428571,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"33","NPELECTRICEEL",0.125,5.125,2.5,0,32.75,44,0,1.375,8.25,6.75,0,12.25,22.63210735,0,1.40421585,24.0363232,0.0584205761553414,-15.4890739401423,366.814312696457,30.9300811537536,0.29956086596875,0.0619673927346939,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"34","NPELECTRICEEL120",0,17.25,0,0,2.75,67,0,0,3.125,0,0.25,3.375,30.7319336,0,0.69153005,31.42346365,0.0220068054146539,-15.4890739401423,366.814312696457,19.1994249435442,0.29956086596875,0.0619673927346939,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"35","NPELECTRICEEL240",0,19.875,0,0.375,28.25,38.375,0,0.75,11.25,0.25,3.75,15.75,21.64960135,0,0.02205065,21.671652,0.00101748819148628,-15.4890739401423,366.814312696457,5.21667510808872,0.29956086596875,0.0619673927346939,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"36","NPELECTRICEEL360",0,13,0,0.375,32.25,43.375,0,1.875,10.5,0,0.125,12.5,21.7702009,0,0.0664424,21.8366433,0.00304270208049788,-15.4890739401423,366.814312696457,18.6072198018927,0.29956086596875,0.0619673927346939,25.6687755102041,188.516632653061,"NPELECTRICEEL",24.3180839003061,-0.0750031471259831,78.5530023574833,2.5064789246299,-2.39753705372832,2.64513221486827,-6.2612
"37","RAV339",1.875,3.875,4.875,0,9.625,50.375,0,1.625,18.125,3.875,0,26.5,17.229023,7.4995,7.47989605,24.70891905,0.30272048869738,-44.5783617603973,427.171397686005,17.9597703413104,0.355042017,0.007563025,40,163.61,"RAV339",43,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"38","RAV339120",1,3.125,5.5,0.125,24.875,29.25,0,1.375,18,3.375,0,25.875,15.042610307,9.40975,15.3911493740213,33.6039429811277,0.458016173359927,-45.0556617523823,427.171397686005,13.6954465784122,0.467086835,0.010504202,45.52,214.28,"RAV339",43,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"39","RAV339240",0.125,5.25,3.75,0,20.125,33.125,0,3.125,11.375,5,0,18.375,12.73358705,6.151,12.30965565,25.0432427,0.491536012227362,-48.9917940319811,427.171397686005,28.4178875492116,0.362745098,0.021708683,20.52,172.04,"RAV339",43,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"40","RAV339360",1.125,1.75,17.75,0,44.875,14,0,1,4.75,2,0,24.625,16.8749095,7.51225,7.799123474,24.674032974,0.316086287240446,-44.2732502814333,427.171397686005,10.7245923975298,0.462184874,0.006302521,34.17,164.08,"RAV339",43,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"41","RAV358",1,16.375,16.25,0,2.75,57.75,0.125,0.25,11.375,0,2.875,31.875,5.65673355,6.6355,15.559394988,21.216128538,0.733375788147763,-64.6350074637059,408.600602895021,19.1868959891203,0.201680672,0.205392157,43.84,151.92,"RAV358",27.8,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"41","RAV358",1,16.375,16.25,0,2.75,57.75,0.125,0.25,11.375,0,2.875,31.875,5.65673355,6.6355,15.559394988,21.216128538,0.733375788147763,-64.6350074637059,408.600602895021,19.1868959891203,0.201680672,0.0196,43.84,151.92,"RAV358",27.8,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"42","RAV358120",0,1.125,7.375,0,36.25,11.25,0,0.25,3,23.375,0.375,11,6.8509148,2.71275,2.10058485,8.95149965,0.234662898076525,-26.9394653400966,408.600602895021,18.2181056412832,0.049719888,0,20.45,62.32,"RAV358",35.8,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"43","RAV358240",0,0,8.375,0.125,24.625,51.25,0,0,0.5,4.875,0,8.875,14.90334275,3.88675,4.40888737144444,19.3122301214444,0.228295092991295,-17.4532237653255,408.600602895021,18.2181056412832,0.290616246,0.000770308,16.95,145.82,"RAV358",12,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
"44","RAV358360",1,33.375,0.25,1,16.75,40,0,0.625,10.625,4.5,0.75,13.25,21.23953305,7.36575,6.55816625,27.7976993,0.235924785689008,-27.4756945619752,408.600602895021,19.6716250836806,0.278011204,0,30.95,177.53,"RAV358",27.8,-16.104002952575,65.802998542786,2.82886365165184,-3.1418920339546,2.43046389235742,-6.8695
Expand Down Expand Up @@ -83,8 +83,8 @@
"82","SS604120",0,7.75,0.125,0.125,24.125,14.875,0,0.125,5.75,30.125,10,16,13.90088205,3.55575,0.305433132,14.206315182,0.0214998138565162,-20.8165158227666,305.712294608355,6.8202836545355,0.219187675,0.147058824,11.9,83.93,"SS604",24.2,26.796997070313,75.9989976882936,2.91655588974378,-3.39867627654217,2.30294812472765,-6.1242
"83","SS604240",0,4.25,0,0,9.75,6.875,0,0,6.375,66.5,8.75,15.125,17.3569152,6.119,0.024883822,17.381799022,0.00143160221611726,-8.67503272604553,305.712294608355,16.234930664386,0.204481793,0.108823529,7.14,134.41,"SS604",7.4,26.796997070313,75.9989976882936,2.91655588974378,-3.39867627654217,2.30294812472765,-6.1242
"84","SS604360",0,4,0,0,7.75,30,0,0,2,48.25,9.125,11.125,18.05087875,5.44725,0,18.05087875,0,-14.3888211774005,305.712294608355,3.74539324093935,0.220588235,0.06302521,24.44,118.84,"SS604",18,26.796997070313,75.9989976882936,2.91655588974378,-3.39867627654217,2.30294812472765,-6.1242
"85","TOI1577",0,15.625,0,3.25,19.25,57.625,0,0.25,15.75,2.875,0,16,20.51769415,5.0305,0.265889226,20.783583376,0.0127932330623524,-14.9077357432657,308.264268696308,16.8853715309608,0.500140056,0.500140056,36.55,114.99,"TOI1577",41.8,38.550993442536,83.0369982719423,2.90002042578768,-3.27608931023046,2.42138730013322,-7.9883
"86","TOI1577360",0,18.5,0,2.5,12,55.875,0,0,11.125,3.375,0,11.125,24.1728661,8.703,7.54779651,31.72066261,0.23794573911645,-15.0200251964568,308.264268696308,18.8773828311554,0.277310924,0.277310924,32.98,263.24,"TOI1577",20.8,38.550993442536,83.0369982719423,2.90002042578768,-3.27608931023046,2.42138730013322,-7.9883
"85","TOI1577",0,15.625,0,3.25,19.25,57.625,0,0.25,15.75,2.875,0,16,20.51769415,5.0305,0.265889226,20.783583376,0.0127932330623524,-14.9077357432657,308.264268696308,16.8853715309608,0.500140056,0.037,36.55,114.99,"TOI1577",41.8,38.550993442536,83.0369982719423,2.90002042578768,-3.27608931023046,2.42138730013322,-7.9883
"86","TOI1577360",0,18.5,0,2.5,12,55.875,0,0,11.125,3.375,0,11.125,24.1728661,8.703,7.54779651,31.72066261,0.23794573911645,-15.0200251964568,308.264268696308,18.8773828311554,0.277310924,0,32.98,263.24,"TOI1577",20.8,38.550993442536,83.0369982719423,2.90002042578768,-3.27608931023046,2.42138730013322,-7.9883
"87","TOI1596",0,3.375,0,0,54.125,21.625,0,0,2.5,3.625,5.625,8.125,22.3905393,8.31275,2.94586165,25.33640095,0.116269933358471,-17.1425952086672,258.092179954052,18.9111531327053,0.302521008,0.053781513,30.39,188.2,"TOI1596",26.4,48.523995399475,80.6919975280765,2.77262824624207,-3.17472372433562,2.26087036503211,-6.9784
"88","TOI1596120",0,5,0,0,46,25,0,0,0.5,12,0,0.5,32.755061712,10.7285,3.4422184,36.197280112,0.095096051121776,-25.5729758278096,303.739129334688,18.9111531327053,0.384453782,0,45.52,238.53,"TOI1596",20.8,48.523995399475,80.6919975280765,2.77262824624207,-3.17472372433562,2.26087036503211,-6.9784
"89","TOI1596240",0,6.375,0.625,0,18.5,63,0,0,0.375,4.25,0.375,1.375,25.08300514,5.4245,3.7053659,28.78837104,0.128710509352946,-10.7540780009234,303.739129334688,18.5373493892447,0.397058824,0.022128852,29.9,164.4,"TOI1596",31.4,48.523995399475,80.6919975280765,2.77262824624207,-3.17472372433562,2.26087036503211,-6.9784
Expand Down
Loading

0 comments on commit b668fac

Please sign in to comment.