IMPORTANT

1. cube data will be available only after a few minutes runtime, since the GPS needs a few minutes to collect GPS data
2. when you remove/switch off cubes with cycled GPS, remember that you want to wait at least GPS_OF minutes to get 
   timing information after the last event (shot, blastm, quake, etc.)
3. if you use vertical component geophones, place them at leats 10 cm away from the cube
4. OBS mode for data conversion (pcube2asc_mc -s): use it only if the cube has GPS at the beginning and end of the data acquisition
5. if you convert data to ASCII, remember that all timing information is in GPS time (NOT UTC!)

IMPORTANT
download qlib2 from http://www.ncedc.org/qug/software/ucb/
unzip/tar
goto qlib directory
make clean
make all64
then go back and compile cube software by typing "make"

DATA CONVERSION

# regular conversion from CUBE to mseed

# individual files
./cube_merge_mc 03291144.151 | ./pcube2asc_mc  | ./add_time_mc | ./resamp_mc | ./asc2mseed_mc -v

# daily files with correct file creation times
./cube_merge_mc `ls -tr /path_to_data/????????.??? ` | ./pcube2asc_mc  | ./add_time_mc | ./resamp_mc | ./asc2mseed_mc  -v
# or
./cube_merge_mc `ls /path_to_data/????????.??? ` | ./pcube2asc_mc  | ./add_time_mc | ./resamp_mc | ./asc2mseed_mc  -v

############# IMPORTANT ###################
# cube_merge_mc expects data files from one individual cube in chronological order with no gaps!
###########################################

# conversion to ascii raw stream with time string
./cube_merge_mc 03291144.151 | ./pcube2asc_mc  | ./add_time_mc -t 

# conversion to ascii resampled stream with time string
./cube_merge_mc 03291144.151 | ./pcube2asc_mc  | ./add_time_mc | ./resamp_mc -t 

# input to drift analysis
cat 03291144.151 | ./pcube2asc_mc -t

# input to GPS analysis
cat 03291144.151 | ./pcube2asc_mc  -g

# to convert "OBS style data", i.e. data with GPS only at the beginning and end of recording
cat 03291144.151 | ./pcube2asc_mc -s | ./add_time_mc | ./resamp_mc | ./asc2mseed_mc  -v

