User Tools

Site Tools


code:work:lvisf:2017quicklook:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code:work:lvisf:2017quicklook:start [2017/06/27 18:01] – created davidcode:work:lvisf:2017quicklook:start [2017/06/27 18:24] (current) – [LVIS to Quicklook Data] david
Line 12: Line 12:
 sudo apt-get install libc6-dev sudo apt-get install libc6-dev
 </code> </code>
 +  * For **g++** I ended up doing <code> 
 +sudo apt-get update 
 +sudo apt install g++ 
 +</code>
 ===== Applanix Real Time Data ===== ===== Applanix Real Time Data =====
  
Line 30: Line 33:
     * Move and rename the trajectory <code>     * Move and rename the trajectory <code>
 mv applanix_raw_traj.out /media/mint/RABINE_2015_BACKUP/tmp/applanix57927_20170623.out mv applanix_raw_traj.out /media/mint/RABINE_2015_BACKUP/tmp/applanix57927_20170623.out
 +</code>
 +
 +===== 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 <code>
 +fpout = fopen(argv[2],"wb");
 +</code>
 +    * To this <code>
 +fpout = fopen(argv[2],"ab");
 +</code>
 +  * Compile the code <code>
 +g++ lvisfile2quicklook.c xmcParseMeta.cpp -o lvisfile2quicklook
 +</code>
 +  * Create this shell script to run it
 +    * Make a file name **runme**
 +      * Edit the file <code>
 +nano runme
 +</code>
 +      * Put this in the file <code>
 +#!/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
 +</code>
 +    * Change the permissions so you can run it <code>
 +chmod 755 runme
 +</code>
 +  * Run the script, and it will dump all the data into a single file <code>
 +time ./runme /media/mint/LVIS_RED002/57927/B200T_N44U/rtlvis/
 </code> </code>
code/work/lvisf/2017quicklook/start.1498586490.txt.gz · Last modified: 2017/06/27 18:01 by david