399
edits
Michaelfavor (talk | contribs) m (→Land Use: typo) |
No edit summary |
||
Line 18: | Line 18: | ||
You'll be dealing with multiple different types of data in various formats. Create a new directory for your scenery work. Underneath this, create the following sub-directories: | You'll be dealing with multiple different types of data in various formats. Create a new directory for your scenery work. Underneath this, create the following sub-directories: | ||
* data for raw and pre-processed data | * '''data/''' - for raw and pre-processed data (eg elevation files) | ||
* work for data that has been processed ( | * '''work/''' - for data that has been processed (eg by shape-decode) and is ready to be munged into scenery | ||
* output for the scenery files you will create | * '''output/''' - for the scenery files you will create | ||
Terragear needs three different pieces of information to generate scenery. | Terragear needs three different pieces of information to generate scenery. | ||
Line 41: | Line 41: | ||
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. (An alternative mirror for Europe is http://netgis.geo.uw.edu.pl/srtm/Europe/ ). 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. (An alternative mirror for Europe is http://netgis.geo.uw.edu.pl/srtm/Europe/ ). 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/'''. | ||
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. Use a shell script like the following to unzip all the files: | 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. Use a shell script like the following to unzip all the files: | ||
Line 50: | Line 50: | ||
done | done | ||
Now we've unzipped the data, we need to convert it into TerraGear format files in our work directory. The command to use for this is hgtchop. First create a work/SRTM-30 directory. Again, use a shell script to convert each of the files in turn: | Now we've unzipped the data, we need to convert it into TerraGear format files in our work directory. The command to use for this is hgtchop. First create a '''work/SRTM-30/''' directory. Again, use a shell script to convert each of the files in turn: | ||
for i in *.hgt | for i in *.hgt | ||
Line 65: | Line 65: | ||
We're not yet finished with the elevation data. Currently it is in a very inefficient form, with data points evenly spread across lon/lat. This is inefficient, as large tracts of land have the same elevation. We will use the terrafit.py Python script to make this more efficient. | We're not yet finished with the elevation data. Currently it is in a very inefficient form, with data points evenly spread across lon/lat. This is inefficient, as large tracts of land have the same elevation. We will use the terrafit.py Python script to make this more efficient. | ||
Change directory to work/SRTM-30 and run | Change directory to '''work/SRTM-30/''' and run | ||
terrafit.py . | terrafit.py . | ||
Line 87: | Line 87: | ||
If you are generating a larger set of scenery, then you can specify the minimum and maximum longitude and latitude. | If you are generating a larger set of scenery, then you can specify the minimum and maximum longitude and latitude. | ||
genapts will create two sub-directories in your work directory - AirportArea and AirportObj. These | genapts will create two sub-directories in your work directory - AirportArea/ and AirportObj/. These contain the definitions of the airport layout and any objects present (e.g. windsocks). | ||
Right, that's the airports sorted out. | Right, that's the airports sorted out. |
edits