added lots of presentation things, especially images

This commit is contained in:
caes 2016-08-10 22:27:52 -04:00
parent 9bf6d9c075
commit 96d1ffba7f
21 changed files with 4757 additions and 22 deletions

16
plot.sh
View File

@ -14,11 +14,11 @@ echo Propagating tables.
scripts/propagate_tables.sh > /dev/null scripts/propagate_tables.sh > /dev/null
case $1 in case $1 in
"PSD") "PSD"|"psd"|"PSDs"|"PSDS"|"psds")
echo "Producing PSD atlas." echo "Producing PSD atlas."
gnuplot_file=psd_atlas.gp gnuplot_file=psd_atlas.gp
gnuplot_input=$(cat scripts/templates/${gnuplot_file}|perl -pe 's|\n|␤|g') gnuplot_input=$(cat scripts/templates/${gnuplot_file}|perl -pe 's|\n|␤|g')
for tabfile in analyses/tables/PSD_*${errtype}*; for tabfile in analyses/tables/PSD_*${errtype}*.tab;
do do
echo_band=$(basename $tabfile| echo_band=$(basename $tabfile|
sed 's|PSD[_ ]\(.\{5\}\)[_ ]{[^_ ]*}.tab|\1|') sed 's|PSD[_ ]\(.\{5\}\)[_ ]{[^_ ]*}.tab|\1|')
@ -33,11 +33,11 @@ case $1 in
;; ;;
"lags") "lags"|"lag"|"delay"|"delays")
echo "Producing time delay atlas." echo "Producing time delay atlas."
gnuplot_file=timelag_atlas.gp gnuplot_file=timelag_atlas.gp
gnuplot_input=$(cat scripts/templates/${gnuplot_file}|perl -pe 's|\n|␤|g') gnuplot_input=$(cat scripts/templates/${gnuplot_file}|perl -pe 's|\n|␤|g')
for tabfile in analyses/tables/timelag_*${errtype}*; for tabfile in analyses/tables/timelag_*${errtype}*.tab;
do do
ref_band_extracted=$(basename $tabfile|sed 's|timelag_\([^≺]*\)[_ ]≺[_ ][^≺_ ]*[_ ]{[^_ ]*}.tab|\1|') ref_band_extracted=$(basename $tabfile|sed 's|timelag_\([^≺]*\)[_ ]≺[_ ][^≺_ ]*[_ ]{[^_ ]*}.tab|\1|')
echo_band=$(basename $tabfile|sed 's|timelag_[^≺]*[_ ]≺[_ ]\([^≺_ ]*\)[_ ]{[^_ ]*}.tab|\1|') echo_band=$(basename $tabfile|sed 's|timelag_[^≺]*[_ ]≺[_ ]\([^≺_ ]*\)[_ ]{[^_ ]*}.tab|\1|')
@ -50,7 +50,13 @@ case $1 in
echo "$gnuplot_input"|perl -pe 's|␤|\n|g' > ${gnuplot_file} echo "$gnuplot_input"|perl -pe 's|␤|\n|g' > ${gnuplot_file}
gnuplot $gnuplot_file gnuplot $gnuplot_file
;; ;;
default)
"tophat")
gnuplot_file=tophat_w_fft.gp
;;
*)
echo "Did not understand plot type." echo "Did not understand plot type."
;; ;;
esac esac

View File

@ -1 +0,0 @@
,caes,calculo-agilis,10.08.2016 03:16,file:///home/caes/.config/libreoffice/4;

View File

@ -0,0 +1 @@
,caes,calculo-agilis,10.08.2016 11:07,file:///home/caes/.config/libreoffice/4;

BIN
pres/final/final.odp Normal file

Binary file not shown.

BIN
pres/final/final.pdf Normal file

Binary file not shown.

30
pres/final_notes Normal file
View File

@ -0,0 +1,30 @@
Intro
continuum reverberation mapping
tradiational approach
our approach
results
future work
This is looking good, and will be excellent once you finish including the figures at what Im assuming are their place-holders.
I think: “UV/optical reverberation mapping of NGC 5548 with frequency-resolved techniques” is a better title. Maximum Likelihood is a generic term, and doesnt explain exactly what youve been doing.
Slide showing the Fausnaugh et al. lag vs wavelength plot does not show Frequency-dependent time delays as the title implies. Maybe better to write Time-domain lag analysis from STORM III'
Motivation: strictly speaking all the information available through the frequency-domain analysis is also available in the time domain analysis. The cross correlation function (CCF) that is calculated in the time domain analysis can also be directly linked to the transfer function. The point is more that from the standard cross correlation analysis, astronomers typically extract one number, the centroid time lag. This throws out all the other information in the CCF. The frequency-domain analysis that we do doesnt lose any of this information.
You should have a conclusions slide.
Conclusions:
a) This method works with the quality of optical AGN data available! This was an exploratory project, so its exciting to see it working.
b) the PSD is wavelength dependent, with more power at the shortest wavelengths, and the power dropping systematically with wavelength. This is expected in the reverberation scenario since the blurring of the lightcurve by the reverberation smooths out the lightcurves, removing variability.
c) We see frequency-dependent lags. The average lag shows the same systematic trend as from the time domain analysis. However, we also now see how the lag changes with frequency - this will help determine the shape of the transfer function. This is an important next step - figuring out exactly what the frequency dependence means!
Ed

29
pres/final_outline Normal file
View File

@ -0,0 +1,29 @@
Intro
──────────────────────────────────────────────────────────────────────────
AGN - What they are
AGN - NGC 5548
AGN - Simple Model
Previous work
──────────────────────────────────────────────────────────────────────────
Fausnaugh et al. - Data
Optical RM - current status and issues
Fausnaugh et al. - analysis and results
Technique
──────────────────────────────────────────────────────────────────────────
Reverberation Mapping - Basic Concept/picture
Reverberation Mapping - Transfer Function
Reverberation Mapping - tophat with FFT
Results
──────────────────────────────────────────────────────────────────────────
PSD Atlas
Time delay Atlas
Constructing the transfer function
Show transfer function compared with tophat FFT

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 336 KiB

BIN
pres/img/lightcurves.pdf Normal file

Binary file not shown.

14
pres/img/lightcurves.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 101 KiB

BIN
pres/img/psd_atlas.pdf Normal file

Binary file not shown.

2220
pres/img/psd_atlas.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 501 KiB

BIN
pres/img/timelag_atlas.pdf Normal file

Binary file not shown.

2393
pres/img/timelag_atlas.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 551 KiB

Binary file not shown.

Binary file not shown.

BIN
pres/intro.odp Normal file

Binary file not shown.

0
run_analysis.sh Normal file → Executable file
View File

0
scripts/gaussian_fit.py Normal file → Executable file
View File

0
scripts/spec.py Normal file → Executable file
View File

View File

@ -2,25 +2,54 @@
use feature say; use feature say;
use utf8; use utf8;
use PDL;
use PDL::FFT; use PDL::FFT;
use PDL::IO::Misc;
my $PI = 3.1415926539; my $twoPI = 2*3.1415926539;
my $N = 64;
my ($series, $other_series); # space parameters
for (my $k=0; $k<$N; $k++) { our $Δt=.001;
$series->[$k] = sin(4*$k*$PI/$N) + cos(6*$k*$PI/$N); our $xmin = 0;
our $xmax = 250;
our $num_bins = ($xmax-$xmin)/$Δt;
say "Creating $num_bins bins";
# Complex Number z(x) = u(x) + iv(x)
my @th_list=tophat(10,7);
my $u = pdl(@th_list);
my $v = zeroes($u);
# Output time-domain tophat
open $tophattab, '>', 'analyses/tables/tophat.tab';
for ($i=0; $i < $num_bins; $i++) {
my $x_coord = ($xmax-$xmin)*($i/$num_bins) + $xmin;
say $tophattab "$x_coord $th_list[$i]";
} }
my $fft = new Math::FFT($series); close $tophattab;
my $coeff = $fft->rdft();
my $spectrum = $fft->spctrm;
my $original_data = $fft->invrdft($coeff);
for (my $k=0; $k<$N; $k++) { # Transform z(x) to z(1/x) = u(1/x) + iv(1/x)
$other_series->[$k] = sin(16*$k*$PI/$N) + cos(8*$k*$PI/$N); fft($u,$v);
} # Determine frequency coordinates
my $other_fft = $fft->clone($other_series); my $num_elements = nelem($u);
my $other_coeff = $other_fft->rdft(); say "Found $num_elements elements.";
my $correlation = $fft->correl($other_fft); $f = $u->xlinvals(-($num_elements/2-1)/$num_elements/$Δt,1/2/$Δt)->rotate(-($num_elements/2 -1));
my $φdiff = atan2($v,$u);
my $timelag = $φdiff/($twoPI*$f);
wcols $f,$timelag,'analyses/tables/tophat_fft.tab';
sub top_hat sub tophat {
(my $mean,my $width) = @_;
my $halfwidth = $width/2;
my @vals = ();
for ($i=0; $i < $num_bins; $i++) {
my $x_coord = ($xmax-$xmin)*($i/$num_bins) + $xmin;
if ($x_coord >= ($mean - $halfwidth ) && $x_coord <= ($mean + $halfwidth)) { push @vals, 1/$width; }
else { push @vals, 0; }
}
return @vals;
}