Howto:Use Terragear on Windows: Difference between revisions

Jump to navigation Jump to search
m
→‎Elevation: missing do in for loop
(→‎Elevation: hgtchop now takes three parameters, so a for loop is in order, introduced "base directory")
m (→‎Elevation: missing do in for loop)
Line 23: Line 23:
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])


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


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\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!):

Navigation menu