Howto:Use Terragear on Windows: Difference between revisions

Jump to navigation Jump to search
→‎Elevation: corrected working directories for compatablility with genapts
m (→‎Elevation: missing do in for loop)
(→‎Elevation: corrected working directories for compatablility with genapts)
Line 19: Line 19:
From now on, we'll assume you are using SRTM-3 data. Unless otherwise noted, the process for SRTM-1 is identical.
From now on, we'll assume you are using SRTM-3 data. Unless otherwise noted, the process for SRTM-1 is identical.


You can get download the appropriate data from ftp://e0srp01u.ecs.nasa.gov/srtm. You want all .hgt.zip files covering your region of interest. Depending on the size of your scenery, there may be quite a few. Download them to <tt>data\SRTM-3</tt> in your base directory.
You can get download the appropriate data from ftp://e0srp01u.ecs.nasa.gov/srtm. You want all .hgt.zip files covering your region of interest. Depending on the size of your scenery, there may be quite a few. Download them to <tt>data\SRTM-30</tt> in your base directory. (The reason why the directories are called SRTM-30 is because genapts will look for a few known, hardcoded directories in it's working directory. SRTM-30 is one of them and is the least confusing in that list.)


Now we've got the data, we need to convert it into something of use to TerraGear. First, you need to unzip each of the .hgt files. After that, open the commandline (Run > cmd.exe) and change into the base directory. Then type this: ('''NOTE:''' if you want to create a batch-file, repace <tt>%f</tt> with <tt>%%f</tt>, see [http://technet.microsoft.com/en-us/library/bb490909.aspx])
Now we've got the data, we need to convert it into something of use to TerraGear. First, you need to unzip each of the .hgt files. After that, open the commandline (Run > cmd.exe) and change into the base directory. Then type this: ('''NOTE:''' If you want to create a batch-file, repace <tt>%f</tt> with <tt>%%f</tt>, see [http://technet.microsoft.com/en-us/library/bb490909.aspx]) ('''NOTE:''' For SRTM-1 data, repalce the <tt>3</tt> by a <tt>1</tt> in the first argument to hgtchop)


  for %f in (.\data\SRTM-3\*.hgt) do .\Terragear\hgtchop.exe 3 %f .\work\SRT2M-3
  for %f in (.\data\SRTM-30\*.hgt) do .\Terragear\hgtchop.exe 3 %f .\work\SRTM-30


Now you will get a lot of .arr.gz files in your work\SRT2M-3\ directory. We need to convert these to the .fit.gz format. Run the commandline again with ('''NOTE:''' the space and dot at the and are important!):
Now you will get a lot of .arr.gz files in your work\SRTM-30\ directory. We need to convert these to the .fit.gz format. Run the commandline again with ('''NOTE:''' the space and dot at the and are important!):


  .\Terragear\terrafit.exe .
  .\Terragear\terrafit.exe .

Navigation menu