Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
scottprahl committed May 27, 2020
0 parents commit 75b77f9
Show file tree
Hide file tree
Showing 471 changed files with 790,057 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# create web pages for lasermedia
#

SRC =

all:
~/Documents/Code/git/lasermedia/makepages

one:
~/Documents/Code/git/lasermedia/makepages -n '-1'

install:
rsync -ave ssh lasermedia/ omlc.org:/var/www/html/spectra/lasermedia

clean:
rm -rf lasermedia

85 changes: 85 additions & 0 deletions abs-js.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
var chart;
$(document).ready(function() \{
chart = new Highcharts.Chart(\{
chart: \{
renderTo: 'absPlot',
zoomType: 'xy',
defaultSeriesType: 'line',
backgroundColor : null
\},
title: \{
text: "{$abs_unicode_name}"
\},
credits: \{
enabled: true,
href: "http://omlc.org/spectra/PhotochemCAD/html/{$abs_name}.html",
text: "omlc.org",
position: \{
align:'right',
x : -15,
verticalAlign: 'bottom',
y : -60,
\}
\},
xAxis: \{
title: \{
enabled: true,
text: 'Wavelength (nm)'
\},
startOnTick: true,
endOnTick: true,
showFirstLabel: false,
showLastLabel: false,
maxPadding: 0.05,
gridLineWidth: 1,
\},
yAxis: \{
title: \{
enabled: true,
text: 'Absorption for unity concentration (m\u207B\u00B9)'
\},
startOnTick: true,
endOnTick: true,
showFirstLabel: false,
showLastLabel: false,
maxPadding: 0.05,
gridLineWidth: 1,
labels: \{ formatter: function() \{return this.value;\} \}
\},
tooltip: \{
formatter: function() \{
return this.x.toFixed(2) + 'nm, ' + this.y +'m\u207B\u00B9';
\}
\},
legend: \{
enabled:false
\},
plotOptions: \{
line: \{
lineWidth: 1,
marker: \{
enabled: false,
states: \{
hover: \{
enabled: true,
radius: 5
\}
\}
\},
shadow: false,
states: \{
hover: \{
lineWidth: 1
\}
\}
\},
\},
series: [
\{
color: 'rgba(223, 83, 83, 1.0)',
pointInterval: {$x_abs_interval},
pointStart: {$x_abs_start},
data: {$abs_js_data},
\}]
\});
\});
17 changes: 17 additions & 0 deletions abs.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Optical absorption spectrum of {sample_$atom}:{$sample_host} ({$name_chem_txt})
# assuming unity concentration per meter. This data was part of the NASA
# Laser Spectra Database found on the web until December of 2005 which
# was created by Pat Cross working at NASA Langley Research Center, Internal
# Operations Group, Aerospace Electronics Systems Division, Remote Sensing.
#
# The spectra was collected by {$initials} on {$exp_date} and was
# annotated on {$rec_date}. The sample name was "{$sample}" was a {$thickness}
# long piece of {$atom}:{$host}. {$sample_polaralization}
# {$lambda_pol}
#
# Spectra were recorded from {$lambda_min} to {$lambda_max}nm
# every {$lambda_delta}nm at room temperature.
#
# {$note}
#
##Wavelength (nm) Absorbance (/meter)
85 changes: 85 additions & 0 deletions ems-js.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
var chart;
$(document).ready(function() \{
chart = new Highcharts.Chart(\{
chart: \{
renderTo: 'emsPlot',
zoomType: 'xy',
defaultSeriesType: 'line',
backgroundColor : null
\},
credits: \{
enabled: true,
href: "http://omlc.org/spectra/PhotochemCAD/html/{$ems_name}.html",
text: "omlc.org",
position: \{
align:'right',
x : -15,
verticalAlign: 'bottom',
y : -60,
\}
\},
title: \{
text: "{$ems_unicode_name}"
\},
xAxis: \{
title: \{
enabled: true,
text: 'Wavelength (nm)'
\},
startOnTick: true,
endOnTick: true,
showFirstLabel: false,
showLastLabel: false,
maxPadding: 0.05,
gridLineWidth: 1,
\},
yAxis: \{
title: \{
enabled: true,
text: 'Normalized Emission'
\},
startOnTick: true,
endOnTick: true,
showFirstLabel: false,
showLastLabel: false,
maxPadding: 0.05,
gridLineWidth: 1,
labels: \{ formatter: function() \{return this.value;\} \}
\},
tooltip: \{
formatter: function() \{
return this.x.toFixed(2) + 'nm, ' + this.y.toFixed(4);
\}
\},
legend: \{
enabled:false
\},
plotOptions: \{
line: \{
lineWidth: 1,
marker: \{
enabled: false,
states: \{
hover: \{
enabled: true,
radius: 5
\}
\}
\},
shadow: false,
states: \{
hover: \{
lineWidth: 1
\}
\}
\},
\},
series: [
\{
color: 'rgba(223, 83, 83, 1.0)',
pointInterval: {$x_ems_interval},
pointStart: {$x_ems_start},
data: {$ems_js_data}
\}]
\});
\});
18 changes: 18 additions & 0 deletions ems.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Optical emission spectrum of {$sample_atom}:{$sample_host} ({$name_chem_txt})
# assuming unity concentration per meter. This data was part of the NASA
# Laser Spectra Database found on the web until December of 2005 which
# was created by Pat Cross working at NASA Langley Research Center, Internal
# Operations Group, Aerospace Electronics Systems Division, Remote Sensing.
#
# The spectra was collected by {$initials} on {$exp_date} and was
# annotated on {$rec_date}. The sample name was "{$sample}" was a {$thickness}
# long piece of {$atom}:{$host}. {$sample_polaralization}
# {$lambda_pol}
#
# Spectra were recorded from {$lambda_min}nm to {$lambda_max}nm
# every {$lambda_delta}nm at room temperature. The
# excitation wavelength was {$lambda_exc ? $lambda_exc . 'nm' : 'unknown'}.
#
# {$note}
#
##Wavelength (nm) Absorbance (/meter)
19 changes: 19 additions & 0 deletions html-abs.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<h3>Absorption</h3>

<div id="absPlot" style="width: 540px; height: 400px; margin: 0 auto"></div>

<p>
The spectra was collected by {$initials} on {$exp_date}.
The sample was {$thickness} mm thick.
{$sample_polarization}
</p>

<p>
Spectra were recorded from {$lambda_min} to {$lambda_max}nm
every {$lambda_delta}nm at room temperature.
{$lambda_pol}
</p>

<p style="text-align:center">
<A HREF="../data/{$name_id}-orig-abs.txt">Original Data</A> |
<A HREF="../data/{$name_id}-abs.txt">Extinction Data</A>
26 changes: 26 additions & 0 deletions html-bot.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

</div>
</div><!-- end row -->
</div><!-- end wrapper -->
</section><!-- end hero area -->


<!-- footer area -->
<footer>
<div id="colophon" class="wrapper clearfix">
<p> &copy; {$date} <a href="http://omlc.org/~prahl/">Scott Prahl</a></p>
</div>
</footer><!-- #end footer area -->


<!-- jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.9.0.min.js">\x3C/script>')</script>

<script defer src="http://omlc.org/js/flexslider/jquery.flexslider-min.js"></script>

<!-- fire ups - read this file! -->
<script src="http://omlc.org/js/main.js"></script>

</body>
</html>
22 changes: 22 additions & 0 deletions html-ems.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<h3>Fluorescence</h3>

<div id="emsPlot" style="width: 540px; height: 400px; margin: 0 auto"></div>

<p>
This emission spectra of {$name_chem_html} was collected by {$initials} on {$exp_date}.
The sample was {$thickness}mm thick.
{$sample_polarization}
</p>

<p>
Spectra were recorded from {$lambda_min} to {$lambda_max}nm
every {$lambda_delta}nm at room temperature. The excitation
wavelength was {$lambda_exc ? $lambda_exc . 'nm' : 'unknown'}.
{$sensitizer_phrase}
</p>

<p style="text-align:center">
<A HREF="../data/{$name_id}-orig-ems.txt">Original Data</A> |
<A HREF="../data/{$name_id}-ems.txt">Emission Data</A>
</p>

16 changes: 16 additions & 0 deletions html-mid.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<h3>Fluorescence</h3>

<div id="emsPlot" style="width: 540px; height: 400px; margin: 0 auto"></div>

<p> The fluorescence emission spectrum of {$abs_htmlName}
dissolved in {$ems_Solvent}. {$exc_sentence}
The quantum yield of this molecule is {$ems_QuantumYield} {$ems_short_reference}.
This spectrum was collected by {$ems_full_author} {$ems_fDate}
using a {$ems_Instrument}.
{$ems_full_instrument}</p>

<p style="text-align:center">
<A HREF="../data/{$id}-orig-ems.txt">Original Data</A> |
<A HREF="../data/{$id}-ems.txt">Emission Data</A>
</p>

Loading

0 comments on commit 75b77f9

Please sign in to comment.