Sunday, March 30, 2008

Script to convert SIO NEU time series into CATS format.

#!/bin/csh

# Name:
# sh_sio2cat
#

# Purpose:
#

# Example:
#

# Modifications:
#

# Algorigthm:
#

# Dependency:
#


set data_dir = /home/tianyf/data/cmonoc/timeseries/xyz_deoff
#set data_dir = /home/tianyf/cats_v3.1.2/cmonoc/cmonoc_xyz_catsfmt

set files = `find $data_dir -name "*.xyz"`
#set files = `find $data_dir -name "*.xyz.cat"`

#white noise only model
foreach file ( $files )
set ofile = "/home/tianyf/cats_v3.1.2/cmonoc/cmonoc_xyz-deoff_catsfmt/`basename $file`.cat"

echo "cat $file | awk '{print $1,$4,$5,$6,$7,$8,$9}' > $ofile "
cat $file | awk '{print $1,$4,$5,$6,$7,$8,$9}' > $ofile
end


No comments: