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

Both sides previous revisionPrevious revision
Next revision
Previous revision
code:work:lvisf:2017quicklook:start [2017/06/27 18:08] davidcode:work:lvisf:2017quicklook:start [2017/06/27 18:24] (current) – [LVIS to Quicklook Data] david
Line 39: Line 39:
 Turn an entire flight of data into a single binary file we can geolocate. 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/work/lvisf/2017quicklook/start.1498586905.txt.gz · Last modified: 2017/06/27 18:08 by david