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