if ( 4 != 4 ) then
set DAY = 2007.09.04_00
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.09.04_00.2289/in
setenv OUTPUT /tmp/2007.09.04_00.2289/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.09.04_00.2289/out/FRAMES
setenv STACKLIST_NAME /tmp/2007.09.04_00.2289/out/STACKLIST01
setenv BLANK_NAME /tmp/2007.09.04_00.2289/out/BLANK
setenv REAL_STACKNAME PSI_X_T
setenv FOURIER_STACKNAME PSI_X_NU
setenv MEAN_IMAGE_NAME /tmp/2007.09.04_00.2289/out/MEAN_IMAGE
setenv SLOPE_IMAGE_NAME /tmp/2007.09.04_00.2289/out/SLOPE_IMAGE
setenv DEFECTIVE_PIX_LIST_NAME /tmp/2007.09.04_00.2289/out/DEFECTIVE_PIX_LIST
setenv MISSING_IMAGE_LIST_NAME /tmp/2007.09.04_00.2289/out/MISSING_IMAGE_LIST
setenv INPUT_DATACUBE /tmp/2007.09.04_00.2289/out/PSI_X_NU
setenv INTERMED_DATACUBE /tmp/2007.09.04_00.2289/out/PSI_X_NU_2.5_4.5mHz
setenv XPOSE_DATACUBE /tmp/2007.09.04_00.2289/out/XPOSE_PSI_X_NU_2.5_4.5mHz
setenv PHASE_CORR_1x3 /tmp/2007.09.04_00.2289/out/PHASE_CORR_1x3
setenv PHASE_CORR_2x2 /tmp/2007.09.04_00.2289/out/PHASE_CORR_2x2
set BASE_SIX_H = `time_index -6 time=$DAY':00'`
time_index -6 time=2007.09.04_00:00
@ START_SIX_H = 21436 - ( 6 / 2 )
@ END_SIX_H = 21436 + ( 6 / 2 ) - 1
echo *****************************************************
*****************************************************
echo ******starting farside image processing for 2007.09.04_00******
******starting farside image processing for 2007.09.04_00******
echo getting data. base six hour number: 21436
getting data. base six hour number: 21436
echo starting 6h num: 21433
starting 6h num: 21433
echo going until 6h num: 21438
going until 6h num: 21438
echo working directory: /tmp/2007.09.04_00.2289
working directory: /tmp/2007.09.04_00.2289
echo ********* producing lev 1.8 data *************
********* producing lev 1.8 data *************
set SIX_H = 21433
rm -r -f /tmp/2007.09.04_00.2289/in /tmp/2007.09.04_00.2289/out
mkdir /tmp/2007.09.04_00.2289/in
mkdir /tmp/2007.09.04_00.2289/out
echo copying parameters
copying parameters
cp -r /home/soi/farside++/scripts++/params /tmp/2007.09.04_00.2289/
echo working directory is  /tmp/2007.09.04_00.2289
working directory is  /tmp/2007.09.04_00.2289
echo setting up symbolic links
setting up symbolic links
rm -rf /tmp/2007.09.04_00.2289/out/eof_data_used
while ( 21433 < = 21438 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21433]
if ( 0 ) then
echo GOT HERE /PDS22/D12591440/lev1.8/vw_V_06h.21433
GOT HERE /PDS22/D12591440/lev1.8/vw_V_06h.21433
if ( /PDS22/D12591440/lev1.8/vw_V_06h.21433 =~ ###* ) then
echo linking to directory: /PDS22/D12591440/lev1.8/vw_V_06h.21433 to /tmp/2007.09.04_00.2289/in/vw_V_06h.21433
linking to directory: /PDS22/D12591440/lev1.8/vw_V_06h.21433 to /tmp/2007.09.04_00.2289/in/vw_V_06h.21433
ln -s /PDS22/D12591440/lev1.8/vw_V_06h.21433 /tmp/2007.09.04_00.2289/in/vw_V_06h.21433
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS22/D12591440/lev1.8/vw_V_06h.21433/vw_V_06h.21433.overview.fits
grep DSNAME
fgrep -c eof
if ( 1 > 0 ) then
echo 21433
endif
@ SIX_H++
end
while ( 21434 < = 21438 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21434]
if ( 0 ) then
echo GOT HERE /PDS22/D12591454/lev1.8/vw_V_06h.21434
GOT HERE /PDS22/D12591454/lev1.8/vw_V_06h.21434
if ( /PDS22/D12591454/lev1.8/vw_V_06h.21434 =~ ###* ) then
echo linking to directory: /PDS22/D12591454/lev1.8/vw_V_06h.21434 to /tmp/2007.09.04_00.2289/in/vw_V_06h.21434
linking to directory: /PDS22/D12591454/lev1.8/vw_V_06h.21434 to /tmp/2007.09.04_00.2289/in/vw_V_06h.21434
ln -s /PDS22/D12591454/lev1.8/vw_V_06h.21434 /tmp/2007.09.04_00.2289/in/vw_V_06h.21434
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS22/D12591454/lev1.8/vw_V_06h.21434/vw_V_06h.21434.overview.fits
grep DSNAME
fgrep -c eof
if ( 1 > 0 ) then
echo 21434
endif
@ SIX_H++
end
while ( 21435 < = 21438 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21435]
if ( 0 ) then
echo GOT HERE /PDS22/D12591469/lev1.8/vw_V_06h.21435
GOT HERE /PDS22/D12591469/lev1.8/vw_V_06h.21435
if ( /PDS22/D12591469/lev1.8/vw_V_06h.21435 =~ ###* ) then
echo linking to directory: /PDS22/D12591469/lev1.8/vw_V_06h.21435 to /tmp/2007.09.04_00.2289/in/vw_V_06h.21435
linking to directory: /PDS22/D12591469/lev1.8/vw_V_06h.21435 to /tmp/2007.09.04_00.2289/in/vw_V_06h.21435
ln -s /PDS22/D12591469/lev1.8/vw_V_06h.21435 /tmp/2007.09.04_00.2289/in/vw_V_06h.21435
set EOF_USED = `print_head $DATA_DIR/vw_V_06h.$SIX_H.overview.fits | grep DSNAME | fgrep -c eof`
print_head /PDS22/D12591469/lev1.8/vw_V_06h.21435/vw_V_06h.21435.overview.fits
grep DSNAME
fgrep -c eof
if ( 1 > 0 ) then
echo 21435
endif
@ SIX_H++
end
while ( 21436 < = 21438 )
set DATA_DIR = `PEQ4FSI 'vw_V_06h['$SIX_H']'`
PEQ4FSI vw_V_06h[21436]
set: No match.
