SBAS/UsersGuide: Difference between revisions

From CIRPwiki
Jump to navigation Jump to search
No edit summary
Line 35: Line 35:
{| class = "wikitable"
{| class = "wikitable"
|+ Description of SBAS Tools
|+ Description of SBAS Tools
|-
! Topic
! style=max-width:8em | Tool Description
|-
|-
! 00 – Set Local Database
! 00 – Set Local Database
! style=max-width:8em | Tool Description
| Set the local database
|-
|-
| 01a – Create SBAS Alternative
| 01a – Create SBAS Alternative
Line 87: Line 90:
| Publish sediment budget to ArcGIS Online
| Publish sediment budget to ArcGIS Online
|}
|}


==Creating a Sediment Budget==
==Creating a Sediment Budget==

Revision as of 21:04, 23 November 2021


Versions & Requirements

SBAS ArcGIS Pro

SBAS ArcGIS Desktop

  • ESRI ArcGIS 10.1 - 10.4
  • Python comtypes package (tested with 0.6.2 - included with this tool)
URL: https://pypi.org/project/comtypes/ -- (Previous link http://starship.python.net/crew/theller/comtypes/ no longer works)
Author: Thomas Heller, theller@ctypes.org
License: MIT License
The package must be installed into the local python instance.
Install does not require admin rights.
Can be installed by running comtypes-0.6.2\install_comtypes.bat
  • Snippets.py, slightly modified code snippets file for accessing ArcObjects via Python. (Included)
File: snippets.py -- (Previous link http://www.pierssen.com/arcgis/misc.htm no longer works)
Author: Mark Cederholm
License: No specific license.
(Formerly available on http://www.pierssen.com/ and indicated "Free stuff for GIS Developers and Users!")

SBAS Desktop

SBAS Desktop is a legacy version of SBAS designed to run as a stand-alone program.
For information on all past (and present) versions of SBAS, see the SBAS main wiki page.

Using SBAS ArcGIS Pro

Installation & Launching SBAS

Figure 1. SBAS 2020 Toolbox after installation and expanded in the Catalog pane to show all the individual steps.

SBAS for ArcGIS Pro is designed as an ArcToolbox written in Python, and installation is as simple as unzipping the distribution file to a local drive. The zip file can be downloaded from here: https://www.arcgis.com/home/item.html?id=90576370d48f491fbddc7a15bbfb40d7. The zip file includes the toolbox (SBAS_2020.pyt), layer packages (*.lyrx), a settings file (SBAS_settings.txt), and a template geodatabase (SBAS.gdb). The settings file is used by the SBAS tools to easily find the local SBAS database, and must stay in the same directory as the .pyt file. To launch SBAS create a new project in ArcGIS Pro and use 'Add a Folder Connection' to add 'SBAS_2020.pyt' to your project in the Catalog pane. Within the toolbox is the individual tools that you will use to create a sediment budget (Figure 1).

Description of SBAS Tools
Topic Tool Description
00 – Set Local Database Set the local database
01a – Create SBAS Alternative Creates a sediment budget
01b – Load SBAS Alternative Load an existing sediment budget
01C – Copy SBAS Alternative Copy an existing sediment budget
02a – Plot GenCade Points Plot shoreline points from GenCade data
02b – Convert GenCade Points to Budget Features Converts GenCade data into budget cells and fluxes
03a – Import GIS Features to SBAS Alternative Import GIS features into the sediment budget
03b – Transfer Values to SBAS Cell Attributes Transfer sediment budget values from a different file into the budget alternative
03c – Create Relationship to SBAS Features Join data based on spatial relationship
03d – Show Related SBAS Attributes Create a layer file to hold a relationship between SBAS features and additional attribute data
04a – Load Complementary Data Load complementary data
04b – Load Published Sediment Budgets Load a sediment budget that is published on USACE AGOL
05a – Start Editing (Add Features) Start editing session to create features
05b – Stop Editing (Add Features) Stop editing session
06 – Recompute Residual Recalculate residual volume, transport removal, and transport placement
07 – Delete Alternative Delete Sediment Budget
08 – Share Sediment Budget Online Publish sediment budget to ArcGIS Online

Creating a Sediment Budget

Set Local Database

Tool 00 - Set Local Database is used to designate a known locality for your local SBAS database and provides the flexibility to have one or more local SBAS databases. Behind the scenes this tools is simply writing a string value into SBAS_settings.txt. Each time SBAS needs to locate the SBAS database in the data processing, it will put the value listed in this file.

Create SBAS Alternative

Sediment budget data is grouped into alternatives, which are representations of one set of assumed conditions for a sediment budget. Creating a new alternative is the first step in building the geometry container to hold littoral cells and fluxes features. Each alternative has its own set of littoral cells(with delta volume, placement/input volume, and removal/output volume) and fluxes. Alternatives may be created to reflect different assumptions about sediment-transport paths/rates and engineering activities, or they may reflect different time periods. Alternatives hold all values applied to littoral cells and fluxes, and the data is written to the 'Alternative table' in the local geodatabase.

Tool 01a - Create SBAS Alternative is used to create a new alternative for a sediment budget (Figure 3). Basic information is collected to assist in building metadata for the alternative. The following pieces are data are required:

a. Budget Type (Micro or Macro)
b. Alternative Name
c. Alternative Description
d. Geographic Area Name or Description
e. Data From (Epoch)
f. Date To (Epoch)
g. Flux Q Units (Cubic Year/Year or Cubic Meters/Year)
h. Cell Volume Units (Cubic Yards or Cubic Meters)
Figure 3. Tool 01a: Creating the SBASAlternative.

There is a checkbox to load new alternative immediately, which if ticked will add three new layers to the table of contents. Each layer will be named either "Fluxes for Alternative Name" or "Cells for Alternative Name." As different alternatives are created, each are assigned a unique ID. This value is stored in the scenarioIDPK attribute field. When added to the Table of Contents, the SBAS tool pulls the supplied layer files (Cells.lyrx, AllCells.lyrx, and Flux.lyrx) and applies a definition query to the items that filters only on the assigned unique ID for the active alternative.

Load SBAS Alternative

This is an optional step to load any alternative and its respective feature layers into the Table of Contents. All available alternatives are listed in the drop down menu that are stored in your local SBAS database, and multiple alternatives can be loaded at the same time.

Copying, Changing, and Deleting Alternatives

This tool is used to copy any existing alternative into a new alternative. This tool allows the user to reuse feature geometry for a new alternative. The user also has the ability to change specific alternative details, such as ‘Name’, ‘Description’, ‘Start’, and ‘End Date.’

1. In the Catalog pane, browse and expand the ‘SBAS.gdb.’
2. Right-click on the alternative table and select “Add to Current Map.”
3. In the Table of Contents pane, right-click on the alternative table and select “Open.”
4. In the attribute window, click the row/column value to modify and enter any changes.
5. Enter any changes, and when finished click the “Save” button on the Edit ribbon.


Sketching SBAS Feature Geometry

Creating new feature geometry in SBAS follows much of the same process inherent in GIS, however in SBAS we first have to start an 'SBAS Edit Session' so geometry is related to the correct alternative.

1. To begin launch tool 05a - Start Editing (Add Features)
2. A list of all alternative in the Table of Contents will be in the drop-down list. Choose the desired alternative and click "Run".
3. Zoom to your area of interest and click on ArcGIS Pro's Edit ribbon and click on "Create".
4. To sketch littoral cells, click on the symbol in front of the "Cells for Alternative Name" layer in the "Create Features" panel. This will expand to show the sketch options. Click on the first icon, which will turn on the sketch tool. Click in the map to drop vertices for your littoral cell polygon. Double-click to complete sketch. For sketching flux cells, select “Fluxes for Alternative Name” layer in the “Create Features” panel, and create vertices for a flux line in the direction of flux with the sketch tool. Fluxes may represent a sink for one cell and a source for another, so all fluxes are symbolized the same way and given a positive magnitude and direction.
5. When done sketching all of the new littoral cell features, launch tool 05b - Stop Editing (Add Features) to commit changes.
6. To modify location of vertices, click on the "Modify" button from ArcGIS Pro's Edit ribbon, then click on "Reshape", then "Edit Vertices." Click on the vertices to move to new location or right click to remove. Save changes when complete.

Importing SBAS Feature Geometry from GenCade Data

GenCade is a one-dimensional numerical model that calculates the shoreline change based on longshore sediment transport rates. After creating and calibrating a GenCade grid, the user can create sediment budget cells and fluxes and run the model. In the GenCade results file (_.prt) under “SBAS OUTPUT”, the results for volume change and rate for the fluxes and cells will be used with SBAS. A GenCade special report (Munger and Frey 2015) provides more information for new users on how to use GenCade, and a tech note (Frey 2015) is available for more detail on incorporating GenCade and SBAS data. When importing GenCade data, geometry for both “Cells” and “Fluxes” is created. Tools 02a - Plot GenCade Points and 02b - Convert GenCade Points to Budget Features are used for this data transformation. For the data transformation to a sediment budget, the associated GenCade files, _.gen (GenCade control file), _.slo (shoreline position file), _.prt (sediment fluxes file), and _.map(GenCade coverage file), are required. These steps only need to be run once, as the tool will import the littoral cells and fluxes at the same time.

1. First run tool 02a - Plot GenCade Points. This will plot the shoreline point locations documented in the _.slo file. The output shapefile is needed for the input into tool 02b - Convert GenCade Points to Budget Features. The starting coordinate, azimuth, and distance between points is collected from the _.slo file. If "Use Only First Date in Point Plot" is selected in the tool, only the first row of the _.slo is used for the plot.
2. Next open tool 02b - Convert GenCade Points to Budget Features. The three GenCade files and the newly created GenCade shoreline points will need to be supplied. Set the temporary placeholder feature classes for the “Cells” and “Fluxes”, set the design distant variables, and choose the alternative that will be the home for these features.

Importing SBAS Feature Geometry from Existing GIS Layers

If GIS layers are already created that represent littoral cells or fluxes, but were created outside of the SBAS toolbox, these features can be imported into SBAS.

1. Using tool 03a - Import GIS Features to SBAS Alternative, browse to an existing feature class or shapefile, then provide field mapping to connect the original field names to the SBAS values.
2. If importing littoral cells, the required fields for mapping include: Name, Description, Placement Volume, Removal Volume, and Volume Change. If importing flux cells, the required fields for mapping include: ‘Name’, ‘Description’, and ‘Q Value.’
3. Check the “Duplicate Geometries OK” checkbox to use the same cells/fluxes for multiple alternatives.


Manually Add SBAS Feature Values

Sediment budget values linked to cell volumes and fluxes can easily be added to geometry as feature attributes. Tables A2 and A3 contain the values available to edit for the littoral cells and fluxes. Within the littoral cell there are three dynamic fields: ‘residualVolume’, ‘transportRemoval’, and ‘transportPlacement.’ The values within these fields do not need to be manually updated, as they can be automatically recalculated using tool 06 – Recompute Residual. To manually add feature values:

1. From the Edit ribbon, click the “Attributes” button to open the Attribute pane.
2. Selected a budget feature (cell or flux) on the map with the Selection Tool. The attribute pane will display the values for the selected feature.
3. Click on the value next to the attribute to edit. Enter in the new value.
4. When finished, click the “Save” button on the Edit ribbon.

Transfer Values into SBAS Cell Attributes

If sediment budget geometries and values exist outside of your local SBAS database in a feature class with identical geometry, the attributes can be transferred into the selected Alternative using tool 03b – Transfer Values to SBAS Cell Attributes. To use this tool, the geometries in both datasets must match. All values from the input feature class will be used to update the littoral cell layer, and a record of all transferred values will be listed in the Results Window. Tool 06 – Recompute Residual does not need to be run as the residual is automatically recalculated.

Create Relationship to SBAS Features

Additional attribute data may be stored outside of the SBAS local database in feature classes. Contents from supplemental databases can be related to SBAS features using tool 03c - Create Relationship to SBAS Features. This tool uses spatial and non-spatial relationships to determine how to connect the data attribute to the sediment budget. If you created geometry and values outside of this SBAS toolbox, but would like to use these in your budget, this tool will create a spatial relationship and add the correct SBAS foreign keys to easily join the datasets together. This tool should be used if there is not an ID field in the comparison layer and the geometry of the compares, and therefore a simple table join cannot easily be performed. This tool does not support Grouped Layers.

1. Open tool 03c - Create Relationship to SBAS Features tool.
2. Select SBAS Layer: choose the layer in SBAS to which values will be related
3. Choose Comparison Input Layer: select the layer outside of the SBAS database to be related
4. Click "Run"

Load Complementary Data & Published Sediment Budgets

SBAS 2020 is configured to work with available content on AGOL. Tools 04a - Load Complementary Data and 04b - Load Published Sediment Budgets allow you to quickly connect to online content that have been appropriately tagged in AGOL item descriptions or data published through the SBAS 2020 toolbox (see tool 08 - Share Sediment Budget Online)

Share Sediment Budget Online

Users with an AGOL account can request access to the SBAS ArcGIS Hub (https://sbas-usace.hub.arcgis.com) to publish sediment budgets online. Using tool 08 – Share Sediment Budget Online, budgets will be published as a feature web service to the SBAS Hub. Extraneous datasets need to be removed from the Table of Contents, as the tool includes all contents in the web service. Content with multiple display options for a single dataset need to be reduced to one visualization per dataset. When publishing a budget, consider the following:

•Any existing web service with the same name will be overwritten.
•If more than one alternative is loaded in the Table of Contents, all alternatives will be combined into a single feature service but as separate layers.
•Do not publish any datasets containing personally identifiable information or other sensitive information.
•Do not publish datasets that are already available online.

Abbreviations and Acronyms Defined

AGOL - ArcGIS Online

ESRI - Environmental Systems Research Institute

GIS - Geographic Information Systems

NOAA - National Oceanographic and Atmospheric Administration

RSM - Regional Sediment Management

SBAS - Sediment Budget Analysis Systems

SDSFIE - Spatial Data Standards for Facilities, Infrastructure, and Environment

USACE - United States Army Corps of Engineers


Points of Contact

Main POC: Sean McGill
Email: Sean.P.McGill@usace.army.mil

Secondary POC: Katie Brutsche
Email: Katherine.E.Brutsche@usace.army.mil

Technical Issues: Rose Dopsovic
Email: Rose.Dopsovic@usace.army.mil



Back to Main SBAS Page