-
Notifications
You must be signed in to change notification settings - Fork 5
/
pytidegate.StandardScenarios.pyt.xml
18 lines (16 loc) · 9.41 KB
/
pytidegate.StandardScenarios.pyt.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<metadata xml:lang="en"><Esri><CreaDate>20151110</CreaDate><CreaTime>16073300</CreaTime><ArcGISFormat>1.0</ArcGISFormat><SyncOnce>TRUE</SyncOnce><ModDate>20151111</ModDate><ModTime>14262100</ModTime><scaleRange><minScale>150000000</minScale><maxScale>5000</maxScale></scaleRange><ArcGISProfile>ItemDescription</ArcGISProfile></Esri><tool name="StandardScenarios" displayname="2 - Evaluate all standard scenarios" toolboxalias="python-tidegates" xmlns=""><arcToolboxHelpPath>c:\program files (x86)\arcgis\desktop10.2\Help\gp</arcToolboxHelpPath><parameters><param name="workspace" displayname="Analysis WorkSpace" type="Required" direction="Input" datatype="Workspace" expression="workspace"><dialogReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is the general path or geodatabase where the work will take place.</SPAN></P></DIV></DIV></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is the general path or geodatabase where the work will take place.</SPAN></P></DIV></DIV></DIV></pythonReference></param><param name="dem" displayname="Digital Elevation Model" type="Required" direction="Input" datatype="Raster Dataset" expression="dem"><dialogReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is the raster layer providing topographic and bathymetric data.</SPAN></P></DIV></DIV></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is the raster layer providing topographic and bathymetric data.</SPAN></P></DIV></DIV></DIV></pythonReference></param><param name="polygons" displayname="Tidegate Zones of Influence" type="Required" direction="Input" datatype="Feature Class" expression="polygons"><dialogReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is a polygon layer whose geometry describes the maximum extents of the tidegates' influence.</SPAN></P></DIV></DIV></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is a polygon layer whose geometry describes the maximum extents of the tidegates' influence.</SPAN></P></DIV></DIV></DIV></pythonReference></param><param name="ID_column" displayname="Column with Tidegate IDs" type="Required" direction="Input" datatype="Field" expression="ID_column"><dialogReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is the column in the Zones of Influence Layer that links a zone of influence to its tidegate.</SPAN></P></DIV></DIV></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>This is the column in the Zones of Influence Layer that links a zone of influence to its tidegate.</SPAN></P></DIV></DIV></DIV></pythonReference></param><param name="flood_output" displayname="Output floods layer/filename" type="Required" direction="Input" datatype="String" expression="flood_output"><dialogReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Filename to which the flooded areas will be saved.</SPAN></P></DIV></DIV></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Filename to which the flooded areas will be saved.</SPAN></P></DIV></DIV></DIV></pythonReference></param><param name="wetlands" displayname="Wetlands" type="Optional" direction="Input" datatype="Feature Class" expression="{wetlands}"><dialogReference><DIV STYLE="text-align:Left;"><P><SPAN>This is a polygon layer whose geometry describes potentially impacted wetlands.</SPAN></P></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>This is a polygon layer whose geometry describes potentially impacted wetlands.</SPAN></P></DIV></DIV></pythonReference></param><param name="wetland_output" displayname="Output layer/filename of impacted wetlands" type="Optional" direction="Input" datatype="String" expression="{wetland_output}"><dialogReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Filename to which the flooded wetlands will be saved.</SPAN></P></DIV></DIV></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Filename to which the flooded wetlands will be saved.</SPAN></P></DIV></DIV></DIV></pythonReference></param><param name="buildings" displayname="Buildings footprints" type="Optional" direction="Input" datatype="Feature Class" expression="{buildings}"><dialogReference><DIV STYLE="text-align:Left;"><P><SPAN>This is a polygon layer whose geometry describes potentially impacted buildings.</SPAN></P></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><P><SPAN>This is a polygon layer whose geometry describes potentially impacted wetlands.</SPAN></P></DIV></DIV></pythonReference></param><param name="building_output" displayname="Output layer/filename of impacted buildings" type="Optional" direction="Input" datatype="String" expression="{building_output}"><dialogReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Filename to which the flooded buildings will be saved.</SPAN></P></DIV></DIV></DIV></dialogReference><pythonReference><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Filename to which the flooded buildings will be saved.</SPAN></P></DIV></DIV></DIV></pythonReference></param></parameters><scriptExamples><scriptExample><title>Standard scenarios example</title><para><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Demonstrates how to evaluate all standard scenarios in python</SPAN></P></DIV></DIV></DIV></para><code>import tidegates
from tidegates import utils
workspace = r'F:\phobson\Tidegates\MB_Small.gdb'
flooder = tidegates.toolbox.StandardScenarios()
with utils.WorkSpace(workspace), utils.OverwriteState(True):
flooder._execute(
workspace=workspace,
dem=r'dem_x08',
polygons=r'ZOI',
wetlands=r'wetlands',
buildings=r'buildings',
ID_column='GeoID',
flood_output='SS_flood',
building_output='SS_bldg',
wetland_output='SS_wetland',
)</code></scriptExample></scriptExamples></tool><dataIdInfo><idCitation><resTitle>2 - Evaluate all standard scenarios</resTitle></idCitation><idCredit>Paul Hobson, Geosyntec Consutants 2015</idCredit><searchKeys><keyword>climate change</keyword><keyword>sea level rise</keyword><keyword>tidegates</keyword><keyword>massachusetts</keyword><keyword>coastal engineering</keyword><keyword>water resources</keyword></searchKeys><resConst><Consts><useLimit><DIV STYLE="text-align:Left;"><DIV><DIV><P><SPAN>Copyright (c) 2015, Geosyntec Consultants</SPAN></P><P><SPAN>All rights reserved.</SPAN></P><P><SPAN>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</SPAN></P><UL><LI><P><SPAN>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</SPAN></P></LI><LI><P><SPAN>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</SPAN></P></LI><LI><P><SPAN>Neither the name of python-tidegates nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</SPAN></P></LI></UL><P><SPAN>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</SPAN></P></DIV></DIV></DIV></useLimit></Consts></resConst></dataIdInfo><distInfo><distributor><distorFormat><formatName>ArcToolbox Tool</formatName></distorFormat></distributor></distInfo><mdHrLv><ScopeCd value="005"/></mdHrLv></metadata>