if ( 4 != 4 ) then
set DAY = 2007.10.4_12
set FINAL = /synoptic/farside//FSI_lowres
set nuRANGE = .0025-.0045
set NUM_6H_BLOCKS = 6
setenv BASE_WD /home/soi/farside++
setenv FS_DATA `pwd`
pwd
setenv SCRIPTS /home/soi/farside++/scripts++
setenv INPUT /tmp/2007.10.4_12.7028/in
setenv OUTPUT /tmp/2007.10.4_12.7028/out
set path= ( /home/soi/farside++/scripts++ /home/soi/farside++/bin/_linux4 /home/soi/farside++/FS_scripts /home/soi/farside++/FS_bin/_linux4 ~CM/bin/_linux4 /bin /usr/bin )
setenv FRAMEDIR /tmp/2007.10.4_12.7028/out/FRAMES
setenv STACKLIST_NAME /tmp/2007.10.4_12.7028/out/STACKLIST01
setenv BLANK_NAME /tmp/2007.10.4_12.7028/out/BLANK
setenv REAL_STACKNAME PSI_X_T
setenv FOURIER_STACKNAME PSI_X_NU
setenv MEAN_IMAGE_NAME /tmp/2007.10.4_12.7028/out/MEAN_IMAGE
setenv SLOPE_IMAGE_NAME /tmp/2007.10.4_12.7028/out/SLOPE_IMAGE
setenv DEFECTIVE_PIX_LIST_NAME /tmp/2007.10.4_12.7028/out/DEFECTIVE_PIX_LIST
setenv MISSING_IMAGE_LIST_NAME /tmp/2007.10.4_12.7028/out/MISSING_IMAGE_LIST
setenv INPUT_DATACUBE /tmp/2007.10.4_12.7028/out/PSI_X_NU
setenv INTERMED_DATACUBE /tmp/2007.10.4_12.7028/out/PSI_X_NU_2.5_4.5mHz
setenv XPOSE_DATACUBE /tmp/2007.10.4_12.7028/out/XPOSE_PSI_X_NU_2.5_4.5mHz
setenv PHASE_CORR_1x3 /tmp/2007.10.4_12.7028/out/PHASE_CORR_1x3
setenv PHASE_CORR_2x2 /tmp/2007.10.4_12.7028/out/PHASE_CORR_2x2
set BASE_SIX_H = `time_index -6 time=$DAY':00'`
time_index -6 time=2007.10.4_12:00
@ START_SIX_H = 21558 - ( 6 / 2 )
@ END_SIX_H = 21558 + ( 6 / 2 ) - 1
echo *****************************************************
*****************************************************
echo ******starting farside image processing for 2007.10.4_12******
******starting farside image processing for 2007.10.4_12******
echo getting data. base six hour number: 21558
getting data. base six hour number: 21558
echo starting 6h num: 21555
starting 6h num: 21555
echo going until 6h num: 21560
going until 6h num: 21560
echo working directory: /tmp/2007.10.4_12.7028
working directory: /tmp/2007.10.4_12.7028
echo ********* producing lev 1.8 data *************
********* producing lev 1.8 data *************
set SIX_H = 21555
rm -r -f /tmp/2007.10.4_12.7028/in /tmp/2007.10.4_12.7028/out
mkdir /tmp/2007.10.4_12.7028/in
mkdir /tmp/2007.10.4_12.7028/out
echo copying parameters
copying parameters
cp -r /home/soi/farside++/scripts++/params /tmp/2007.10.4_12.7028/
echo working directory is  /tmp/2007.10.4_12.7028
working directory is  /tmp/2007.10.4_12.7028
echo setting up symbolic links
setting up symbolic links
rm -rf /tmp/2007.10.4_12.7028/out/eof_data_used
while ( 21555 < = 21560 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21555]
if ( 0 ) then
echo GOT HERE /PDS22/D13011780/lev1.8/vw_V_06h.21555
GOT HERE /PDS22/D13011780/lev1.8/vw_V_06h.21555
if ( /PDS22/D13011780/lev1.8/vw_V_06h.21555 =~ ###* ) then
echo linking to directory: /PDS22/D13011780/lev1.8/vw_V_06h.21555 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21555
linking to directory: /PDS22/D13011780/lev1.8/vw_V_06h.21555 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21555
ln -s /PDS22/D13011780/lev1.8/vw_V_06h.21555 /tmp/2007.10.4_12.7028/in/vw_V_06h.21555
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS22/D13011780/lev1.8/vw_V_06h.21555/vw_V_06h.21555.overview.fits
grep DSNAME
fgrep -c eof
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
if ( 0 > 0 ) then
@ SIX_H++
end
while ( 21556 < = 21560 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21556]
if ( 0 ) then
echo GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021556
GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021556
if ( /PDS21/D12952837/lev1.8/vw_V_06h.021556 =~ ###* ) then
echo linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021556 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21556
linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021556 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21556
ln -s /PDS21/D12952837/lev1.8/vw_V_06h.021556 /tmp/2007.10.4_12.7028/in/vw_V_06h.21556
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS21/D12952837/lev1.8/vw_V_06h.021556/vw_V_06h.21556.overview.fits
grep DSNAME
fgrep -c eof
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
if ( 0 > 0 ) then
@ SIX_H++
end
while ( 21557 < = 21560 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21557]
if ( 0 ) then
echo GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021557
GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021557
if ( /PDS21/D12952837/lev1.8/vw_V_06h.021557 =~ ###* ) then
echo linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021557 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21557
linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021557 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21557
ln -s /PDS21/D12952837/lev1.8/vw_V_06h.021557 /tmp/2007.10.4_12.7028/in/vw_V_06h.21557
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS21/D12952837/lev1.8/vw_V_06h.021557/vw_V_06h.21557.overview.fits
grep DSNAME
fgrep -c eof
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
if ( 0 > 0 ) then
@ SIX_H++
end
while ( 21558 < = 21560 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21558]
if ( 0 ) then
echo GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021558
GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021558
if ( /PDS21/D12952837/lev1.8/vw_V_06h.021558 =~ ###* ) then
echo linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021558 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21558
linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021558 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21558
ln -s /PDS21/D12952837/lev1.8/vw_V_06h.021558 /tmp/2007.10.4_12.7028/in/vw_V_06h.21558
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS21/D12952837/lev1.8/vw_V_06h.021558/vw_V_06h.21558.overview.fits
grep DSNAME
fgrep -c eof
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
if ( 0 > 0 ) then
@ SIX_H++
end
while ( 21559 < = 21560 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21559]
if ( 0 ) then
echo GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021559
GOT HERE /PDS21/D12952837/lev1.8/vw_V_06h.021559
if ( /PDS21/D12952837/lev1.8/vw_V_06h.021559 =~ ###* ) then
echo linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021559 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21559
linking to directory: /PDS21/D12952837/lev1.8/vw_V_06h.021559 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21559
ln -s /PDS21/D12952837/lev1.8/vw_V_06h.021559 /tmp/2007.10.4_12.7028/in/vw_V_06h.21559
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS21/D12952837/lev1.8/vw_V_06h.021559/vw_V_06h.21559.overview.fits
grep DSNAME
fgrep -c eof
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
if ( 0 > 0 ) then
@ SIX_H++
end
while ( 21560 < = 21560 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21560]
if ( 0 ) then
echo GOT HERE /PDS22/D12953494/lev1.8/vw_V_06h.021560
GOT HERE /PDS22/D12953494/lev1.8/vw_V_06h.021560
if ( /PDS22/D12953494/lev1.8/vw_V_06h.021560 =~ ###* ) then
echo linking to directory: /PDS22/D12953494/lev1.8/vw_V_06h.021560 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21560
linking to directory: /PDS22/D12953494/lev1.8/vw_V_06h.021560 to /tmp/2007.10.4_12.7028/in/vw_V_06h.21560
ln -s /PDS22/D12953494/lev1.8/vw_V_06h.021560 /tmp/2007.10.4_12.7028/in/vw_V_06h.21560
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS22/D12953494/lev1.8/vw_V_06h.021560/vw_V_06h.21560.overview.fits
grep DSNAME
fgrep -c eof
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
if ( 0 > 0 ) then
@ SIX_H++
end
while ( 21561 < = 21560 )
echo ***************************************
***************************************
echo ************** JOB01 ******************
************** JOB01 ******************
date
Tue Oct 16 14:05:45 PDT 2007
sh JOB01
/tmp/2007.10.4_12.7028/in /tmp/2007.10.4_12.7028
Expanding subdirectory vw_V_06h.21555
preprocess_cube: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
unstack: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Expanding subdirectory vw_V_06h.21556
preprocess_cube: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
unstack: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Expanding subdirectory vw_V_06h.21557
preprocess_cube: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
unstack: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Expanding subdirectory vw_V_06h.21558
preprocess_cube: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
unstack: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Expanding subdirectory vw_V_06h.21559
preprocess_cube: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
unstack: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Expanding subdirectory vw_V_06h.21560
preprocess_cube: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
unstack: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
/tmp/2007.10.4_12.7028
/tmp/2007.10.4_12.7028/out /tmp/2007.10.4_12.7028
/tmp/2007.10.4_12.7028
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
blank_frame: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
mv: cannot stat `/tmp/2007.10.4_12.7028/out/BLANK': No such file or directory
collapse: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
JOB01: line 1: /tmp/2007.10.4_12.7028/out/STACKLIST01: No such file or directory
lp2ge: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
echo ***************************************
***************************************
echo ************** JOB02 ******************
************** JOB02 ******************
date
Tue Oct 16 14:05:47 PDT 2007
sh JOB02
echo JOB02 begin now
JOB02 begin now

#Stack images which map_mdi_lowres has made into a data cube.  Transpose 
#this data cube so that the time index is x.  Analyze the temporal profile 
#of each pixel removing its average, its linear trend, and setting pixels 
#in the temporal sequence that are apparently bad to zero.  Fourier-transform
#the data in time and transpose the data cube back to the original 
#configuration.

# moved IO locations to main script, so these aren't needed
#Output info:

#FS_DATA=`pwd`
#OUTPUT=$FS_DATA'/out'
#REAL_STACKNAME='PSI_X_T'  #Name of real data cube created
#FOURIER_STACKNAME='PSI_X_NU'   #Name of Fourier transformed data cube created
#MEAN_IMAGE_NAME=$OUTPUT'/MEAN_IMAGE'
#SLOPE_IMAGE_NAME=$OUTPUT'/SLOPE_IMAGE'
#DEFECTIVE_PIX_LIST_NAME=$OUTPUT'/DEFECTIVE_PIX_LIST'
#MISSING_IMAGE_LIST_NAME=$OUTPUT'/MISSING_IMAGE_LIST'

#Input info:

#changed STACK_LIST_NAME to STACKLIST_NAME, the var that is used in JOB01
#STACKLIST_NAME=$OUTPUT'/STACKLIST01'
#BLANK_NAME=$OUTPUT'/BLANK'

#Determine the dimensions and reference coordinates for the computation 
#by examining the first non-blank file listed in $STACKLIST_NAME.
#Create a blank image with the same dimensions.

FILE0=`awk 'BEGIN {finished = 0; blankname = "'$BLANK_NAME'"}
finished == 0 && $1 != blankname {finished = 1; print $1}' < $STACKLIST_NAME`
awk 'BEGIN {finished = 0; blankname = "'$BLANK_NAME'"}
finished == 0 && $1 != blankname {finished = 1; print $1}' < $STACKLIST_NAME

REF_L0=`print_head $FILE0    | grep REF_L0 | awk '{print $3}'`
print_head $FILE0    | grep REF_L0 | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
REF_B0=`print_head $FILE0    | grep REF_B0 | awk '{print $3}'`
print_head $FILE0    | grep REF_B0 | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
NX=`print_head $FILE0        | grep NAXIS1 | awk '{print $3}'`
print_head $FILE0        | grep NAXIS1 | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
NY=`print_head $FILE0        | grep NAXIS2 | awk '{print $3}'`
print_head $FILE0        | grep NAXIS2 | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
DX=`print_head $FILE0        | grep DAXIS1 | awk '{print $3}'`
print_head $FILE0        | grep DAXIS1 | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
DY=`print_head $FILE0        | grep DAXIS2 | awk '{print $3}'`
print_head $FILE0        | grep DAXIS2 | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
X0=`print_head $FILE0        | grep X0     | awk '{print $3}'`
print_head $FILE0        | grep X0     | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Y0=`print_head $FILE0        | grep Y0     | awk '{print $3}'`
print_head $FILE0        | grep Y0     | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
STARTTIME=`print_head $FILE0 | grep TIME   | awk '{print $3}'`
print_head $FILE0 | grep TIME   | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
DTIME=`print_head $FILE0     | grep T_STEP | awk '{print $3}'`
print_head $FILE0     | grep T_STEP | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

FILE1=`awk 'BEGIN {blankname = "'$BLANK_NAME'"}
$1 != blankname {file = $1}
END {print file}' < $STACKLIST_NAME`
awk 'BEGIN {blankname = "'$BLANK_NAME'"}
$1 != blankname {file = $1}
END {print file}' < $STACKLIST_NAME

ENDTIME=`print_head $FILE1   | grep TIME   | awk '{print $3}'`
print_head $FILE1   | grep TIME   | awk '{print $3}'
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

DURATION_SEC=`echo $STARTTIME $ENDTIME | awk '{print $2 - $1 + 60}'`
echo $STARTTIME $ENDTIME | awk '{print $2 - $1 + 60}'
JDAY0=`echo $STARTTIME | awk '{print int($1/86400) + 2450083}'`
echo $STARTTIME | awk '{print int($1/86400) + 2450083}'
DATE0=`jday_date $JDAY0`
jday_date $JDAY0
jday_date: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
TIME_OF_DAY0=`echo $STARTTIME | awk '{ndays = int($1/86400)}
                                     {tsec = $1 - 86400*ndays}
                                     {hr = int(tsec/3600)}
                                     {min = (tsec - 3600*hr)/60}
                                     {printf("%02d:%02d", hr, min)}'`
echo $STARTTIME | awk '{ndays = int($1/86400)}
                                     {tsec = $1 - 86400*ndays}
                                     {hr = int(tsec/3600)}
                                     {min = (tsec - 3600*hr)/60}
                                     {printf("%02d:%02d", hr, min)}'

TIME0=`echo $DATE0 $TIME_OF_DAY0 | awk '{printf("'\''%s'\''", $0)}'`
echo $DATE0 $TIME_OF_DAY0 | awk '{printf("'\''%s'\''", $0)}'

rm -f $BLANK_NAME
blank_frame $NX $NY 0. $BLANK_NAME
blank_frame: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $BLANK_NAME -k DAXIS1 -v $DX
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $BLANK_NAME -k DAXIS2 -v $DY
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

#Stack images which map_mdi has made into a data cube.  The ends of the
#datacube are padded so that the total length of the datacube is a power
#of two.

NUM_FILES=`wc -l < $STACKLIST_NAME`
wc -l < $STACKLIST_NAME
NUM_FRAMES=`lp2ge $NUM_FILES`
lp2ge $NUM_FILES
lp2ge: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
DIFF=`echo $NUM_FRAMES $NUM_FILES | awk '{print $1 - $2}'`
echo $NUM_FRAMES $NUM_FILES | awk '{print $1 - $2}'
FRONTPAD=`echo $DIFF | awk '{print int($1/2)}'`
echo $DIFF | awk '{print int($1/2)}'
REARPAD=`echo $DIFF $FRONTPAD | awk '{print $1 - $2}'`
echo $DIFF $FRONTPAD | awk '{print $1 - $2}'

rm -f $OUTPUT/NEWSTACK
echo $FRONTPAD $BLANK_NAME
0 /tmp/2007.10.4_12.7028/out/BLANK
echo $FRONTPAD $BLANK_NAME | awk '
    {for (i = 1; i <= $1; i++) print $2}'  > $OUTPUT/NEWSTACK
cat $STACKLIST_NAME                      >> $OUTPUT/NEWSTACK
echo $REARPAD $BLANK_NAME | awk '
    {for (i = 1; i <= $1; i++) print $2}' >> $OUTPUT/NEWSTACK

rm -f $OUTPUT/$REAL_STACKNAME
stack_frames $OUTPUT/$REAL_STACKNAME -l $OUTPUT/NEWSTACK
stack_frames: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

revise_head $OUTPUT/$REAL_STACKNAME -k DAXIS3 -v $DTIME
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $OUTPUT/$REAL_STACKNAME -k REF_L0 -v $REF_L0       -l 11
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $OUTPUT/$REAL_STACKNAME -k REF_B0 -v $REF_B0       -l 12
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $OUTPUT/$REAL_STACKNAME -k X0     -v $X0           -l 13
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $OUTPUT/$REAL_STACKNAME -k Y0     -v $Y0           -l 14
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $OUTPUT/$REAL_STACKNAME -k FRAME0 -v "$FRONTPAD"   -l 15
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $OUTPUT/$REAL_STACKNAME -k TIME0  -v "$TIME0"      -l 16
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head $OUTPUT/$REAL_STACKNAME -k DTIME  -v $DURATION_SEC \
    -l 17 -c "/sec"
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

#Transpose this data cube so that the time index is x.  

rm -f $OUTPUT/REAL_TMP[12]
switch_y_z $OUTPUT/$REAL_STACKNAME $OUTPUT/REAL_TMP1
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_x_y $OUTPUT/REAL_TMP1 $OUTPUT/REAL_TMP2
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

#Analyze the temporal profile of each pixel removing its average, its 
#linear trend, and setting pixels in the temporal sequence that are 
#apparently bad to zero.

rm -f $MISSING_IMAGE_LIST_NAME
awk '$1 == "BLANK" {printf("%5d\n", NR - 1)}' < $OUTPUT/NEWSTACK \
    > $MISSING_IMAGE_LIST_NAME

rm -f $MEAN_IMAGE_NAME $SLOPE_IMAGE_NAME $DEFECTIVE_PIX_LIST_NAME
temp_detrend $OUTPUT/REAL_TMP2 -e $MISSING_IMAGE_LIST_NAME \
-b $DEFECTIVE_PIX_LIST_NAME -m $MEAN_IMAGE_NAME -s $SLOPE_IMAGE_NAME
temp_detrend: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

#Fourier-transform the data in time.  The following program assumes that
#the imaginary part of the data in $REAL_STACKNAME is zero and deposits 
#the Fourier transform into a complex datacube, $FOURIER_STACKNAME, only up 
#to the Nyquist frequency.  The Nyquist frequency itself (for which the 
#computation is real) deposited into the imaginary part of the 
#zero-frequency frame.

rfourier_x  $OUTPUT/REAL_TMP2 $OUTPUT/COMPLEX_TMP2
rfourier_x: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

#Transpose the data cube back to the original configuration.

switch_x_y  $OUTPUT/COMPLEX_TMP2 $OUTPUT/COMPLEX_TMP1
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z  $OUTPUT/COMPLEX_TMP1 $OUTPUT/$FOURIER_STACKNAME
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

rm -f $OUTPUT/COMPLEX_TMP[12] $OUTPUT/REAL_TMP[12]
rm -f $OUTPUT/PSI_X_T $BLANK_NAME

echo JOB02 Done
JOB02 Done
echo ***************************************
***************************************
echo ************** JOB03 ******************
************** JOB03 ******************
date
Tue Oct 16 14:05:48 PDT 2007
sh JOB03 .0025-.0045
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
awk: cmd. line:2: (FILENAME=- FNR=1) fatal: division by zero attempted
awk: cmd. line:2: (FILENAME=- FNR=1) fatal: division by zero attempted
restack: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
echo ***************************************
***************************************
echo ************** JOB04.1 ****************
************** JOB04.1 ****************
date
Tue Oct 16 14:05:49 PDT 2007
sh JOB04.1
*****************TIME*****************
*** script starting - get info ***
Tue Oct 16 14:05:49 PDT 2007
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
blank_frame: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
circ_mask: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
make_secant_mask: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Compute Green's function parameters ***
Tue Oct 16 14:05:49 PDT 2007
wkb: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
gf_profile: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Compute the Green's function itself ***
Tue Oct 16 14:05:50 PDT 2007
tftgf2d: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Compute the egression ***
Tue Oct 16 14:05:50 PDT 2007
Computing H_POS_1SKIP
Start:  Tue Oct 16 14:05:50 PDT 2007
tregress_sph: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
End:  Tue Oct 16 14:05:50 PDT 2007
*****************TIME*****************
*** Untranspose the egression datacube ***
Tue Oct 16 14:05:50 PDT 2007
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Write descriptive parameters ***
Tue Oct 16 14:05:50 PDT 2007
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Repeat the procedure above to compute the ingression ***
Tue Oct 16 14:05:50 PDT 2007
wkb: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
gf_profile: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
tftgf2d: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Computing H_NEG_1SKIP
Start:  Tue Oct 16 14:05:50 PDT 2007
tregress_sph: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
End:  Tue Oct 16 14:05:50 PDT 2007
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** script ending ***
Tue Oct 16 14:05:50 PDT 2007
echo ***************************************
***************************************
echo ************** JOB04.2 ****************
************** JOB04.2 ****************
date
Tue Oct 16 14:05:50 PDT 2007
sh JOB04.2
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
blank_frame: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
circ_mask: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
make_secant_mask: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
wkb: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
gf_profile: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
tftgf2d: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Computing H_POS_2SKIP
Start:  Tue Oct 16 14:05:51 PDT 2007
tregress_sph: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
End:  Tue Oct 16 14:05:51 PDT 2007
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
wkb: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
gf_profile: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
tftgf2d: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Computing H_NEG_2SKIP
Start:  Tue Oct 16 14:05:51 PDT 2007
tregress_sph: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
End:  Tue Oct 16 14:05:51 PDT 2007
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
phase_corr: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
echo ***************************************
***************************************
echo ************** JOB04.3 ****************
************** JOB04.3 ****************
date
Tue Oct 16 14:05:52 PDT 2007
sh JOB04.3
*****************TIME*****************
*** script starting - get info ***
Tue Oct 16 14:05:52 PDT 2007
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
print_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
blank_frame: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
circ_mask: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
make_secant_mask: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Compute Green's function parameters ***
Tue Oct 16 14:05:52 PDT 2007
wkb: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
gf_profile: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Compute the Green's function itself ***
Tue Oct 16 14:05:52 PDT 2007
tftgf2d: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Compute the egression ***
Tue Oct 16 14:05:52 PDT 2007
Computing H_POS_3SKIP
Start:  Tue Oct 16 14:05:52 PDT 2007
tregress_sph: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
End:  Tue Oct 16 14:05:52 PDT 2007
*****************TIME*****************
*** Untranspose the egression datacube ***
Tue Oct 16 14:05:52 PDT 2007
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** Repeat the procedure above to compute the ingression ***
Tue Oct 16 14:05:52 PDT 2007
wkb: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
gf_profile: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
tftgf2d: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
Computing H_NEG_3SKIP
Start:  Tue Oct 16 14:05:53 PDT 2007
tregress_sph: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
End:  Tue Oct 16 14:05:53 PDT 2007
switch_x_y: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
switch_y_z: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
phase_corr: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
phase_corr: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
bin_op: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
revise_head: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
*****************TIME*****************
*** end of script ***
Tue Oct 16 14:05:53 PDT 2007
echo ***************************************
***************************************
echo ********* phase_combine ***************
********* phase_combine ***************
date
Tue Oct 16 14:05:53 PDT 2007
phase_combine 2x2=/tmp/2007.10.4_12.7028/out/PHASE_CORR_2x2 1x3=/tmp/2007.10.4_12.7028/out/PHASE_CORR_1x3 coefs1x3=params/PH_POLYCO_1x3 coefs2x2=params/PH_POLYCO_2x2 gauss=.06 radius=.52 out=/tmp/2007.10.4_12.7028/out/FSI_lowres
phase combine: error- you must specify at least one of the 2x2 or 1x3 files
date
Tue Oct 16 14:05:53 PDT 2007
if ( ! ( -d /synoptic/farside//FSI_lowres ) ) then
cp /tmp/2007.10.4_12.7028/out/FSI_lowres /synoptic/farside//FSI_lowres/FSI_lowres.2007.10.4_12h.fits
cp: cannot stat `/tmp/2007.10.4_12.7028/out/FSI_lowres': No such file or directory
rm: No match.
rm -r /tmp/2007.10.4_12.7028/out/FRAMES
cd /tmp/2007.10.4_12.7028
