Making Single PPI and RHI Images with Python

Making single PPI images with Python:

First, you must log onto the typhon server with your user account information ('ssh -p 4964 username@typhon'). If you are working with REAL BSCAN files, go to this directory: ~/Code/Python/Toolbox/lidarRunTime. If you are working with SAMPLE BSCAN files, go to this directory: ~/Code/Python/SAMPLE_scripts/lidarRunTime. Once you're in the right directory, follow these steps:

Option 1: For REAL BSCANS, first type 'PYTHONPATH=~/Code/Python/Toolbox'. For SAMPLE BSCANS, first type 'PYTHONPATH=~/Code/Python/SAMPLE_scripts'. Once your path is set correctly, type 'python viewScan.py -t PPI -tmin' followed by a space and the date-time of the chosen BSCAN in the following format (including quotation marks): 'year-month-day hour:min:sec'. Follow this with a space, the '-o' argument, another space, and the chosen-path-for-output. Also, make sure to set the desired x-range and y-range (in meters) for your image by using the '-xmin', '-ymin', '-xmax', and '-ymax' options: e.g., '-xmin 0 -ymin 0 -xmax 5000 -ymax 2500'.

Option 2: Type 'python viewScan.py -s PPI' followed by a space and the path-to-chosen-BSCAN. Follow this with a space, the '-o' argument, another space, and the chosen-path-for-output. Also, make sure to set the desired x-range and y-range (in meters) for your image by using the '-xmin', '-ymin', '-xmax', and '-ymax' options: e.g., '-xmin 0 -ymin 0 -xmax 5000 -ymax 2500'.

Add-Ons: Different arguments can be added onto these to modify scan aspects such as units, grid, colors, and range of data. Use 'python viewScan.py -h' to see all possible arguments. Common arguments include: '--no' to disable median filtering, and '--style' followed by a space and resolution-option. By default, a web-compatible image is generated. Other choices include '720p' for HD-ready, '1080p' for full-HD, and 'print' for print-compatible resolution. Add on the '--show' argument to see images right away.

Example: PYTHONPATH=~/Code/Python/Toolbox python viewScan.py -t PPI -tmin '2013-10-23 23:30:31' -o ~ -xmin 0 -ymin 0 -xmax 5000 -ymax 2500

Making single RHI images with Python:

First, you must log onto the typhon server with your user account information ('ssh -p 4964 username@typhon'). If you are working with REAL BSCAN files, go to this directory: ~/Code/Python/Toolbox/lidarRunTime. If you are working with SAMPLE BSCAN files, go to this directory: ~/Code/Python/SAMPLE_scripts/lidarRunTime. Once you're in the right directory, follow these steps:

Option 1: For REAL BSCANS, first type 'PYTHONPATH=~/Code/Python/Toolbox'. For SAMPLE BSCANS, first type 'PYTHONPATH=~/Code/Python/SAMPLE_scripts'. Once your path is set correctly, type 'python viewScan.py -t RHI -tmin' followed by a space and the date-time of the chosen BSCAN in the following format (including quotation marks): 'year-month-day hour:min:sec'. Follow this with a space, the '-o' argument, another space, and the chosen-path-for-output. Also, make sure to set the desired x-range and y-range (in meters) for your image by using the '-xmin', '-ymin', '-xmax', and '-ymax' options: e.g., '-xmin 0 -ymin 0 -xmax 5000 -ymax 2500'.

Option 2: Type 'python viewScan.py -s RHI' followed by a space and the path-to-chosen-BSCAN. Follow this with a space, the '-o' argument, another space, and the chosen-path-for-output. Also, make sure to set the desired x-range and y-range (in meters) for your image by using the '-xmin', '-ymin', '-xmax', and '-ymax' options: e.g., '-xmin 0 -ymin 0 -xmax 5000 -ymax 2500'.

Add-Ons: Different arguments can be added onto these to modify scan aspects such as units, grid, colors, and range of data. Use 'python viewScan.py -h' to see all possible arguments. Common arguments include: '--no' to disable median filtering, and '--style' followed by a space and resolution-option. By default, a web-compatible image is generated. Other choices include '720p' for HD-ready, '1080p' for full-HD, and 'print' for print-compatible resolution. Add on the '--show' argument to see images right away.

Example: PYTHONPATH=~/Code/Python/SAMPLE_scripts python viewScan.py -t RHI -tmin '2013-10-23 23:30:31' -o ~ -xmin 0 -ymin 0 -xmax 5000 -ymax 2500