Tute M01 Inspect Zpts MI Vertical Mapper Archive

From Tuflow
Jump to navigation Jump to search

    Introduction

    This page descirbes the process of assigning elevations in the 2D model using MapInfo with the Vertical Mapper add in. The prcess involves importing the Zpts created in the tutorial module 1 and doing an point inspection to assign elevations at each Zpt.

    Method

  1. Import the 2d_zpt_M01_5m_002.mif layer into MapInfo saving as 2d_zpt_M01_5m_003.tab. This file is located in the TUFLOW\model\mi\ directory. It is important to name the 2d_zpt table as version 003, as it will be used for Simulation 003. Add the layer to the Layer Control. The Zpts should appear as a mass of points as illustrated below.
  2. Tute M01 Inspect Zpts MI Map All Zpts.png

  3. Using the MapInfo Info tool on one of the points should show something similar to the below.
  4. Tute M01 Inspect Zpts MI Zpts Info.png

    Notice that the Elevation attribute is set at 99,999 for all Zpts. This is the TUFLOW null value. The n and m attributes are the 2D domain row and column of the 2D cell the Zpt is associated with. The Type attribute describes whether the Zpt is an H, U, V or C type. The Zpt types are explained in Section 4.4.4 of the 2010 TUFLOW User Manual. The next step is to assign elevations to each of the Zpts.
  5. Open the Vertical Mapper Grid Manager as shown below.
  6. Tute M01 Inspect Zpts MI VM Grid Manager.png

  7. Select Analysis>>Point Inspection. The Point Inspection dialog box below should appear.
  8. Tute M01 Inspect Zpts MI VM PointInspect.png

  9. Select the 2d_zpt_M01_5m_003 table and click OK.
  10. Vertical Mapper inspects every point in the 2d_zpt_M01_5m_003 table and assigns an elevation to each point based on the DEM in the Grid Manager. When finished, a MapInfo Browser window is opened displaying the attributes as shown below. Tute M01 Inspect Zpts MI VM All Browse.png

    Notice that an additional column has been generated. The -9,999 values are null values assigned by Vertical Mapper to Zpts that fall outside the DEM, or on null areas of the DEM. We need to re-shuffle the columns so that the true elevations are in the fourth column (a TUFLOW requirement). The current Elevation column can be deleted as it is not needed.
  11. Open the View/Modify Table Structure dialog box by selecting Table >> Maintenance >> Table Structure.
  12. Select the 2d_zpt_M01_5m_003 table and click OK.
  13. Remove the Elevation attribute (field) so that the DEM_M01_1 attribute is fourth in the list as shown below.
  14. Tute M01 Inspect Zpts MI TableStructure.png

    It is important to at this stage to remove all Zpts assigned the null -9,999 value as follows.
  15. Open the Select dialog box by selecting Query >> Select….
  16. Select the 2d_zpt layer and enter in a condition that selects all Zpts with -9,999 (using the Assist… dialog is useful for this). The dialog should appear as shown below.
  17. Tute M01 Inspect Zpts MI SelectNull.png

  18. Click on OK.
  19. All Zpts that have a value of -9,999 will now be highlighted with a black box on the left hand side of the Browser window that appears. Press the Delete key to delete all selected Zpts.
  20. Close the Browser Window.
  21. Save the 2d_zpt layer. If you add the layer to the Map window, you can see which Zpts remain as shown below.
  22. Tute M01 Inspect Zpts MI Map Trim Zpts.png

  23. Export the 2d_zpt layer in MID/MIF format in the same folder as the .tab file (this should be the tuflow\model\mi folder).
  24. 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).
  25. Add the following lines to the TGC file and save.
  26. Set Zpts == 75
    Read RowCol Zpts == ..\model\mi\2d_zpt_M01_5m_003.MID

    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.