forked from audrey-grayson/NIRSPECefs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathefs.html
executable file
·152 lines (126 loc) · 7 KB
/
efs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>NIRSPEC Echelle Format Simulator</title>
<link rel=stylesheet type="text/css" href="css/layout.css">
<script src="https://code.jquery.com/jquery-1.12.4.js" type="text/javascript" ></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" type="text/javascript" ></script>
</head>
<body>
<div id="full">
<div id='container' >
<div id="detector" onmousedown="Drag();">
<div id="draggable" >
<div class="detectorbox">ccd</div>
</div>
</div>
<div id="echellebg">
<canvas id="echelle" height=1000 width=1000></canvas>
</div>
</div>
<div id="ui" >
<div id="header">
<p id="title">NIRSPEC Echelle Format Simulator</p>
<div id="keckcontainer">
<img id="logo" src="css/keck-logo-small.png">
<p id="keck" >Keck Observatory</p>
</div>
</div>
<div id="ui-top">
<div id="spectra" class="interface d1">
<iframe id="spectrumgraph" class="data graph" src="" ></iframe>
<iframe id="popup" class="graph" src=""></iframe>
</div>
<div id="settings" class="interface d2">
<div id="toggle" class="data" value="red">
Zoom: <input type="range" id="zoom" class="settings-item" min="4" max="24" value=10 /><br>
<select id="switchSlit" class="settings-item" >
<option disabled value='12'>Slit Length</option>
<optgroup label="High-Res Slits">
<option value='0.144"x12 (1-pix)'>0.144"x12 (1-pix)</option>
<option value='0.288"x12 (2-pix)'>0.288"x12 (2-pix)</option>
<option value='0.432"x12 (3-pix)'>0.432"x12 (3-pix)</option>
<option value='0.576"x12 (4-pix)'>0.576"x12 (4-pix)</option>
<option value='0.720"x12 (5-pix)'>0.720"x12 (5-pix)</option>
<option value='0.288"x24 (2-pix)'>0.288"x24 (2-pix)</option>
<option value='0.432"x24 (3-pix)'>0.432"x24 (3-pix)</option>
<option value='0.720"x24 (5-pix)'>0.720"x24 (5-pix)</option>
</optgroup>
<optgroup label="Low-Res Slits">
<option value='0.380"x42 (2-pix)'>42x0.380" (2-pix)</option>
<option value='0.570"x42 (3-pix)'>42x0.570" (3-pix)</option>
<option value='0.760"x42 (4-pix)'>42x0.760" (4-pix)</option>
</optgroup>
</select><br>
<select id="switchFilter" class="settings-item" >
<option selected disabled value="N1">Filter</option>
<optgroup label="Wheel 1">
<option value='LP'>L-Prime</option>
<option value='MP'>M-Prime</option>
<option value='KL'>KL</option>
<option value='HeI'>HeI</option>
<option value='PB'>Pa-Beta</option>
<option value='H2'>H2</option>
<option value='FeII'>FeII</option>
<option value='MW'>M-Wide</option>
</optgroup>
<optgroup label="Wheel 2">
<option value='N1'>N-1</option>
<option value='N2'>N-2</option>
<option value='N3'>N-3 (J)</option>
<option value='N4'>N-4</option>
<option value='N5'>N-5 (H)</option>
<option value='N6'>N-6</option>
<option value='N7'>N-7</option>
<option value='CO'>CO</option>
<option value='K'>K</option>
<option value='K-Prime'>K-Prime</option>
</optgroup>
</select><br>
<input id="toggleDetector" class="settings-item" type="button" value="Hide Detector">
</div>
</div>
</div>
<div id="ui-bottom">
<div id="info" class="interface d1" >
<div id="Wavelength" class="data">Lambda: 5846 mm</div>
<br>
<div id="OrderNum" class="data">Order: 61</div>
<br>
<div id="EchelleAngle" class="data">Echelle Angle<br></div>
<br>
<div id="CrossDisperserAngle" class="data">Cross Disperser Angle<br></div>
<br>
<div id="CentralOrder" class="data">Central Order:</div>
</div>
<div id="input" class="interface d2" >
<div id="FindLambda" class="data locwave">Locate Wavelength: <br><input type="text" id="lambdainput" value=1 /><br>
<input class="SetDetectorPosition" type="button" value="Mark" onClick="findLambdaLocation(document.getElementById('lambdainput').value*10000,true,true);") />
<input class="SetDetectorPosition" type="button" value="Go To" onClick="setDetectorPositionWavelength();") />
<input class="ClearMarkers" type="button" value="Clear" onClick="clearMarkers();") />
</div><br>
<div class="data">Set Echelle Angle:
<input id="FindEchelleAngle" type="text" value=0 /><br>
Set Cross-disperser Angle:
<input id="FindCrossDisperserAngle" type="text" value=0 /><br>
<input class="SetDetectorPosition" type="button" value="Go To Angle" onClick="setDetectorPositionAngle();") />
</div><br>
<div class="data">
<div class="dropdown">
<button>More</button>
<ul class="dropdown-menu">
<li><a href="#home">Help</a></li>
<li><a href="#about">Export</a></li>
<li><a href="#specs">Specifications</a></li>
<li><a href="./efs.html">Reset</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="NIRSPECefs.js"></script>
</body>
</html>