254 | | |
255 | | |
| 254 | === Creating a DEM from LiDAR and ASTER data using ''lidar_aster_dem.sh'' script === |
| 255 | ==== Configuring lidar_aster_dem.sh ==== |
| 256 | To run lidar_aster_dem.sh on your system the files listed above need to be configured in the script to point to the correct places. |
| 257 | For example, the template grass database in the script points to a place in the arsf directory and this needs to be changed to point to where your template grass database is located. |
| 258 | Variables that need to be changed: |
| 259 | * TEMPLATE_GRASS_DATABASE=/users/rsg/arsf/usr/share/grass_db_template/ |
| 260 | * WGS84LL_SEPARATION_FILE=/users/rsg/arsf/dems/aster/separation_files/uk_separation_file_WGS84LL.dem |
| 261 | * GRASS_VERSION=grass63 |
| 262 | I would advise that the grass version be 6.3 as the script was written to work with this grass version. |
| 263 | |
| 264 | ==== Using lidar_aster_dem.sh ==== |
| 265 | This is a wrapper script for asterdem.sh and lidardem.sh, so the options are similar to those above. The script is configured for internal use, so here is a out of house usage: |
| 266 | lidar_aster_dem.sh[[BR]] |
| 267 | [[BR]] |
| 268 | Generates a binary LiDAR ASTER DEM[[BR]] |
| 269 | [[BR]] |
| 270 | Arguments:[[BR]] |
| 271 | -d: Directory containing LiDAR data |
| 272 | or |
| 273 | -f: LiDAR file to create DEM from |
| 274 | -A: Directory containing raw unzipped ASTER data.[[BR]] |
| 275 | (Optional)[[BR]] |
| 276 | -h: Display usage and exit[[BR]] |
| 277 | -o: Final output filename for DEM, defulats to leaving in grass database[[BR]] |
| 278 | -c: Whether to use points of classification 7, defaults to just points of classification 1[[BR]] |
| 279 | -a: Whether to use all returns, defaults to using first return only[[BR]] |
| 280 | -r: Resolution to input LiDAR files with[[BR]] |
| 281 | -R: Resolution of output DEM, defaults to 2[[BR]] |
| 282 | -j: Create a jpg image of the DEM[[BR]] |
| 283 | -g: Grass database to use, defaults to creating a GRASS database locally[[BR]] |
| 284 | -t: Whether to use ASCII files to create the DEM, defaults to using LAS files. It is suggested to use this option if the las file are very large[[BR]] |
| 285 | -z: Specify an input projection of the LiDAR files[[BR]] |
| 286 | -p: Projection to output DEM in: input proj4 string or UKBNG or ll or UTM[zero_padded_number](N|S)[[BR]] |
| 287 | -n: North buffer, defaults to 2000[[BR]] |
| 288 | -s: South buffer, defaults to 2000[[BR]] |
| 289 | -e: East buffer, defaults to 2000[[BR]] |
| 290 | -w: West buffer, defaults to 2000[[BR]] |
| 291 | -S geoid-spheroid seperation file[[BR]] |
| 292 | |
| 293 | Examples: |
| 294 | * Create a LiDAR ASTER DEM from tiles in directory aster_tiles and UKBNG las files in las1.0 and output to a file called dem.dem (Uses default buffer size of 2000 in all directions |
| 295 | * {{{lidar_aster_dem.sh -d las1.0 -A aster_tiles -o a_dem_filename.dem}}} |
| 296 | * Create a LiDAR ASTER DEM from tiles in directory aster_tiles and utm30N las files in las1.0 and output to a file called dem.dem (Uses default buffer size of 2000 in all directions |
| 297 | * {{{lidar_aster_dem.sh -d las1.0 -z UTM30N -A aster_tiles -o a_dem_filename.dem}}} |
| 298 | * Create a LiDAR ASTER DEM from tiles in directory aster_tiles and las files in las1.0 and output to a file called dem.dem, use buffer size of 100 in all directions |
| 299 | * {{{lidar_aster_dem.sh -d las1.0 -A aster_tiles -N 100 -S 100 -E 100 -W 100-o a_dem_filename.dem}}} |