Forums » GAMMA Bugs »
Bug in S1_deramp_TOPS_slave
Added by Julia Neelmeijer almost 8 years ago
Dear Charles,
I tried to run the routine S1_deramp_TOPS_slave, but it stopped with the following error:
ERROR: cannot open S1 TOPS SLC parameter file: 20160928.iw1.rslc.deramp.par
Indeed, the par and TOPS_par file were missing for iw1 and iw2, but were available for iw3.
I looked in the script and found that you are missing two times endif, one in line 160 and one in line 205:
if ( "$SLC_format" == "FCOMPLEX" ) then echo "sub_phase $SLC $dph.tmp tmp.diff_par $SLC_deramp 1 0" sub_phase $SLC $dph.tmp tmp.diff_par $SLC_deramp 1 0 else if ( "$SLC_format" == "SCOMPLEX" ) then echo "SLC_copy $SLC $SLC_par $SLC.tmp $SLC_par.tmp 3 1." SLC_copy $SLC $SLC_par $SLC.tmp $SLC_par.tmp 3 1. echo "sub_phase $SLC.tmp $dph.tmp tmp.diff_par $SLC_deramp.tmp 1 0" sub_phase $SLC.tmp $dph.tmp tmp.diff_par $SLC_deramp.tmp 1 0 echo "SLC_copy $SLC_deramp.tmp $SLC_par.tmp $SLC_deramp $SLC_par.tmp1 2 1." SLC_copy $SLC_deramp.tmp $SLC_par.tmp $SLC_deramp $SLC_par.tmp1 2 1. /bin/rm $SLC_par.tmp1 $SLC_par.tmp $SLC_deramp.tmp endif endif ################################## <------------------- add this endif! /bin/rm tmp.diff_par /bin/rm $dph.tmp /bin/cp $SLC_par $SLC_deramp_par /bin/cp $TOPS_par $TOPS_par_deramp endif
May I also kindly suggest to code lines 115-259 (shown below) in a loop to prevent such errors? Thank you!
if ("$nrows" >= "1") then # for first line of $SLC_tab_slave set SLC=`awk '(NR==1){print $1}' $SLC_tab_slave ` set SLC_par=`awk '(NR==1){print $2}' $SLC_tab_slave ` .... if ("$nrows" >= "2") then # for second line of $SLC_tab_slave set SLC=`awk '(NR==2){print $1}' $SLC_tab_slave ` set SLC_par=`awk '(NR==2){print $2}' $SLC_tab_slave ` set TOPS_par=`awk '(NR==2){print $3}' $SLC_tab_slave ` ... if ("$nrows" >= "3") then # for third line of $SLC_tab_slave set SLC=`awk '(NR==3){print $1}' $SLC_tab_slave ` set SLC_par=`awk '(NR==3){print $2}' $SLC_tab_slave ` set TOPS_par=`awk '(NR==3){print $3}' $SLC_tab_slave ` ... /bin/rm tmp.diff_par /bin/rm $dph.tmp /bin/cp $SLC_par $SLC_deramp_par /bin/cp $TOPS_par $TOPS_par_deramp endif
All the best,
Julia
EDIT: This error occurred in GAMMA version 20160625.
Replies (2)
RE: Bug in S1_deramp_TOPS_slave - Added by Naeem Shahzad about 5 years ago
Hello Julia,
I am facing the same problem, even, I tried with the whole image. Have you found any solution to this?
Regards
Naeem
RE: Bug in S1_deramp_TOPS_slave - Added by Julia Neelmeijer about 5 years ago
Hi Naeem,
but the solution is posted above? If you don't have the current version of the software, than alter the script S1_deramp_TOPS_slave yourself by adding the two "endif" commands.
Best, Julia