olqv1d.ejs 20.4 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
    <title>
        <%= title %>
    </title>
    <link rel="stylesheet" href="../stylesheets/autoComplete.min.css">
    <script src="../javascript/libs/autoComplete.min.js"></script>

    <script src="https://code.jquery.com/jquery-3.3.1.min.js"
        integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
        integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
        integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"
        crossorigin="anonymous"></script>
    <script src="https://code.highcharts.com/8.0.4/highcharts.src.js"></script>
    <script src="https://code.highcharts.com/8.0.4/modules/boost.js"></script>
Moreau Nicolas's avatar
Moreau Nicolas committed
20
    <script src='../javascript/libs/aladin_2021_01.min.js'></script>
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
    <script src="../javascript/libs/enum-3.0.4.js"></script>


    <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
    <link rel="stylesheet" type="text/css" href="../stylesheets/overlay.css">
    <link rel="stylesheet" type="text/css" href="../stylesheets/olqv.css">

    <!-- Conditional code generation -->
    <%if(useSAMP){%>
        <script src="../javascript/libs/samp.js"></script>
        <%}%>
            <!-- End of conditional code generation -->
</head>

<body>
    <div id="loading"></div>
    <div id="fitshdr" class="overlay" style="overflow:scroll"></div>
    <div id="licences" class="overlay" style="overflow:scroll"></div>
    <div class="pos-f-t">
        <div class="collapse samp-registration" id="samp-registration"></div>
        <div class="collapse" id="navbar-toggle-external-content">
            <div class="p-4">
                <% if (renderingCapabilities) { %>
                    <div>
                        <ul class="list-group list-group-horizontal img-configuration">
                            <li class="list-group-item ">
                                Slice viewers configuration
                            </li>
                            <li class="list-group-item ">
                                <label for="LUT-selector"> LUTs</label>
                                <select class="form-control" id="LUT-selector">
                                    <% renderingCapabilities["luts"].forEach(function(lut) { %>
                                        <option>
                                            <%=lut%>
                                        </option>
                                        <% }) %>
                                </select>
                            </li>
                            <li class="list-group-item ">
                                <label for="ITT-selector">ITTs</label>
                                <select class="form-control" id="ITT-selector">
                                    <% for(let i=0; i < renderingCapabilities["itts"].length; i++){ let selected="" ;
                                        if(i===renderingCapabilities["default_itt_index"]) selected='selected' ; %>
                                        <option <%=selected %>> <%=renderingCapabilities["itts"][i]%>
                                        </option>
                                        <% } %>
                                </select>
                            </li>
                            <li class="list-group-item ">
                                <label for="video-mode-selector">Video mode</label>
                                <select class="form-control" id="video-mode-selector">
                                    <% renderingCapabilities["vmodes"].forEach(function(vmode) { %>
                                        <option>
                                            <%=vmode%>
                                        </option>
                                        <% }) %>
                                </select>
                            </li>
                            <li class="list-group-item">
                                <button id="rccap" class="btn btn-control btn-secondary">Apply</button>
                            </li>
                        </ul>
                    </div>
                    <%}%>
            </div>
        </div>
    </div>
    <div>
        <nav class="navbar navbar-dark bg-dark navbar-title">
            <button class="navbar-toggler" type="button" data-toggle="collapse"
                data-target="#navbar-toggle-external-content" aria-controls="navbar-toggle-external-content"
                aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div><a href="/fits/browse" target="_blank" class="btn btn-link btn-sm">Browse Fits files</a></div>
            <div><a href="/fits/query" target="_blank" class="btn btn-link btn-sm">Query Fits files</a></div>
97
            <div><a data-toggle="modal" data-target="#help-modal" href='#'>Help (1D)</a></div>
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
153
154
155
156
            <img src="../samphub.png" alt="samp logo" id="samp-img" class="samp-img" data-toggle="collapse"
                data-target="#samp-registration" title="Transfer data to another application with SAMP protocol"
                aria-controls="samp-registration" aria-expanded="false" aria-label="Toggle navigation" />
        </nav>
    </div>
    <div class="cube-header">
        <span id="cube-infos"></span>
        <span><a id='show-fits-header' href='#'> more headers ...</a></span>
    </div>
    <div class="container yafits-container">
        <div class="row">
            <div class="col">
                <div id="spectrum-info-title" class="chart-title"></div>
            </div>
        </div>
        <div class="row">
            <div class="col-11 chart-plot">
                <div id="spectrum"></div>
            </div>
            <div class="col-1 last-col">
                <div>
                    <div>
                        <p class="right-menu-box-title">Graph</p>
                        <p><button id="zoom-in" class="btn btn-control btn-secondary right-menu-box-element">Zoom
                                in</button></p>
                        <p><button id="zoom-out" class="btn btn-control btn-secondary right-menu-box-element">Zoom
                                out</button></p>
                        <p><button id="zoom-reset"
                                class="btn btn-control btn-secondary right-menu-box-element">Reset</button></p>
                    </div>
                    <div class="right-menu-box">
                        <p class="right-menu-box-title"><strong>Smoothed cube</strong></p>
                        <p>
                            <input type="text" id="get-nbox" value="2" class="right-menu-box-element"
                                title="Number of channels to smooth" />
                        </p>
                        <p>
                            <button id="get-smooth-cube" class="btn btn-control btn-secondary right-menu-box-element"
                                title="Download smoothed cube">Download</button>
                        </p>
                        <p>
                            <button id="view-smooth-cube" class="btn btn-control btn-secondary right-menu-box-element"
                                title="View smoothed cube">View</button>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="container yafits-container">
        <div class="row">
            <div class="col">
                <div class="chart-title">
                    <span id="chart-title"></span>
                </div>
            </div>
        </div>
    </div>

Moreau Nicolas's avatar
Moreau Nicolas committed
157
158


159
    <div class="container yafits-container">
Moreau Nicolas's avatar
Moreau Nicolas committed
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
        <div class="row last-row">
            <div class="col chart-img">
                <p>
                    <span>
                        Search NED Data for a flat universe
                    </span>
                    <select id="ned-search-radius">
                        <option value="fov">in FOV</option>
                        <option value="0.016667">1 arcmin</option>
                        <option value="0.166667">10 arcmin</option>
                        <option value="0.5">30 arcmin</option>
                        <option value="1">60 arcmin</option>
                    </select>
                </p>
                <p>
                    <label for="lines-hnot" title="Hubble constant">H<sub>0</sub></label>
                    <input type="text" id="lines-hnot" value="69.6">

                    <label for="lines-omegam" title="Mass density">&Omega;<sub>M</sub></label>
                    <input type="text" id="lines-omegam" value="0.286">

                    <button type="button" class="btn btn-control btn-secondary" data-toggle="modal"
                        data-target="#ned-modal">
                        Search
                    </button>
                </p>
                <p>
                    <label for="lines-redshift">Redshift</label> <input type="text"
                    id="lines-redshift">

                    <label for="lines-velocity">Velocity</label> <input type="text" id="lines-velocity"
                        placeholder="in km/s">

                    <label for="lines-dl">DL</label> <input type="text" id="lines-dl"
                        placeholder="in Mpc">
                </p>
            </div>
            <div class="col">      
                <div class="form-line" id="toggler-area">
                    <label for="toggle-lines-search"><strong>Open the line identification tool</strong></label>
                    <input type="checkbox" id="toggle-lines-search" />  
                </div>  
                <div id="spectroscopy-menu" class="hidden">     
                    <div class="form-line">
                        <div class="form-line">
                            <div class="autoComplete_wrapper">
                                <input type="search" dir="ltr" spellcheck="false" autocomplete="off"
                                    autocapitalize="off" id="autoComplete">
                            </div>
                        </div>
                        <div class="form-line">
                            <ul id="selectedspecies" class="selected-species"></ul>

                        </div>
                    </div>
                    <div class="form-line">
                        <label>Search in</label>
                        <span>
                            <a data-toggle="tooltip" title="Local : a short list of well known lines, CDMS : 
                        spectroscopic data gathered from CDMS database through VAMDC access, 
                        JPL : spectroscopic data gathered from JPL database through VAMDC access">
                                <span class="glyphicon glyphicon-info-sign " /></a> :
                        </span>
                        <span id="localdatasourcespan">
                            <label title="A selection of commonly used lines in radio astronomy spectra analysis">
                            <a target="_blank" href="../files/local.csv"><strong>Local</strong></a></label>
                            <input type="radio" id="localdatasource" name="spectrodatasource" checked value="local" />
                        </span>

                        <span id="ismdatasourcespan">
                            <label title="List of molecules in interstellar medium from CDMS database">
                            <a target="_blank" href="../files/ISM.txt"><strong>ISM</strong></a></label>
                            <input type="radio" id="ismdatasource" name="spectrodatasource" value="ism" />
                        </span>

                        <span id="ismcsmdatasourcespan">
                            <label title="List of molecules in interstellar and circumstellar medium from CDMS database">
                            <a target="_blank" href="../files/ISM_CSM.txt"><strong>ISM-CSM</strong></a></label>
                            <input type="radio" id="ismcsmdatasource" name="spectrodatasource" value="ismcsm" />
                        </span>

                        <span id="cdmsdatasourcespan">
                            <label title="All species from CDMS database available through VAMDC"><strong>CDMS</strong></label>
                            <input type="radio" id="cdmsdatasource" name="spectrodatasource" value="cdms" />
                        </span>

                        <span id="jpldatasourcespan">
                            <label title="All species from JPL database available through VAMDC"><strong>NASA/JPL-Caltech</strong></label>
                            <input type="radio" id="jpldatasource" name="spectrodatasource" value="jpl" />
                        </span>
                    </div>
                    <div class="spectroscopy form-line">
                        <label id="intensityrangelabel" for="intensityrange">Line intensity</label>
                        <a data-toggle="tooltip" title="Base 10 logarithm of the integrated intensity
                                                        in units of nm^2 MHz at 300 K." />
                            <span class="glyphicon glyphicon-info-sign " ></span></a>
                        <input id="intensityrange" type="range" min="-40" max="0" step="0.1"
                            oninput="intensity.value=value" onchange="intensity.value=value" class="range">
                        <output id="intensity">-1</output>
                    </div>
                    <div class="form-line">
                        <label id="energyuplabel">Energy up max</label>
                        <a data-toggle="tooltip" title="Energy of the transition upper level in cm-1" />
                            <span class="glyphicon glyphicon-info-sign " ></a>
                        <input type="text" name="EnergyUp" id="energyup" >
                        <select id="energyupunit">
                            <option value="K" selected>K</option>    
                            <option value="cm-1">cm-1</option>    
                        </select>
                    </div>
                    <div class="form-line">
                        <label>Number of atoms </label>
                        <select id="atomcount-min">
                            <option value="1" selected>1</option>    
                            <option value="2">2</option>    
                            <option value="3">3</option>    
                            <option value="4">4</option>    
                            <option value="5">5</option>    
                            <option value="6">6</option>    
                            <option value="7">7</option>    
                            <option value="8">8</option>    
                            <option value="9">9</option>    
                            <option value="10">10</option>    
                            <option value="undefined">All</option>    
                        </select>
                        <select id="atomcount-max">
                            <option value="1">1</option>    
                            <option value="2">2</option>    
                            <option value="3">3</option>    
                            <option value="4" selected>4</option>    
                            <option value="5">5</option>   
                            <option value="6">6</option>    
                            <option value="7">7</option>    
                            <option value="8">8</option>    
                            <option value="9">9</option>    
                            <option value="10">10</option>    
                            <option value="undefined">All</option>   
                        </select>
                    </div>
                    <div class="form-line">
                        <select id="energy-groups" class="hidden">
                        </select>
                    </div>
                </div>
            </div>
            <div class="col last-col">
                <div id="lines-table-container" class="hidden">
                    <button id="goto-first-group" class="btn btn-secondary">&lt;&lt;</button>
                    <button id="goto-previous-group" class="btn btn-secondary">&lt;</button>
                    <button id="goto-next-group" class="btn btn-secondary">&gt;</button>
                    <button id="goto-last-group" class="btn btn-secondary">&gt;&gt;</button>
                    <span id="current-group"></span>/
                    <span id="last-group"></span>
                    <table id="lines-table" class="table lines-table">
                        <thead>
                            <tr>
                                <th colspan="2" id="energy-groups-infos" class="center"></th>
                            </tr>
                            <tr>
                                <th class="center">Possible species</th>
                                <th class="center">Observed Frequency (GHz)</th>
                            </tr>
                        </thead>
                        <tbody id="lines-table-tbody"></tbody>
                    </table>
                </div>
            </div>
        </div>
        <div id="dataset"></div>

        <div class="hidden">
            <div id="popup-single" class="ol-popup">
                <a href="#" id="popup-single-closer" class="ol-popup-closer"></a>
                <div id="popup-single-content"></div>
            </div>
        </div>
        <div class="hidden">
            <div id="popup-summed" class="ol-popup">
                <a href="#" id="popup-summed-closer" class="ol-popup-closer"></a>
                <div id="popup-summed-content"></div>
            </div>
        </div>
        <!-- Modal for spectroscopic data-->
        <div class="modal fade" id="spectro-modal">
            <div class="modal-dialog modal-xlg" role="document">
                <div class="modal-content">
                    <pre id="spetro-modal-lines"></pre>
                </div>
            </div>
        </div>
        <!-- Modal for ned data-->
        <div class="modal fade" id="ned-modal">
            <div class="modal-dialog modal-xlg" role="document">
                <div class="modal-content ned-modal">
                    <div class="modal-header">
                        <h5 class="modal-title" id="ned-modal-title">Data from NED</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body ned-data" id="ned-data">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                    </div>
                </div>
            </div>
        </div>
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
        <!-- help page-->
        <% include ./helpmodals/help %>

            <div>
                <span id='spectroServer' hidden>
                    <% if(spectrosHost !=="localhost" ) {%>
                        <%= httpProtocol; %>://<%= spectrosHost; %>/<%= spectrosPath; %>
                                    <%} else{%>
                                        <%= httpProtocol; %>://<%= spectrosHost; %>:<%= spectrosPort; %>
                                                    <% } %>
                </span>
                <span id='withSamp' hidden>
                    <%= JSON.stringify(useSAMP); %>
                </span>
                <span id='urlRoot' hidden>
                    <%= JSON.stringify(urlRoot); %>
                </span>
                <span id='relFITSFilePath' hidden>
                    <%= JSON.stringify(relFITSFilePath); %>
                </span>
                <span id='header' hidden>
                    <%= JSON.stringify(header); %>
                </span>
                <span id='product' hidden>
                    <%= JSON.stringify(product); %>
                </span>

                <span id='defaultLutIndex' hidden>
                    <%= JSON.stringify(renderingCapabilities["default_lut_index"]); %>
                </span>
            </div>
    </div>

    <% include ./footer %>

        <script type="module" src="../javascript/olqv1d.js"></script>
</body>

</html>