mirror of
https://asciireactor.com/otho/psdlag-agn.git
synced 2024-11-22 09:25:06 +00:00
some plots are now being output, need sleep then debug
This commit is contained in:
parent
668f090ebe
commit
7f442b9f2b
@ -13,8 +13,8 @@ do
|
|||||||
|
|
||||||
# Prepare files
|
# Prepare files
|
||||||
echo "Plotting PSD and time lags for $echo_band, referred to ${ref_band}."
|
echo "Plotting PSD and time lags for $echo_band, referred to ${ref_band}."
|
||||||
echoPSD_tabfile=analyses/tables/${echo_band}PSD.tab
|
echoPSD_tabfile=analyses/tables/${echo_band}_PSD.tab
|
||||||
refPSD_tabfile=analyses/tables/${ref_band}PSD.tab
|
refPSD_tabfile=analyses/tables/${ref_band}_PSD.tab
|
||||||
timelag_tabfile=analyses/tables/${echo_band}_≻_${ref_band}_delay.tab
|
timelag_tabfile=analyses/tables/${echo_band}_≻_${ref_band}_delay.tab
|
||||||
PSD_plotfile=analyses/plots/${echo_band}_≻_${ref_band}_PSD.png
|
PSD_plotfile=analyses/plots/${echo_band}_≻_${ref_band}_PSD.png
|
||||||
timelag_plotfile=analyses/plots/${echo_band}_≻_${ref_band}_timelag.png
|
timelag_plotfile=analyses/plots/${echo_band}_≻_${ref_band}_timelag.png
|
||||||
@ -32,18 +32,15 @@ do
|
|||||||
sed "s@%SUBTITLE@as reported by Fausnaugh et. al, STORM III, 2016@"|
|
sed "s@%SUBTITLE@as reported by Fausnaugh et. al, STORM III, 2016@"|
|
||||||
sed "s@%FILE1@$refPSD_tabfile@"|
|
sed "s@%FILE1@$refPSD_tabfile@"|
|
||||||
sed "s@%FILE2@$echoPSD_tabfile@"|
|
sed "s@%FILE2@$echoPSD_tabfile@"|
|
||||||
sed "s@%OUTPUTFILE@$PSD_plotfile@" >
|
sed "s@%OUTPUTFILE@$PSD_plotfile@" > tmp.gp
|
||||||
tmp.gp
|
|
||||||
gnuplot tmp.gp
|
gnuplot tmp.gp
|
||||||
|
|
||||||
# Plot time lags and save using gnuplot
|
# Plot time lags and save using gnuplot
|
||||||
cat scripts/templates/timelag_freq.gp|
|
cat scripts/templates/timelag_freq.gp|
|
||||||
sed "s@%TITLE@Time Lag for Lightcurve $echo_band relative to $ref_band@"|
|
sed "s@%TITLE@Time Lag for Lightcurve $echo_band relative to $ref_band@"|
|
||||||
sed "s@%SUBTITLE@as reported by Fausnaugh et. al, STORM III, 2016@"|
|
sed "s@%SUBTITLE@as reported by Fausnaugh et. al, STORM III, 2016@"|
|
||||||
sed "s@%FILE1@$refPSD_tabfile@"|
|
sed "s@%FILE1@$timelag_tabfile@"|
|
||||||
sed "s@%FILE2@$echoPSD_tabfile@"|
|
sed "s@%OUTPUTFILE@$timelag_plotfile@" > tmp.gp
|
||||||
sed "s@%OUTPUTFILE@$PSD_plotfile@" >
|
|
||||||
tmp.gp
|
|
||||||
gnuplot tmp.gp
|
gnuplot tmp.gp
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -3,9 +3,7 @@ set termoption dash
|
|||||||
set output "%OUTPUTFILE"
|
set output "%OUTPUTFILE"
|
||||||
|
|
||||||
|
|
||||||
plot 'tables/timelag_lc1.dat' using 1:2:3:4 with xyerrorbars, \
|
plot '%FILE1' using 1:2:3:4 with xyerrorbars\
|
||||||
'tables/timelag_lc2.dat' using 1:2:3:4 with xyerrorbars
|
|
||||||
set logscale x
|
set logscale x
|
||||||
set xrange [0.005:0.603]
|
set xrange [0.005:0.603]
|
||||||
set arrow from 0.005,0 to 0.603,0 nohead lt 3 lc rgb 'black'
|
set arrow from 0.005,0 to 0.603,0 nohead lt 3 lc rgb 'black'
|
||||||
pause -1
|
|
||||||
|
Loading…
Reference in New Issue
Block a user