Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

j001228m1028.html 17 KB
Raw

You have to be logged in to leave a comment. Sign In
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
153
154
155
156
157
158
159
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
  1. <html>
  2. <head>
  3. <meta charset="utf-8"/>
  4. <meta content="text/html;charset=UTF-8" http-equiv="Content-type"/>
  5. <style>
  6. body {font-family: sans-serif;}
  7. table.dataTable {width: auto !important; margin: 0 !important;}
  8. .dataTables_filter, .dataTables_paginate {float: left !important; margin-left:1em}
  9. td {font-size: 10pt;}
  10. </style>
  11. <link href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.css" rel="stylesheet" type="text/css"/>
  12. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.5.1/css/buttons.dataTables.min.css">
  13. <script src="https://code.jquery.com/jquery-3.1.1.min.js">
  14. </script>
  15. <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js">
  16. </script>
  17. <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.min.js"></script>
  18. <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.flash.min.js"></script>
  19. <script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
  20. <script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
  21. <script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
  22. <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.html5.min.js"></script>
  23. <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.print.min.js"></script>
  24. </head>
  25. <body>
  26. <script>
  27. var astropy_sort_num = function(a, b) {
  28. var a_num = parseFloat(a);
  29. var b_num = parseFloat(b);
  30. if (isNaN(a_num) && isNaN(b_num))
  31. return ((a < b) ? -1 : ((a > b) ? 1 : 0));
  32. else if (!isNaN(a_num) && !isNaN(b_num))
  33. return ((a_num < b_num) ? -1 : ((a_num > b_num) ? 1 : 0));
  34. else
  35. return isNaN(a_num) ? -1 : 1;
  36. }
  37. jQuery.extend( jQuery.fn.dataTableExt.oSort, {
  38. "optionalnum-asc": astropy_sort_num,
  39. "optionalnum-desc": function (a,b) { return -astropy_sort_num(a, b); }
  40. });
  41. //// Parser
  42. // https://stackoverflow.com/questions/19491336/get-url-parameter-jquery-or-how-to-get-query-string-values-in-js @ Reza Baradaran
  43. $.urlParam = function(name){
  44. var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
  45. if (results==null){
  46. return null;
  47. }
  48. else{
  49. return decodeURI(results[1]) || 0;
  50. }
  51. }
  52. $.fn.dataTable.ext.search.push(
  53. function( settings, data, dataIndex ) {
  54. var min_status = parseFloat( $('#status_min').val()) || -1e30;
  55. var max_status = parseFloat( $('#status_max').val()) || 1e30;
  56. var data_status = parseFloat( data[3] ) || 0;
  57. var min_ra = parseFloat( $('#ra_min').val()) || -1e30;
  58. var max_ra = parseFloat( $('#ra_max').val()) || 1e30;
  59. var data_ra = parseFloat( data[4] ) || 0;
  60. var min_dec = parseFloat( $('#dec_min').val()) || -1e30;
  61. var max_dec = parseFloat( $('#dec_max').val()) || 1e30;
  62. var data_dec = parseFloat( data[5] ) || 0;
  63. var min_mag_auto = parseFloat( $('#mag_auto_min').val()) || -1e30;
  64. var max_mag_auto = parseFloat( $('#mag_auto_max').val()) || 1e30;
  65. var data_mag_auto = parseFloat( data[6] ) || 0;
  66. var min_flux_radius = parseFloat( $('#flux_radius_min').val()) || -1e30;
  67. var max_flux_radius = parseFloat( $('#flux_radius_max').val()) || 1e30;
  68. var data_flux_radius = parseFloat( data[7] ) || 0;
  69. var min_t_g800l = parseFloat( $('#t_g800l_min').val()) || -1e30;
  70. var max_t_g800l = parseFloat( $('#t_g800l_max').val()) || 1e30;
  71. var data_t_g800l = parseFloat( data[8] ) || 0;
  72. var min_t_g102 = parseFloat( $('#t_g102_min').val()) || -1e30;
  73. var max_t_g102 = parseFloat( $('#t_g102_max').val()) || 1e30;
  74. var data_t_g102 = parseFloat( data[9] ) || 0;
  75. var min_t_g141 = parseFloat( $('#t_g141_min').val()) || -1e30;
  76. var max_t_g141 = parseFloat( $('#t_g141_max').val()) || 1e30;
  77. var data_t_g141 = parseFloat( data[10] ) || 0;
  78. var min_z_spec = parseFloat( $('#z_spec_min').val()) || -1e30;
  79. var max_z_spec = parseFloat( $('#z_spec_max').val()) || 1e30;
  80. var data_z_spec = parseFloat( data[11] ) || 0;
  81. var min_z_map = parseFloat( $('#z_map_min').val()) || -1e30;
  82. var max_z_map = parseFloat( $('#z_map_max').val()) || 1e30;
  83. var data_z_map = parseFloat( data[12] ) || 0;
  84. var min_bic_diff = parseFloat( $('#bic_diff_min').val()) || -1e30;
  85. var max_bic_diff = parseFloat( $('#bic_diff_max').val()) || 1e30;
  86. var data_bic_diff = parseFloat( data[13] ) || 0;
  87. var min_chinu = parseFloat( $('#chinu_min').val()) || -1e30;
  88. var max_chinu = parseFloat( $('#chinu_max').val()) || 1e30;
  89. var data_chinu = parseFloat( data[14] ) || 0;
  90. var min_zw1 = parseFloat( $('#zw1_min').val()) || -1e30;
  91. var max_zw1 = parseFloat( $('#zw1_max').val()) || 1e30;
  92. var data_zw1 = parseFloat( data[15] ) || 0;
  93. if ( ( ( isNaN( min_status ) && isNaN( max_status ) ) || ( isNaN( min_status ) && data_status <= max_status ) || ( min_status <= data_status && isNaN( max_status ) ) || ( min_status <= data_status && data_status <= max_status ) )
  94. && ( ( isNaN( min_ra ) && isNaN( max_ra ) ) || ( isNaN( min_ra ) && data_ra <= max_ra ) || ( min_ra <= data_ra && isNaN( max_ra ) ) || ( min_ra <= data_ra && data_ra <= max_ra ) )
  95. && ( ( isNaN( min_dec ) && isNaN( max_dec ) ) || ( isNaN( min_dec ) && data_dec <= max_dec ) || ( min_dec <= data_dec && isNaN( max_dec ) ) || ( min_dec <= data_dec && data_dec <= max_dec ) )
  96. && ( ( isNaN( min_mag_auto ) && isNaN( max_mag_auto ) ) || ( isNaN( min_mag_auto ) && data_mag_auto <= max_mag_auto ) || ( min_mag_auto <= data_mag_auto && isNaN( max_mag_auto ) ) || ( min_mag_auto <= data_mag_auto && data_mag_auto <= max_mag_auto ) )
  97. && ( ( isNaN( min_flux_radius ) && isNaN( max_flux_radius ) ) || ( isNaN( min_flux_radius ) && data_flux_radius <= max_flux_radius ) || ( min_flux_radius <= data_flux_radius && isNaN( max_flux_radius ) ) || ( min_flux_radius <= data_flux_radius && data_flux_radius <= max_flux_radius ) )
  98. && ( ( isNaN( min_t_g800l ) && isNaN( max_t_g800l ) ) || ( isNaN( min_t_g800l ) && data_t_g800l <= max_t_g800l ) || ( min_t_g800l <= data_t_g800l && isNaN( max_t_g800l ) ) || ( min_t_g800l <= data_t_g800l && data_t_g800l <= max_t_g800l ) )
  99. && ( ( isNaN( min_t_g102 ) && isNaN( max_t_g102 ) ) || ( isNaN( min_t_g102 ) && data_t_g102 <= max_t_g102 ) || ( min_t_g102 <= data_t_g102 && isNaN( max_t_g102 ) ) || ( min_t_g102 <= data_t_g102 && data_t_g102 <= max_t_g102 ) )
  100. && ( ( isNaN( min_t_g141 ) && isNaN( max_t_g141 ) ) || ( isNaN( min_t_g141 ) && data_t_g141 <= max_t_g141 ) || ( min_t_g141 <= data_t_g141 && isNaN( max_t_g141 ) ) || ( min_t_g141 <= data_t_g141 && data_t_g141 <= max_t_g141 ) )
  101. && ( ( isNaN( min_z_spec ) && isNaN( max_z_spec ) ) || ( isNaN( min_z_spec ) && data_z_spec <= max_z_spec ) || ( min_z_spec <= data_z_spec && isNaN( max_z_spec ) ) || ( min_z_spec <= data_z_spec && data_z_spec <= max_z_spec ) )
  102. && ( ( isNaN( min_z_map ) && isNaN( max_z_map ) ) || ( isNaN( min_z_map ) && data_z_map <= max_z_map ) || ( min_z_map <= data_z_map && isNaN( max_z_map ) ) || ( min_z_map <= data_z_map && data_z_map <= max_z_map ) )
  103. && ( ( isNaN( min_bic_diff ) && isNaN( max_bic_diff ) ) || ( isNaN( min_bic_diff ) && data_bic_diff <= max_bic_diff ) || ( min_bic_diff <= data_bic_diff && isNaN( max_bic_diff ) ) || ( min_bic_diff <= data_bic_diff && data_bic_diff <= max_bic_diff ) )
  104. && ( ( isNaN( min_chinu ) && isNaN( max_chinu ) ) || ( isNaN( min_chinu ) && data_chinu <= max_chinu ) || ( min_chinu <= data_chinu && isNaN( max_chinu ) ) || ( min_chinu <= data_chinu && data_chinu <= max_chinu ) )
  105. && ( ( isNaN( min_zw1 ) && isNaN( max_zw1 ) ) || ( isNaN( min_zw1 ) && data_zw1 <= max_zw1 ) || ( min_zw1 <= data_zw1 && isNaN( max_zw1 ) ) || ( min_zw1 <= data_zw1 && data_zw1 <= max_zw1 ) ) )
  106. {
  107. return true;
  108. }
  109. return false;
  110. }
  111. );
  112. //// Update URL with filter parameters
  113. var filter_params = ['status', 'ra', 'dec', 'mag_auto', 'flux_radius', 't_g800l', 't_g102', 't_g141', 'z_spec', 'z_map', 'bic_diff', 'chinu', 'zw1'];
  114. $.UpdateFilterURL = function () {
  115. var i;
  116. var filter_url = "";
  117. for (i = 0; i < filter_params.length; i++) {
  118. if ($('#'+filter_params[i]+'_min').val() != "") {
  119. filter_url += '&'+filter_params[i]+'_min='+
  120. $('#'+filter_params[i]+'_min').val();
  121. }
  122. if ($('#'+filter_params[i]+'_max').val() != "") {
  123. filter_url += '&'+filter_params[i]+'_max='+
  124. $('#'+filter_params[i]+'_max').val();
  125. }
  126. }
  127. if (filter_url != "") {
  128. var filtered_url = window.location.href.split('?')[0] + '?' + filter_url;
  129. window.history.pushState('', '', filtered_url);
  130. }
  131. }
  132. $(document).ready(function() {
  133. $('#zw1_min').val($.urlParam('zw1_min'));
  134. $('#zw1_max').val($.urlParam('zw1_max'));
  135. $('#chinu_min').val($.urlParam('chinu_min'));
  136. $('#chinu_max').val($.urlParam('chinu_max'));
  137. $('#bic_diff_min').val($.urlParam('bic_diff_min'));
  138. $('#bic_diff_max').val($.urlParam('bic_diff_max'));
  139. $('#z_map_min').val($.urlParam('z_map_min'));
  140. $('#z_map_max').val($.urlParam('z_map_max'));
  141. $('#z_spec_min').val($.urlParam('z_spec_min'));
  142. $('#z_spec_max').val($.urlParam('z_spec_max'));
  143. $('#t_g141_min').val($.urlParam('t_g141_min'));
  144. $('#t_g141_max').val($.urlParam('t_g141_max'));
  145. $('#t_g102_min').val($.urlParam('t_g102_min'));
  146. $('#t_g102_max').val($.urlParam('t_g102_max'));
  147. $('#t_g800l_min').val($.urlParam('t_g800l_min'));
  148. $('#t_g800l_max').val($.urlParam('t_g800l_max'));
  149. $('#flux_radius_min').val($.urlParam('flux_radius_min'));
  150. $('#flux_radius_max').val($.urlParam('flux_radius_max'));
  151. $('#mag_auto_min').val($.urlParam('mag_auto_min'));
  152. $('#mag_auto_max').val($.urlParam('mag_auto_max'));
  153. $('#dec_min').val($.urlParam('dec_min'));
  154. $('#dec_max').val($.urlParam('dec_max'));
  155. $('#ra_min').val($.urlParam('ra_min'));
  156. $('#ra_max').val($.urlParam('ra_max'));
  157. $('#status_min').val($.urlParam('status_min'));
  158. $('#status_max').val($.urlParam('status_max'));
  159. var table = $('#table140090811448344').DataTable({
  160. order: [],
  161. pageLength: 50,
  162. "ajax": "j001228m1028.json",
  163. "deferRender": true,
  164. dom: 'Blfrtip',
  165. buttons: ['csv'],
  166. lengthMenu: [[10, 25, 50, 100, 500, 1000, -1], [10, 25, 50, 100, 500, 1000, 'All']],
  167. pagingType: "full_numbers",
  168. columnDefs: [{targets: [3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15], type: "optionalnum"}]
  169. });
  170. // Event listener to the two range filtering inputs to redraw on input
  171. $('#status_min, #status_max, #ra_min, #ra_max, #dec_min, #dec_max, #mag_auto_min, #mag_auto_max, #flux_radius_min, #flux_radius_max, #t_g800l_min, #t_g800l_max, #t_g102_min, #t_g102_max, #t_g141_min, #t_g141_max, #z_spec_min, #z_spec_max, #z_map_min, #z_map_max, #bic_diff_min, #bic_diff_max, #chinu_min, #chinu_max, #zw1_min, #zw1_max').keyup( function() {
  172. table.draw();
  173. $.UpdateFilterURL();
  174. } );
  175. $('a.toggle-vis').on( 'click', function (e) {
  176. e.preventDefault();
  177. // Get the column API object
  178. var column = table.column( $(this).attr('data-column') );
  179. // Toggle the visibility
  180. column.visible( ! column.visible() );
  181. } );
  182. } ); </script>
  183. <div style="border:1px solid black; padding:10px; margin:10px">
  184. <b>Toggle column:</b></br> <a class="toggle-vis" data-column="0"> <tt>idx</tt> </a> <b>/</b> <a class="toggle-vis" data-column="1"> <tt>mtime</tt> </a> <b>/</b> <a class="toggle-vis" data-column="2"> <tt>root</tt> </a> <b>/</b> <a class="toggle-vis" data-column="3"> <tt>status</tt> </a> <b>/</b> <a class="toggle-vis" data-column="4"> <tt>ra</tt> </a> <b>/</b> <a class="toggle-vis" data-column="5"> <tt>dec</tt> </a> <b>/</b> <a class="toggle-vis" data-column="6"> <tt>mag_auto</tt> </a> <b>/</b> <a class="toggle-vis" data-column="7"> <tt>flux_radius</tt> </a> <b>/</b> <a class="toggle-vis" data-column="8"> <tt>t_g800l</tt> </a> <b>/</b> <a class="toggle-vis" data-column="9"> <tt>t_g102</tt> </a> <b>/</b> <a class="toggle-vis" data-column="10"> <tt>t_g141</tt> </a> <b>/</b> <a class="toggle-vis" data-column="11"> <tt>z_spec</tt> </a> <b>/</b> <a class="toggle-vis" data-column="12"> <tt>z_map</tt> </a> <b>/</b> <a class="toggle-vis" data-column="13"> <tt>bic_diff</tt> </a> <b>/</b> <a class="toggle-vis" data-column="14"> <tt>chinu</tt> </a> <b>/</b> <a class="toggle-vis" data-column="15"> <tt>zw1</tt> </a> <b>/</b> <a class="toggle-vis" data-column="16"> <tt>png_R30</tt> </a> <b>/</b> <a class="toggle-vis" data-column="17"> <tt>png_stack</tt> </a> <b>/</b> <a class="toggle-vis" data-column="18"> <tt>png_full</tt> </a> <b>/</b> <a class="toggle-vis" data-column="19"> <tt>png_line</tt> </a>
  185. </div>
  186. <div style="border:1px solid black; padding:10px; margin:10px">
  187. <b> Filter: </b>
  188. <table>
  189. <tr> <td> <input type="text" id="status_min" name="status_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>status</tt> </td> <td> &#60; <input type="text" id="status_max" name="status_max" style="width:40px;">
  190. <tr> <td> <input type="text" id="ra_min" name="ra_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>ra</tt> </td> <td> &#60; <input type="text" id="ra_max" name="ra_max" style="width:40px;">
  191. <tr> <td> <input type="text" id="dec_min" name="dec_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>dec</tt> </td> <td> &#60; <input type="text" id="dec_max" name="dec_max" style="width:40px;">
  192. <tr> <td> <input type="text" id="mag_auto_min" name="mag_auto_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>mag_auto</tt> </td> <td> &#60; <input type="text" id="mag_auto_max" name="mag_auto_max" style="width:40px;">
  193. <tr> <td> <input type="text" id="flux_radius_min" name="flux_radius_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>flux_radius</tt> </td> <td> &#60; <input type="text" id="flux_radius_max" name="flux_radius_max" style="width:40px;">
  194. <tr> <td> <input type="text" id="t_g800l_min" name="t_g800l_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>t_g800l</tt> </td> <td> &#60; <input type="text" id="t_g800l_max" name="t_g800l_max" style="width:40px;">
  195. <tr> <td> <input type="text" id="t_g102_min" name="t_g102_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>t_g102</tt> </td> <td> &#60; <input type="text" id="t_g102_max" name="t_g102_max" style="width:40px;">
  196. <tr> <td> <input type="text" id="t_g141_min" name="t_g141_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>t_g141</tt> </td> <td> &#60; <input type="text" id="t_g141_max" name="t_g141_max" style="width:40px;">
  197. <tr> <td> <input type="text" id="z_spec_min" name="z_spec_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>z_spec</tt> </td> <td> &#60; <input type="text" id="z_spec_max" name="z_spec_max" style="width:40px;">
  198. <tr> <td> <input type="text" id="z_map_min" name="z_map_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>z_map</tt> </td> <td> &#60; <input type="text" id="z_map_max" name="z_map_max" style="width:40px;">
  199. <tr> <td> <input type="text" id="bic_diff_min" name="bic_diff_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>bic_diff</tt> </td> <td> &#60; <input type="text" id="bic_diff_max" name="bic_diff_max" style="width:40px;">
  200. <tr> <td> <input type="text" id="chinu_min" name="chinu_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>chinu</tt> </td> <td> &#60; <input type="text" id="chinu_max" name="chinu_max" style="width:40px;">
  201. <tr> <td> <input type="text" id="zw1_min" name="zw1_min" style="width:40px;"> &#60; </td> <td style="align:center;"> <tt>zw1</tt> </td> <td> &#60; <input type="text" id="zw1_max" name="zw1_max" style="width:40px;">
  202. </table>
  203. </div>
  204. <table class="display compact" id="table140090811448344">
  205. <thead>
  206. <tr>
  207. <th>idx</th>
  208. <th>mtime</th>
  209. <th>root</th>
  210. <th>status</th>
  211. <th>ra</th>
  212. <th>dec</th>
  213. <th>mag_auto</th>
  214. <th>flux_radius</th>
  215. <th>t_g800l</th>
  216. <th>t_g102</th>
  217. <th>t_g141</th>
  218. <th>z_spec</th>
  219. <th>z_map</th>
  220. <th>bic_diff</th>
  221. <th>chinu</th>
  222. <th>zw1</th>
  223. <th>png_R30</th>
  224. <th>png_stack</th>
  225. <th>png_full</th>
  226. <th>png_line</th>
  227. </tr>
  228. </thead>
  229. </table>
  230. </body>
  231. </html>
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...