Skip to content
/ ArcSwath Public

An efficient swath profile analysis tool for ArcGIS 10.2 and later.

License

Notifications You must be signed in to change notification settings

HUGG/ArcSwath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArcSwath

An efficient swath profile analysis tool for ArcGIS 10.2 and later.

Installation

The easy way (try this first)

  1. Download the ArcSwath Add-In.
  2. Double click on the ArcSwath-git.esriaddin file after it downloads and click Install Add-In.
  3. Create a directory C:\WorkSpace if it does not already exist. This is needed for plotting to work.

The slightly harder way (if the easy way doesn't work)

  1. Download all of the ArcSwath files by clicking on the Clone or download button on the top right and then Download ZIP.
  2. Unzip the files and double click on the makeaddin.py file.
  3. Double click on the ArcSwath-git.esriaddin file and click Install Add-In.
  4. Create a directory C:\WorkSpace if it does not already exist. This is needed for plotting to work.

Preparing your data

There are a few data requirements needed for the ArcSwath tool to work properly. To ensure proper functioning of the tool, please make sure your data meet the following criteria:

  • Point and raster data should be projected in UTM coordinates. This is required for the geometrical calculations that are used in the code.
  • The Pixel Type for raster files should be signed integer. Conversion can be done using the Int tool in Spatial Analyst.
  • For SRTM data you may want to process the data to adjust near sea level values.
  • The noData value for raster data must be defined. If undefined, a value can be set in ArcCatalog.

Using ArcSwath

![ArcSwath toolbar] (Images/ArcSwathtoolbar.JPG)
ArcSwath toolbar

    1. Select input raster. The list is same as your Table of Contents. Use only raster files.
    1. Select input point file. The list is same as your Table of Contents. Use point data.
    1. In point feature you can select the data from Attribute Table.
    1. Select what data you want to plot with matplotlib library. The tool will check if you have matplotlib. Also a csv file will be written.
    1. Select the starting and end point by clicking the map.*
    1. How wide your swath profile will be (in meters). Type in or select from the drop-down list.
    1. The increment sets how often (in meters) minimum, mean and maximum values are calculated along profile lenght.
    1. Click and your swath profile will be extracted.

How does ArcSwath work?

After you click Calculate:

  1. The script calculates 4 points for a rectangle according to the two points (Point 1 and 2) you clicked and the width you defined. Then it creates a polygon of the points.
  2. The code checks that your input raster is really a raster layer and the same for the input point data.
  3. The code names and defines working directory for the raster layer.
  4. The polygon is used to exract raster layer. Then smaller boxes according to increment are extracted inside the previously extracted raster layer. Minimum, mean and maximum values are the added to arrays and written into a csv file.
  5. Then the plotting for raster file is defined.
  6. First for the point files naming and working directory is defined.
  7. The points are clipped inside the polygon which was created in the end of step 1.
  8. Then the points are calculated to fit a line going trough the points 1 and 2. For each point the distance to the point 1 is calculated and the dataa is written to a csv file.
  9. Plotting for points is defined.
  10. The entire plotting is then defined.

About

An efficient swath profile analysis tool for ArcGIS 10.2 and later.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages