Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Dwelly
speccy
Commits
b215bb53
Commit
b215bb53
authored
Jul 22, 2021
by
Tom Dwelly
Browse files
tidy up thumbs
parent
0c6913ee
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
js/speccy.js
View file @
b215bb53
...
...
@@ -93,7 +93,8 @@ var prev_y0;
var
prev_y1
;
var
stamp_numpix
=
80
;
var
stamp_scale
=
0.2
;
const
stamp_scale_default
=
0.2
;
var
stamp_scale
=
stamp_scale_default
;
var
mousePos_old
;
var
leftclick
=
0
,
middleclick
=
1
,
rightclick
=
2
;
...
...
@@ -550,9 +551,9 @@ function changeTemplate() {
}
function
readSkyTrans
()
{
var
template
URL
=
"
templates/eso_skycalc_transmission_R3000.txt
"
;
const
trans
URL
=
"
templates/eso_skycalc_transmission_R3000.txt
"
;
//read in the file
var
jQResult
=
jQuery
.
get
(
t
emplate
URL
,
function
(
data
)
{
var
jQResult
=
jQuery
.
get
(
t
rans
URL
,
function
(
data
)
{
var
lines
=
[];
lines
=
data
.
split
(
"
\n
"
);
//file format: lambda(A),flux
...
...
@@ -1491,20 +1492,27 @@ function zoomStamps(inout){
stamp_scale
=
stamp_scale
*
0.8
;
}
else
if
(
inout
==
"
out
"
)
{
stamp_scale
=
stamp_scale
*
1.25
;
}
else
if
(
inout
==
"
reset
"
)
{
stamp_scale
=
stamp_scale_default
;
}
setupStamps
(
keyvals
[
keynames
.
indexOf
(
"
PLUG_RA
"
)],
keyvals
[
keynames
.
indexOf
(
"
PLUG_DEC
"
)]);
}
function
setupStamps
(
ra
,
dec
){
var
_inner_format
=
"
<a href='${url_link}' target='_blank'><img title='${title}' src='${url_img}' height='160px' width='160px' alt='go to viewer'></a>
"
;
var
_url_img_format
=
'
http://www.legacysurvey.org/viewer/jpeg-cutout/?ra=${ra}&dec=${dec}&pixscale=${scale}&layer=${layer}&size=${numpix}
'
;
var
_url_link_format
=
'
http://www.legacysurvey.org/viewer?ra=${ra}&dec=${dec}&layer=${layer}&mark=${ra},${dec}&zoom=18
'
;
var
_inner_format
=
"
<a href='${url_link}' target='_blank'><img class='picture' title='${title}' src='${url_img}' width='150px' height='150px' alt='go to viewer'></a>
"
;
var
el
=
document
.
getElementById
(
"
thumb_span_zoom
"
);
el
.
innerHTML
=
"
Image size:<br>
"
+
(
Math
.
floor
(
stamp_numpix
)
*
stamp_scale
).
toFixed
(
1
)
+
"
arcsec
"
;
var
layers
=
[
"
galex
"
,
"
sdss
"
,
"
ls-dr9
"
,
"
hsc2
"
,
"
unwise-neo6
"
,
"
vlass
"
];
var
layers
=
[
//"galex",
"
sdss
"
,
"
ls-dr9
"
,
"
hsc2
"
,
"
unwise-neo6
"
,
"
vlass
"
];
for
(
var
l
=
0
;
l
<
layers
.
length
;
l
++
){
var
layer
=
layers
[
l
];
var
td
=
document
.
getElementById
(
"
thumb_panel_
"
+
layer
);
...
...
@@ -1534,13 +1542,14 @@ function setupStamps(ra, dec){
var
_url_img_format
=
'
https://alasky.u-strasbg.fr/hips-image-services/hips2fits?hips=${layer}&width=${numpix}&height=${numpix}&fov=${size_deg}&projection=TAN&ra=${ra}&dec=${dec}&format=jpg
'
;
var
_url_link_format
=
'
http://aladin.unistra.fr/AladinLite/?target=${ra}${dec}&fov=0.05&survey=${layer}
'
;
var
layers
=
[{
'
name
'
:
'
xmm
'
,
'
hips
'
:
'
ESAVO/P/XMM/EPIC-RGB
'
},
{
'
name
'
:
'
csc
'
,
'
hips
'
:
'
cxc.harvard.edu/P/cda/hips/allsky/rgb
'
},
var
layers
=
[
//
{'name': 'xmm', 'hips': 'ESAVO/P/XMM/EPIC-RGB'},
//
{'name': 'csc', 'hips': 'cxc.harvard.edu/P/cda/hips/allsky/rgb'},
{
'
name
'
:
'
2mass
'
,
'
hips
'
:
'
CDS/P/2MASS/color
'
},
{
'
name
'
:
'
vikingk
'
,
'
hips
'
:
'
CDS/P/VISTA/VIKING/K
'
},
{
'
name
'
:
'
dss2
'
,
'
hips
'
:
'
CDS/P/DSS2/color
'
},
{
'
name
'
:
'
nvss
'
,
'
hips
'
:
'
CDS/P/NVSS
'
},
{
'
name
'
:
'
ps1
'
,
'
hips
'
:
'
CDS/P/PanSTARRS/DR1/color-i-r-g
'
}];
// {'name': 'nvss', 'hips': 'CDS/P/NVSS'},
{
'
name
'
:
'
ps1
'
,
'
hips
'
:
'
CDS/P/PanSTARRS/DR1/color-i-r-g
'
},
{
'
name
'
:
'
galex
'
,
'
hips
'
:
'
CDS/P/GALEXGR6/AIS/color
'
}];
for
(
var
l
=
0
;
l
<
layers
.
length
;
l
++
){
var
layer
=
layers
[
l
];
var
td
=
document
.
getElementById
(
"
thumb_panel_
"
+
layer
[
'
name
'
]);
...
...
speccy.html
View file @
b215bb53
...
...
@@ -54,9 +54,13 @@
border
:
1px
solid
gray
;
}
td
.thumb
{
min-width
:
1
5
0px
;
min-width
:
1
6
0px
;
text-align
:
center
;
}
input
.padded
{
margin
:
3px
;
}
th
{
text-align
:
center
;
background-color
:
#c5ffe5
;
...
...
@@ -323,8 +327,8 @@
<td
colspan=
"5"
>
<table>
<tr>
<th
class=
"thumb"
>
XMM
</th>
<th
class=
"thumb"
>
Chandra
</th>
<!--
<th class="thumb">XMM</th>
-->
<!--
<th class="thumb">Chandra</th>
-->
<th
class=
"thumb"
>
GALEX
</th>
<th
class=
"thumb"
>
DSS2
</th>
<th
class=
"thumb"
>
SDSS gri
</th>
...
...
@@ -335,12 +339,12 @@
<th
class=
"thumb"
>
VIKING K
<sub>
s
</sub></th>
<th
class=
"thumb"
>
unWISE W1W2
</th>
<th
class=
"thumb"
>
VLASS 2-4GHz
</th>
<th
class=
"thumb"
>
NVSS 1.4GHz
</th>
<!--
<th class="thumb">NVSS 1.4GHz</th>
-->
<th
class=
"thumb"
>
Zoom
</th>
</tr>
<tr>
<td
class=
"thumb"
id=
"thumb_panel_xmm"
></td>
<td
class=
"thumb"
id=
"thumb_panel_csc"
></td>
<!--
<td class="thumb" id="thumb_panel_xmm" ></td>
-->
<!--
<td class="thumb" id="thumb_panel_csc" ></td>
-->
<td
class=
"thumb"
id=
"thumb_panel_galex"
></td>
<td
class=
"thumb"
id=
"thumb_panel_dss2"
></td>
<td
class=
"thumb"
id=
"thumb_panel_sdss"
></td>
...
...
@@ -351,12 +355,12 @@
<td
class=
"thumb"
id=
"thumb_panel_vikingk"
></td>
<td
class=
"thumb"
id=
"thumb_panel_unwise-neo6"
></td>
<td
class=
"thumb"
id=
"thumb_panel_vlass"
></td>
<td
class=
"thumb"
id=
"thumb_panel_nvss"
></td>
<!--
<td class="thumb" id="thumb_panel_nvss"></td>
-->
<td
class=
"thumb"
id=
"thumb_panel_zoom"
>
<span
id=
"thumb_span_zoom"
></span><br>
<br>
<input
type=
"button"
onclick=
"zoomStamps('in')"
value=
"Zoom in"
/
>
<
br
><br>
<input
type=
"button"
onclick=
"zoomStamps('
ou
t')"
value=
"
Zoom out
"
/>
<span
id=
"thumb_span_zoom"
></span><br>
<input
type=
"button"
onclick=
"zoomStamps('in')"
value=
"Zoom in"
class=
"padded"
/><br
>
<
input
type=
"button"
onclick=
"zoomStamps('out')"
value=
"Zoom out"
class=
"padded"
/
><br>
<input
type=
"button"
onclick=
"zoomStamps('
rese
t')"
value=
"
Reset"
class=
"padded
"
/>
</td>
</tr>
</table>
...
...
templates/eso_skycalc_transmission_R3000.dat
View file @
b215bb53
This diff is collapsed.
Click to expand it.
templates/eso_skycalc_transmission_R3000.txt
View file @
b215bb53
This diff is collapsed.
Click to expand it.
templates/eso_skycalc_transmission_notes.readme
0 → 100644
View file @
b215bb53
https://arxiv.org/pdf/1711.00510
- modal PWV at APO is ~2.5 mm
https://www.eso.org/observing/etc/bin/simu/skycalc
Input Configuration
Observatory Height : 2640m above sea level
Altitude : 50.3
Airmass : 1.30
Season : Jun/Jul
Time Period : 2/3 of Night
PWV : 2.50 mm
Monthly Averaged Solar Radio Flux : 130.00 sfu
Components included in the radiance model:
Scattered Moonlight:
separation of Sun and Moon : 156 degrees
separation of Moon and object : 180 degrees
altitude of Moon above horizon : -90 degrees
distance to Moon : 1.000
Scattered Starlight
Zodiacal Light:
heliocentric ecliptic longitude of object : -63 degrees
ecliptic latitude of object : -20 degrees
Molecular Emission of Lower Atmosphere
Emission Lines of Upper Atmosphere
Airglow/Residual Continuum
Wavelength grid:
Range: 300.00 nm - 1100.00 nm
Fixed spectral resolution R=3000
Wavelengths in Air or Vacuum : Vacuum
LSF convolution kernel: Gaussian FWHM=1.00 bins
# save file as
templates/eso_skycalc_transmission_R3000.dat
Then convert to readable format:
gawk '//{printf("%.3f,%.6f\n", $1*10., $2)}' templates/eso_skycalc_transmission_R3000.dat > templates/eso_skycalc_transmission_R3000.txt
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment