Changes between Version 2 and Version 3 of PythonScripts


Ignore:
Timestamp:
Jul 26, 2018 8:50:10 PM (7 years ago)
Author:
Uriel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonScripts

    v2 v3  
    3535}}}
    3636
     37}}}
    3738
    38 }}}
    3939= [[attachment:fill_terrain_tiles.py]]
     40The NASA SRTM dataset does not include areas of the earth containing no height data (ie: the ocean). However, Maperitive is dumb about what to do if it tries to get SRTM data for an ocean and none exists, and it will fail. This script fills in the SRTM data by generating blank files to fill in the gaps. SRTM files are named for their latitude and longitude (ex: 32N042W.hgt), so the file iterates through all possible images and when a file is missing, creates it.
     41
     42This python script can be run on the command line and passed command line options. Run {{python fill_terrain_tiles.py -h}} to see these options.
     43
     44This command has already been run on the USB drive, to create the SRTMGL1_full and SRTMGL3_full folders. These folders are linked in the Maperitive cache folder using directory softlinks.
    4045
    4146= [[attachment:gen_terrain_image_script.py]]