PNHP / COA

Pennnsylvania Conservation Opportunity Area Tool development scripts
GNU General Public License v3.0
2 stars 1 forks source link

Geographic filter for some actions #135

Open ChristopherTracey opened 6 years ago

ChristopherTracey commented 6 years ago

eg. shale region, wind threat, other geographic issues

ChristopherTracey commented 6 years ago

This code, just removed from the script, may be useful for the future:

if(max(aoi_Threats$WindCapability)>2) { # selected '2' as class 3 and above are thought to have commercial wind energy potential print("Class 3 wind power potential at this site.") } else { print("No significant wind resources known at this site.") } wind turbines if(any(aoi_Threats$WindTurbines =='y')) print("Wind turbines present within the AOI.") shale gas if(any(aoi_Threats$ShaleGas=='y')) { print("Site overlaps potential shale gas resource.") } else { print("No known shale resource within this AOI.") } gas wells if(any(aoi_Threats$ShaleGasWell=='y')) print("Shale gas well pads present within the AOI.")

ChristopherTracey commented 6 years ago

Implemented in #153

Had to add 'ConstraintsWind' and 'ConstraintsShale' to the actions table in the SQL database, populated with a 'y' if the action only applies to the region. I have to talk to Cathy and Diana about adding this to their versions of the actions table.

This should be tested more.