logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

terraintool — Generating surface meshes for cave survey software

Author

       This      manpage      was       generated       from       the       online       documentation       at
       http://www.ubss.org.uk/terraintool/terraintool.php,       which      is      also      reproduced      in
       file:///usr/share/doc/terraintool/README.html.  Permission is granted to copy, distribute  and/or  modify
       this document under the terms of the GNU General Public License, Version 3 published by the Free Software
       Foundation.

       On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-
       licenses/GPL.

                                                                                                  Terraintool(1)

Description

       TerrainTool  was  written to create surface topographic data for the cave survey packages Survex(linktoURLhttp://survex.com)  and Therion(linktoURLhttp://therion.speleo.sk)   using  the  results  of  the
       ShuttleRadarTopographyMission(linktoURLhttp://www2.jpl.nasa.gov/srtm/)  (SRTM) in which the
       shuttle Endeavour mapped the height of the Earth's surface between the latitudes 60 degrees North and  56
       degrees  South - about 80% of the Earth's land mass. Published resolution was 1 arc-second for the US and
       its territories and 3 arc-seconds elsewhere.  The latter corresponds to about 90m  at  the  equator.  The
       resulting  data  is  royalty-free  and,  for  many  countries,  may  be the only data publicly available.
       TerrainTool is able to automatically download the "tiles" of data that it needs,  directly  from  a  USGS
       server.

       Because  the  SRTM  radar imaging worked by using an oblique scan of the earth's surface, it had problems
       with shadowing where, despite multiple passes, areas remained hidden, resulting in  voids  in  the  data.
       This  is  particularly  noticeable in mountainous areas. A subsequent project AdvancedSpaceborneThermalEmissionandReflectionRadiometer(ASTER)(linktoURLhttp://www.jpl.nasa.gov/news/news.cfm?release=2009-103)    used   infra-red  nadir-viewing  camera  (i.e.
       directly downward) which, in post-processing over multiple orbits created stereo images from which height
       could be derived. This overcame the shadowing problem but the view  could  be  obstructed  by  cloud  and
       vegetation  cover  and suffered from "artefacts" - spurious features which are by-products of the imaging
       process. On it's own, the ASTER Digital Elevation Model (DEM) is unsuitable for cave surveying.

       Finally complete in February 2020, NASA released a new DEM by re-processing "global"  1  arc-second  SRTM
       data  and  carefully filling in the voids with re-processed ASTER data.  The result, NASADEM, is thus the
       highest resolution void-free near-global DEM that we have available. The only disadvantages are

          •  The tiles are typically 9 times the size of the 3 arc-second SRTM data,  so  they  take  longer  to
             download and process and occupy more disk space

          •  You  need  to  be logged into an Earthdata account to download the data. Unfortunately, TerrainTool
             cannot to do this for you so auto-download is  disabled.  However,  signing  up  for  an  Earthdata
             account   is   quick   and   easy   at   https://urs.earthdata.nasa.gov/users/new/(linktoURLhttps://urs.earthdata.nasa.gov/users/new/)

       With the completion of NASADEM, this release of TerrainTool uses it as its only source of data.

       Having  logged  in  to  your  Earthdata  account,  you  can  find  the   NASADEM   data   by   going   to
       https://lpdaac.usgs.gov/products/nasadem_hgtv001/(linktoURLhttps://lpdaac.usgs.gov/products/nasadem_hgtv001/)  ) selecting "Access Data" and "Download Data" next to
       "Data Pool" and clicking on the directory link will take you to a huge page  containing  all  the  tiles,
       currently    at    https://e4ftl01.cr.usgs.gov/MEASURES/NASADEM_HGT.001/2000.02.11/(linktoURLhttps://e4ftl01.cr.usgs.gov/MEASURES/NASADEM_HGT.001/2000.02.11/) Please note  that  this  URL  might  be
       subject  to  change  without notice. The page can take several minutes to download so don't panic if your
       browser freezes! Tile files are the ones ending  ".zip"  and  preceded  by  the  relevant  lat/long  e.g.
       NASADEM_HGT_n52w003.zip  You  can  download  tiles  with  a browser. Do NOT try unpacking the zip files -
       TerrainTool reads them in zipped form.

       TerrainTool does the following:-

          •  Converts between the spherical (Lat/Lon) coordinates used  in  the  tiles  and  a  variety  of  map
             coordinates  used  by  cave surveyors so that the surface mesh and cave survey can be combined in a
             single model based on the local map  coordinate  system.  Coordinate  systems  currently  supported
             include British (OSGB) grid, Irish grid, UTM, French (Lambert conical projections), Austrian grids,
             Slovenian  Grid  and  New  Zealand's  NZMG  and  NZTM2000. The internal design is intended to allow
             additional coordinate systems to be added easily.

          •  Re-samples the data using biaxial interpolation to create  a  rectangular  mesh  of  user-specified
             spacing.

          •  Displays a coloured topographic map of the mesh.

          •  Adds  a  user-specified  offset  (3-D)  to  the  coordinates to align with coordinates used for the
             underground survey.

          •  Saves the mesh as surface data in Survex (.svx) or Therion (.th) format.

       The programme, written in Java, provides a conventional GUI-style interface and will run  under  Windows,
       Solaris, macOS and Linux operating systems.

       "TerrainTool"  was written by Mike McCombe who is very grateful to UBSS for giving it a home. Please feel
       free to contact Mike with feedback or requests for help at mikemccombe <at> mikemccombe.co.uk or via  the
       Survexlist(linktoURLhttp://survex.com/maillist.html) .

Driving Instructions

       TerrainTool  is  a  conventional  GUI-based  application with a menu bar and dialog boxes to gather user-
       information. To get started, do the following:

          1. If you already know which tiles you will need from the NASADEM dataset, download them now and  save
             them    in   the   data   directory.   This   is   ~/.local/share/terraintool/   by   default,   or
             $XDG_DATA_HOME/terraintool/ if $XDG_DATA_HOME is set. Otherwise, when you try to create  the  mesh,
             TerrainTool will provide an error message to say which tile it needs and where to store it.

          2. Select the required coordinatesystem using the Options menu.

          3. Go to Create on the File menu to specify the size, location and resolution of the mesh.

          4. Save the results as in Survex (.svx) or Therion (.th) format

          5. Use  Survex  to process the file and Aven to view the results in 3D.  Remember to enable viewing of
             surface legs in Aven!

          6. Use the Offset command in the Options menu to fully align the terrain  data  with  the  coordinates
             used in your survey.

          7. When generating surface data in Therion format, Therion needs to be told the coordinate system used
             for  the  surface  data  in a form that it recognises (e.g. EPSG:27700). See the description of the
             surface command in the Therion Book for more details.

          8. Incorporate the terrain data into your survey project.

Name

       terraintool — Generating surface meshes for cave survey software

Synopsis

terraintool
return

See Also