Error using reshape
To RESHAPE the number of elements must not change.
Error in ps_load_initial (line 226)
la0=reshape(la0,50,50)';
Error in stamps (line 118)
ps_load_initial;
--------------------------------------------------------------------------------------------------------------------
I have found out the problem is the files 'look_angle.1.in' and 'bperp_$bdate.1'.in'.
When running mt_prep, the script mt_extract_info is run within. This is the script that generates 'look_angle.1.in' and 'bperp_$bdate.1'.in', in the following lines;
foreach ifg(`\ls $INSARDIR/*/cint.minrefdem.raw`)
set ifgdir = `echo $ifg | gawk 'BEGIN {FS = "/cint.minrefdem.raw"}{print $1}'`
set bdate = `echo $ifgdir | gawk 'BEGIN {FS = "/"}{print $(NF)}'`
set blog = $ifgdir/step_coarse.log
grep 'Bpar, Bperp' $blog | gawk '{print $6}' > bperp_$bdate.1.in
set bperphead = `head -n1 bperp_$bdate.1.in`
if ($bperphead == "") then
echo "trying make_orbits.log instead..."
set blog = $ifgdir/make_orbits.log
grep 'Bpar, Bperp' $blog | gawk '{print $6}' > bperp_$bdate.1.in
set bperphead = `head -n1 bperp_$bdate.1.in`
if ($bperphead == "") then
echo ""
echo "ERROR: cannot find bperp info for $bdate"
echo "$PRG terminated prematurely"
exit 12
else
echo "success!"
grep 'Look angle' $blog | gawk '{print $6}' > look_angle.1.in
endif
else
grep 'Look angle' $blog | gawk '{print $6}' > look_angle.1.in
endif
end
I dont know where the problem is, but during the make_orbits step there was created a file named 'step_orbit.log' not 'make_orbits.log' as in the line;
set blog = $ifgdir/make_orbits.log
grep 'Bpar, Bperp' $blog | gawk '{print $6}' > bperp_$bdate.1.in
The thing is neither 'make_orbits.log' or 'step_orbit.log' nor 'step_coarse.log' has any information no 'Look angle', 'Bpar' or 'Bperp' .
the '.out' files do contain information on 'Look angle', 'Bpar' or 'Bperp' , but only the one value per variable. As these are not enough to make a 2x50x50 grid file I am at a loss as where to find these mystrious numbers.
In short I need to know how I get the data from the doris outfiles into 'look_angle.1.in' and 'bperp_$bdate.1'.in' ?
-regards
Mark Falkenberg