Howto:Use Terragear on Windows: Difference between revisions

Jump to navigation Jump to search
→‎Elevation: hgtchop now takes three parameters, so a for loop is in order, introduced "base directory"
(→‎Elevation: hgtchop now takes three parameters, so a for loop is in order, introduced "base directory")
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 data/SRTM-3.
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.


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. Open the commandline (Run > cmd.exe) and type this:
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])


  C:/Users/AS9423-ULT/Desktop/Terragear/hgtchop.exe 3 C:/Users/AS9423-ULT/Desktop/Amsterdam/work/SRT2M-Eurasia-3
  for %f in (.\data\SRTM-3\*.hgt) .\Terragear\hgtchop.exe 3 %f .\work\SRT2M-3


Now you will get a lot of .arr.gz files in your work/SRT2M-Eurasia-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\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!):


  C:/Users/AS9423-ULT/Desktop/Terragear/terrafit.exe .
  .\Terragear\terrafit.exe .


That's the elevation done.
That's the elevation done.

Navigation menu