code:work:lvisf:2017quicklook:start
Table of Contents
Quicklook Processing
Processing the data from an entire (or by file) flight to geolocate a quick image. All done using a Linux Mint 18 live USB stick on the Panasonic Toughbook CF-54 and external USB3 drives.
Inputs:
- Real time Applanix trajectory
- Shot data from LVIS
Linux Mint Notes
- To compile programs, you need to install this package on the linux mint live I am using
sudo apt-get install libc6-dev
- For g++ I ended up doing
sudo apt-get update sudo apt install g++
Applanix Real Time Data
Using the program applanixraw2out.c to convert the raw binary data to our .out format.
- Concatenate all of the raw data into a single binary file
cat /media/mint/LVIS_RED002/57927/B200T_N44U/imu/610i_0341/* > /media/mint/RABINE_2015_BACKUP/tmp/applanixraw57927.bin
- Extract just the trajectory information
- Compile the code
cd /home/mint/code/applanix gcc applanixraw2out.c -o applanixraw2out
- Run on the raw data
./applanixraw2out /media/mint/RABINE_2015_BACKUP/tmp/applanixraw57927.bin
- Move and rename the trajectory
mv applanix_raw_traj.out /media/mint/RABINE_2015_BACKUP/tmp/applanix57927_20170623.out
LVIS to Quicklook Data
Turn an entire flight of data into a single binary file we can geolocate.
- Change the code so that it appends to a file rather than overwriting it
- Change this
fpout = fopen(argv[2],"wb");
- To this
fpout = fopen(argv[2],"ab");
- Compile the code
g++ lvisfile2quicklook.c xmcParseMeta.cpp -o lvisfile2quicklook
- Create this shell script to run it
- Make a file name runme
- Edit the file
nano runme
- Put this in the file
#!/bin/bash for file in $1/lvis_*.dat do echo "Processing file $file..." ~/code/lvis2quicklook/lvisfile2quicklook $file /media/mint/RABINE_2015_BACKUP/tmp/lvisquicklook.dat done
- Change the permissions so you can run it
chmod 755 runme
- Run the script, and it will dump all the data into a single file
time ./runme /media/mint/LVIS_RED002/57927/B200T_N44U/rtlvis/
code/work/lvisf/2017quicklook/start.txt · Last modified: 2017/06/27 18:24 by david