Commit d82eeda6 authored by Tom Dwelly's avatar Tom Dwelly
Browse files

added linelist to speccy page, merged abs and em lines

parent 9faaca38
......@@ -295,8 +295,10 @@ Here is a script that can be used to convert a plateful of eBOSS pectra from "sp
<a href="http://www.mpe.mpg.de/~tdwelly/speccy/convert_sdss_plate_to_speccy.csh"> convert_sdss_plate_to_speccy.csh</a>
</p>
</body>
<hr>
<h4>CLASS_PERSON / Z_CONF_PERSON matrix :</h4>
<h4>Class/Confidence matrix :</h4>
<table border="1">
<tr>
<th rowspan="2">CLASS_PERSON</th>
......@@ -316,6 +318,21 @@ Here is a script that can be used to convert a plateful of eBOSS pectra from "sp
<tr> <th>BLAZAR</th> <td> </td> <td> </td><td>BLAZAR_Z? </td><td>BLAZAR </td> </tr>
</table>
<hr>
<h4>Emission/absorption line list:</h4>
<table border="1" id="tableLinelist">
<tr>
<th>Line Name</th>
<th>Rest wavelength<br>(&#x212b;, vacuum)</th>
<th>Abs./Em.?</th>
<th>Reference</th>
</tr>
<tr>
<tr> <td></td><td></td><td></td><td></td></tr>
</table>
......@@ -394,66 +411,66 @@ var keyvals = [];
// "Charlton" http://ned.ipac.caltech.edu/level5/Charlton/Charlton1_1.html
// "NIST" http://physics.nist.gov/PhysRefData/ASD/lines_form.html (then converted to vacuum wavelengths)
// "NIST_Fe" http://physics.nist.gov/PhysRefData/Handbook/Tables/irontable2.htm
var linelist_ea = []; //lines that often appear in emission or absorption
var linelist_ab = []; //lines that usually appear in absorption
linelist_ea.push({name:"Ly limit " , lambda: 912. }); // Charlton
linelist_ea.push({name:"Ly\u03B3 " , lambda: 972.537 }); // Charlton
linelist_ea.push({name:"Ly\u03B2 " , lambda: 1025.722 }); // Charlton
linelist_ea.push({name:"Ly\u03B1 " , lambda: 1215.67 }); // spZ
linelist_ea.push({name:"NV " , lambda: 1240.81 }); // spZ
linelist_ea.push({name:"SiIV " , lambda: 1393.755 }); // Charlton
linelist_ea.push({name:"SiIV " , lambda: 1402.770 }); // Charlton
linelist_ea.push({name:"CIV " , lambda: 1549.48 }); // spZ
linelist_ea.push({name:"HeII " , lambda: 1640.42 }); // spZ
linelist_ea.push({name:"CIII] " , lambda: 1908.734 }); // spZ
//linelist_ea.push({name:"FeII " , lambda: 2382.765 }); // Charlton
//linelist_ea.push({name:"FeII " , lambda: 2600.173 }); // Charlton
//linelist_ea.push({name:"MgII " , lambda: 2800.3152}); // spZ
linelist_ea.push({name:"MgII " , lambda: 2796.3522}); // NIST
linelist_ea.push({name:"MgII " , lambda: 2803.5300}); // NIST
linelist_ea.push({name:"[NeV] " , lambda: 3426.852 }); // NIST
linelist_ea.push({name:"[OII] " , lambda: 3727.0917}); // spZ
linelist_ea.push({name:"[OII] " , lambda: 3729.8754}); // spZ
linelist_ea.push({name:"[NeIII] " , lambda: 3869.81 }); // msw
//linelist_ea.push({name:"[NeIII] " , lambda: 3968.53 }); // msw (deliberately excluded)
linelist_ea.push({name:"Hz " , lambda: 3890.15 }); // msw Hzeta
linelist_ab.push({name:"CaII K " , lambda: 3934.777 }); // msw
linelist_ab.push({name:"CaII H " , lambda: 3969.591 }); // msw
//linelist_ea.push({name:" H\u03B5", lambda: 3971.19 }); // msw Hepsilon
linelist_ea.push({name:"H\u03B4 " , lambda: 4102.92 }); // msw Hdelta
linelist_ab.push({name:"G-band " , lambda: 4305.2 }); // no ref - converted from lambda_air=4304A
linelist_ea.push({name:"H\u03B3 " , lambda: 4341.69 }); // msw Hgamma
//linelist_ea.push({name:" [OIII]" , lambda: 4364.44 }); // msw
linelist_ea.push({name:"HeII " , lambda: 4686.9915}); // spZ
linelist_ea.push({name:"H\u03B2 " , lambda: 4862.69 }); // msw Hbeta
linelist_ea.push({name:"[OIII] " , lambda: 4960.30 }); // msw
linelist_ea.push({name:"[OIII] " , lambda: 5008.24 }); // msw
linelist_ab.push({name:"Mgb " , lambda: 5168.761 }); // msw
linelist_ab.push({name:"Mgb " , lambda: 5174.125 }); // msw
linelist_ab.push({name:"Mgb " , lambda: 5185.048 }); // msw
linelist_ea.push({name:"NI " , lambda: 5199.35 }); // NIST
linelist_ea.push({name:"NI " , lambda: 5201.71 }); // NIST
//linelist_ea.push({name:"FeII " , lambda: 5271.50 }); // NIST - strongest one of a blend
linelist_ea.push({name:"[OI] " , lambda: 5578.8878}); // spZ
linelist_ea.push({name:"HeII " , lambda: 5413.0245}); // spZ
linelist_ea.push({name:"[NII] " , lambda: 5756.1862}); // spZ
linelist_ea.push({name:"HeI " , lambda: 5877.3086}); // spZ
linelist_ab.push({name:" NaD " , lambda: 5891.583 }); // msw
linelist_ab.push({name:" NaD " , lambda: 5897.558 }); // msw
linelist_ea.push({name:"[OI] " , lambda: 6302.0464}); // spZ
linelist_ea.push({name:" [SIII]" , lambda: 6313.8056}); // spZ
linelist_ea.push({name:"[OI] " , lambda: 6363.776 }); // spZ
linelist_ea.push({name:" [NII]" , lambda: 6549.8590}); // spZ
linelist_ea.push({name:"H\u03B1 " , lambda: 6564.6140}); // spZ Halpha
linelist_ea.push({name:" [NII]" , lambda: 6585.2685}); // spZ
linelist_ea.push({name:"[SII] " , lambda: 6718.2943}); // spZ
linelist_ea.push({name:"[SII] " , lambda: 6732.6782}); // spZ
linelist_ea.push({name:"[ArIII] " , lambda: 7137.7572}); // spZ
linelist_ea.push({name:"[ArIII] " , lambda: 7753.2 }); // msw
linelist_ab.push({name:"CaII " , lambda: 8500.36 }); // msw
linelist_ab.push({name:"CaII " , lambda: 8544.44 }); // msw
linelist_ab.push({name:"CaII " , lambda: 8664.52 }); // msw
var linelist = []; //common emission and absorption lines
linelist.push( {name:"Ly limit " , lambda: 912. , emmabs:"Abs." , ref: "Charlton" }); // Charlton
linelist.push( {name:"Ly\u03B3 " , lambda: 972.537 , emmabs:"Em." , ref: "Charlton" }); // Charlton
linelist.push( {name:"Ly\u03B2 " , lambda: 1025.722 , emmabs:"Em." , ref: "Charlton" }); // Charlton
linelist.push( {name:"Ly\u03B1 " , lambda: 1215.67 , emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"NV " , lambda: 1240.81 , emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"SiIV " , lambda: 1393.755 , emmabs:"Em." , ref: "Charlton" }); // Charlton
linelist.push( {name:"SiIV " , lambda: 1402.770 , emmabs:"Em." , ref: "Charlton" }); // Charlton
linelist.push( {name:"CIV " , lambda: 1549.48 , emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"HeII " , lambda: 1640.42 , emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"CIII] " , lambda: 1908.734 , emmabs:"Em." , ref: "spZ" }); // spZ
//linelist.push({name:"FeII " , lambda: 2382.765 , emmabs:"Em." , ref: "Charlton" }); // Charlton
//linelist.push({name:"FeII " , lambda: 2600.173 , emmabs:"Em." , ref: "Charlton" }); // Charlton
//linelist.push({name:"MgII " , lambda: 2800.3152, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"MgII " , lambda: 2796.3522, emmabs:"Em." , ref: "NIST" }); // NIST
linelist.push( {name:"MgII " , lambda: 2803.5300, emmabs:"Em." , ref: "NIST" }); // NIST
linelist.push( {name:"[NeV] " , lambda: 3426.852 , emmabs:"Em." , ref: "NIST" }); // NIST
linelist.push( {name:"[OII] " , lambda: 3727.0917, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"[OII] " , lambda: 3729.8754, emmabs:"Em." , ref: "spZ" }); // spZ
//linelist.push({name:"[NeIII] " , lambda: 3968.53 , emmabs:"Em." , ref: "msw" }); // msw (deliberately excluded)
linelist.push( {name:"[NeIII] " , lambda: 3869.81 , emmabs:"Em." , ref: "msw" }); // msw
linelist.push( {name:"H\u03B6 " , lambda: 3890.15 , emmabs:"Em." , ref: "msw" }); // msw Hzeta
linelist.push( {name:"CaII K " , lambda: 3934.777 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:"CaII H " , lambda: 3969.591 , emmabs:"Abs." , ref: "msw" }); // msw
//linelist.push({name:" H\u03B5" , lambda: 3971.19 , emmabs:"Em." , ref: "msw" }); // msw Hepsilon
linelist.push( {name:"H\u03B4 " , lambda: 4102.92 , emmabs:"Em." , ref: "msw" }); // msw Hdelta
linelist.push( {name:"G-band " , lambda: 4305.2 , emmabs:"Abs." , ref: "none" }); // no ref - converted from lambda_air=4304A
linelist.push( {name:"H\u03B3 " , lambda: 4341.69 , emmabs:"Em." , ref: "msw" }); // msw Hgamma
//linelist.push({name:" [OIII]" , lambda: 4364.44 , emmabs:"Em." , ref: "msw" }); // msw
linelist.push( {name:"HeII " , lambda: 4686.9915, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"H\u03B2 " , lambda: 4862.69 , emmabs:"Em." , ref: "msw" }); // msw Hbeta
linelist.push( {name:"[OIII] " , lambda: 4960.30 , emmabs:"Em." , ref: "msw" }); // msw
linelist.push( {name:"[OIII] " , lambda: 5008.24 , emmabs:"Em." , ref: "msw" }); // msw
linelist.push( {name:"Mgb " , lambda: 5168.761 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:"Mgb " , lambda: 5174.125 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:"Mgb " , lambda: 5185.048 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:"NI " , lambda: 5199.35 , emmabs:"Em." , ref: "NIST" }); // NIST
linelist.push( {name:"NI " , lambda: 5201.71 , emmabs:"Em." , ref: "NIST" }); // NIST
//linelist.push({name:"FeII " , lambda: 5271.50 , emmabs:"Em." , ref: "NIST" }); // NIST - strongest one of a blend
linelist.push( {name:"[OI] " , lambda: 5578.8878, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"HeII " , lambda: 5413.0245, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"[NII] " , lambda: 5756.1862, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"HeI " , lambda: 5877.3086, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:" NaD " , lambda: 5891.583 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:" NaD " , lambda: 5897.558 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:"[OI] " , lambda: 6302.0464, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:" [SIII]" , lambda: 6313.8056, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"[OI] " , lambda: 6363.776 , emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:" [NII]" , lambda: 6549.8590, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"H\u03B1 " , lambda: 6564.6140, emmabs:"Em." , ref: "spZ" }); // spZ Halpha
linelist.push( {name:" [NII]" , lambda: 6585.2685, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"[SII] " , lambda: 6718.2943, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"[SII] " , lambda: 6732.6782, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"[ArIII] " , lambda: 7137.7572, emmabs:"Em." , ref: "spZ" }); // spZ
linelist.push( {name:"[ArIII] " , lambda: 7753.2 , emmabs:"Em." , ref: "msw" }); // msw
linelist.push( {name:"CaII " , lambda: 8500.36 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:"CaII " , lambda: 8544.44 , emmabs:"Abs." , ref: "msw" }); // msw
linelist.push( {name:"CaII " , lambda: 8664.52 , emmabs:"Abs." , ref: "msw" }); // msw
writeLineListTable(linelist);
canvas.oncontextmenu = function() {
return false;
......@@ -941,20 +958,23 @@ function plotData() {
ctx.rotate(-Math.PI/2);
ctx.beginPath();
for(var lineindex=0; lineindex < linelist_ea.length; lineindex++)
for(var lineindex=0; lineindex < linelist.length; lineindex++)
{
var lobs = (1.0+znow)*Number(linelist_ea[lineindex].lambda);
var x = padx1 + (lobs-x0)*dx_inv;
if ( x > padx1 && x < xsize-padx2) {
if ( linelist_ea[lineindex].name != last_name ||
x > (last_x + 8.))
{
ctx.fillText(linelist_ea[lineindex].name, ysize-0.95*pady, x+4.0);
if ( linelist[lineindex].emmabs == "Em." )
{
var lobs = (1.0+znow)*Number(linelist[lineindex].lambda);
var x = padx1 + (lobs-x0)*dx_inv;
if ( x > padx1 && x < xsize-padx2) {
if ( linelist[lineindex].name != last_name ||
x > (last_x + 8.))
{
ctx.fillText(linelist[lineindex].name, ysize-0.95*pady, x+4.0);
}
ctx.moveTo(pady,x);
ctx.lineTo(ysize-pady,x);
last_name = linelist[lineindex].name;
last_x = x;
}
ctx.moveTo(pady,x);
ctx.lineTo(ysize-pady,x);
last_name = linelist_ea[lineindex].name;
last_x = x;
}
}
ctx.stroke();
......@@ -964,20 +984,23 @@ function plotData() {
ctx.beginPath();
ctx.strokeStyle = "#888800";
ctx.fillStyle = "#888800";
for(var lineindex=0; lineindex < linelist_ab.length; lineindex++)
for(var lineindex=0; lineindex < linelist.length; lineindex++)
{
var lobs = (1.0+znow)*Number(linelist_ab[lineindex].lambda);
var x = padx1 + (lobs-x0)*dx_inv;
if ( x > padx1 && x < xsize-padx2) {
if ( linelist_ab[lineindex].name != last_name ||
x > (last_x + 8.))
{
ctx.fillText(linelist_ab[lineindex].name, ysize-0.95*pady, x+4.0);
if ( linelist[lineindex].emmabs == "Abs." )
{
var lobs = (1.0+znow)*Number(linelist[lineindex].lambda);
var x = padx1 + (lobs-x0)*dx_inv;
if ( x > padx1 && x < xsize-padx2) {
if ( linelist[lineindex].name != last_name ||
x > (last_x + 8.))
{
ctx.fillText(linelist[lineindex].name, ysize-0.95*pady, x+4.0);
}
ctx.moveTo(pady,x);
ctx.lineTo(ysize-pady,x);
last_name = linelist[lineindex].name;
last_x = x;
}
ctx.moveTo(pady,x);
ctx.lineTo(ysize-pady,x);
last_name = linelist_ab[lineindex].name;
last_x = x;
}
}
ctx.stroke();
......@@ -1459,6 +1482,38 @@ document.body.addEventListener('mouseup', function (evt){
}, false);
//add the used line names/wavelengths to the line list table
function writeLineListTable(linelist){
var nrows = 1;
var table = document.getElementById("tableLinelist");
// Create an empty <tr> element and add it to the 1st position of the table:
for(var lineindex=0; lineindex < linelist.length; lineindex++)
{
//add a table row;
var row = table.insertRow(nrows);
var cell0 = row.insertCell(0);
var cell1 = row.insertCell(1);
var cell2 = row.insertCell(2);
var cell3 = row.insertCell(3);
var str_ref = "none";
//write the name, the lambda, the em/abs flag, the reference
cell0.innerHTML = linelist[lineindex].name;
cell1.innerHTML = linelist[lineindex].lambda;
cell2.innerHTML = linelist[lineindex].emmabs;
switch (linelist[lineindex].ref)
{
case "msw" : str_ref = "<a href='http://www.star.ucl.ac.uk/~msw/lines.html'>Mark Westmoquette's compilation</a>"; break;
case "B12" : str_ref = "<a href='http://arxiv.org/abs/1207.7326v1'>Bolton et al., 2012</a>"; break;
case "spZ" : str_ref = "<a href='http://data.sdss3.org/datamodel/files/BOSS_SPECTRO_REDUX/RUN2D/PLATE4/RUN1D/spZline.html'>SDSS spZline data model (DR12)</a>"; break;
case "Charlton" : str_ref = "<a href='http://ned.ipac.caltech.edu/level5/Charlton/Charlton1_1.html'>Charlton & Churchill (2000)</a>"; break;
case "NIST" : str_ref = "<a href='http://physics.nist.gov/PhysRefData/ASD/lines_form.html'>NIST (then converted to vacuum wavelengths)</a>"; break;
case "NIST_Fe" : str_ref = "<a href='http://physics.nist.gov/PhysRefData/Handbook/Tables/irontable2.htm'>NIST Iron lines table</a>"; break;
}
cell3.innerHTML = str_ref;
nrows ++;
}
}
</script>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment