Tute M01 Inspect Zpts Arc Archive

From Tuflow
Revision as of 11:58, 9 January 2023 by ElizaCollison (talk | contribs) (Created page with "<ol> =Introduction= In this page we look at the process on assigning elevations to the TUFLOW Zpts that define the elevations in the model. To do this open ArcGIS and open the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

    Introduction

    In this page we look at the process on assigning elevations to the TUFLOW Zpts that define the elevations in the model. To do this open ArcGIS and open the DEM, which is provided as part of the Module Data and is named DEM_M01.img. Alternatively a layer file the DEM_M01.img.lyr file can be opened, this opens the same DEM, but with the specific colouring properties shown below.

    Method

  1. Open the blank Zpt layer 2d_zpt_M01_5m_002_P.shp, this was written in the TUFLOW\Model\shp\ directory. The Zpts will appear as a mass of points when zoomed to the full extent.
  2. Tute M01 Arc Zpts All.png
  3. Open the Arc Toolbox (select Window >> Arc Toolbox), from the menu choose Spatial Analyst Tools >> Extraction >> Extract Values to Points.

  4. Set the input point features to 2d_zpt_M01_5m_002_P
  5. Set the Input raster to DEM_M01.img
  6. Set the output point features to the TUFLOW\model\shp\ and the file name to 2d_zpt_M01_5m_003_P.shp
  7. Select Ok.
  8. Spatial Analyst Toolboxes


    Tute M01 Arc Spatial Analyst.png

    A dialogue will be displayed while the extraction is being processed, this may take a few seconds. Once completed, clicking the info tool on one of the updated Zpts within the DEM area should now show an additional data attribute, as per the image below:
    Tute M01 Arc Zpt Info.png
    ArcGIS has adding a new data column to the which it has inspected from the DEM. The Zpts that are outside of the DEM have been assigned a value of -9,999 values. We need to remove these points, to do this:

  9. Make the newly created 2d_zpt_M01_5m_003_P.shp editable by selecting Editor >> Start Editing.
  10. Select the null values, by using the menu item. Selection >> Select by Attributes. Select where "RASTERVALU" =-9999. Select Apply.
  11. Tute M01 Arc SelectByAttributes.png
  12. Delete the selected items by hitting the delete key (or using Edit >> Delete).
  13. Stop editing, by selecting Editor >> Stop Editing and when prompted save the files.
  14. The Zpts outside the DEM area should now be removed as per the image below, ensure that the 2d_zpt_M01_5m_002_P(superseded) layer is removed or not visible.
    The inspection process created a new data column, however, TUFLOW requires the elevation data to be in the fourth column. There are two ways of overcoming this:
    • Updating the fourth (elevation) attribute column to have the values of the newly created (RASTERVALU) attribute.
    • Remove the elevation column, so that the RASTERVALU column becomes the fourth column.
    We will demonstrate the second option, the first option will results in the same data being stored twice in the shapefile, which will mean bigger file sizes.
  15. Right click on the 2d_zpt_M01_5m_003_P.shp in the ArcMap Layers control and select Open Attribute Table.
  16. Select the 'ELEVATION field, right-click on the label and select Delete Field.
  17. Deleting the Elevation Field in ArcMap
  18. When prompted select Yes
  19. Confirm Delete Field


    To confirm the delete was successful, click the info tool on one of the Zpts, the elevation field should now been removed:

    2d_Zpt fields after removal of "Elevation" field.


  20. Save the current TGC file as M01_5m_003.tgc. Comment out or delete the Write MI and Stop lines entered previously (these are no longer needed).
  21. Add the following lines to the TGC file and save.
  22. Set Zpts == 75
    Read RowCol Zpts == ..\model\shp\2d_zpt_M01_5m_003_P.dbf

    Conclusion

    The Zpts have been inspected from the DEM, the geometry control file (.tgc) updated to use the inspected Zpts. Please return to the tutorial model module 1 page where the next step is to define the active areas.