Skip to content

Commit

Permalink
pubs: Correct script to generate fellwalker figures
Browse files Browse the repository at this point in the history
  • Loading branch information
David Berry committed Mar 24, 2014
1 parent 24d2424 commit f56c2a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
Binary file removed pubs/fellwalker/fellwalker.pdf
Binary file not shown.
29 changes: 18 additions & 11 deletions pubs/fellwalker/make-data
Expand Up @@ -34,17 +34,22 @@ $CUPID_DIR/findclumps method=fellwalker config='dumppeak=2' tot \
msg_filter=quiet out=mask outcat=! rms=0.003
mv idata1.sdf peak2.sdf

$CUPID_DIR/findclumps method=fellwalker config='dumpwalk=630' tot \
$CUPID_DIR/findclumps method=fellwalker config='dumpwalk=272' tot \
msg_filter=quiet out=mask outcat=! rms=0.003
mv idata1.sdf walk630.sdf
$KAPPA_DIR/setmagic idata1 walka -1

$CUPID_DIR/findclumps method=fellwalker config='dumpwalk=627' tot \
$CUPID_DIR/findclumps method=fellwalker config='dumpwalk=326' tot \
msg_filter=quiet out=mask outcat=! rms=0.003
mv idata1.sdf walk326.sdf

$CUPID_DIR/findclumps method=fellwalker config='dumpwalk=367' tot \
msg_filter=debug2 out=mask outcat=! rms=0.003 > /dev/null
mv idata3.sdf walk627.sdf
mv idata3.sdf walk367.sdf

$KAPPA_DIR/setmagic idata4 rawmask -1

$KAPPA_DIR/sub walk630.sdf walk627.sdf diffwalk
$KAPPA_DIR/maths exp="'qif((ia==2),3,ib)'" ia=diffwalk ib=peak2 out=fred
$KAPPA_DIR/sub walk367.sdf walk326.sdf walkb
$KAPPA_DIR/maths exp="'qif((ia>0),3,ib)'" ia=walkb ib=walka out=fred


cat << EOF > lut
Expand All @@ -71,7 +76,7 @@ pdfcrop pgplot.pdf sim.pdf

$KAPPA_DIR/gdclear
rm pgplot.ps
$KAPPA_DIR/display fred'(2:,2:)' noaxes border=yes mode=sca lut=lutndf nn=yes accept
$KAPPA_DIR/display fred'(2:,2:)' noaxes border=yes mode=sca lut=lutndf nn=yes badcol=white low=-1 high=2
$KAPPA_DIR/contour tot nokey noclear mode=sca style="'colour=red,width=3'" ncont=10 \
firstcnt=0.006 lastcnt=0.45
epstopdf pgplot.ps
Expand All @@ -80,7 +85,9 @@ pdfcrop pgplot.pdf walks.pdf
$KAPPA_DIR/lutable mapping=linear coltab=grey
$KAPPA_DIR/gdclear
rm pgplot.ps
$KAPPA_DIR/display rawmask'(2:,2:)' noaxes border=yes mode=sca low=2 high=6 badcol=white

$KAPPA_DIR/display rawmask'(2:,2:)' noaxes border=yes mode=sca low=1 high=3 badcol=white

$KAPPA_DIR/contour tot nokey noclear mode=sca style="'colour=red,width=3'" ncont=10 \
firstcnt=0.006 lastcnt=0.45
epstopdf pgplot.ps
Expand All @@ -90,11 +97,11 @@ pdfcrop pgplot.pdf rawmask.pdf
$KAPPA_DIR/gdclear
rm pgplot.ps
$KAPPA_DIR/setmagic idata6 rawmask -1
$KAPPA_DIR/display rawmask'(2:,2:)' noaxes border=yes mode=sca badcol=white low=2 high=6
$KAPPA_DIR/display rawmask'(2:,2:)' noaxes border=yes mode=sca badcol=white low=1 high=3
epstopdf pgplot.ps
pdfcrop pgplot.pdf cleaned.pdf

rm aa spikes.sdf sp15.sdf sp25.sdf noise.sdf tot.sdf mask.sdf peak2.sdf \
walk630.sdf walk627.sdf diffwalk.sdf fred.sdf lut lutndf.sdf idata*sdf \
rawmask.sdf
walk272.sdf walk326.sdf walk367.sdf diffwalk.sdf fred.sdf lut lutndf.sdf \
idata*sdf rawmask.sdf

2 comments on commit f56c2a9

@timj
Copy link
Member

@timj timj commented on f56c2a9 Mar 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to work but I get an error in the clean up code:

rm: walk272.sdf: No such file or directory
rm: diffwalk.sdf: No such file or directory

@dsberry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've now fixed that.

Please sign in to comment.