##// END OF EJS Templates
Fixing plots
jespinoza -
r7:4e0b343b0c61
parent child
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -1,68 +1,68
1 1 {% extends "base.html" %}
2 2
3 3 {% comment %}
4 4 Written by Bill Rideout brideout@haystack.mit.edu
5 5
6 6 Base template for Madrigal show experiment web interface
7 7
8 8 $Id: show_experiment.html 7310 2021-03-02 14:31:06Z brideout $
9 9 {% endcomment %}
10 10
11 11 {% block title %}Show Madrigal experiment{% endblock %}
12 12
13 13 {% block extra_head %}
14 14 <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
15 15 <script>
16 16
17 17 function changeFile (select) {
18 18 var basename = select.options[select.selectedIndex].value;
19 19 {% if form.exp_id %}
20 20 var url = '{% url 'change_files' %}' + '?experiment_list={{ form.exp_id.label }}&file_list=' + basename;
21 21 {% else %}
22 22 var exp_id = $("#id_experiment_list")[0].options[$("#id_experiment_list")[0].selectedIndex].value;
23 23 var url = '{% url 'change_files' %}' + '?experiment_list=' + exp_id + '&file_list=' + basename;
24 24 {% endif %}
25 25 // first delete all forms that are now out of date
26 26 divIndex = $(".single_form").index($( "#file_buttons" ))
27 27 $(".single_form").slice(divIndex).empty()
28 28 // second populate the file_list html if '0' not selected
29 29 if (basename != '0') {
30 30 $(".single_form").slice(divIndex,divIndex+1).load(url);
31 31 }
32 32 }
33 33
34 34 {% include "madweb/fileDownload.js" %}
35 35
36 36 </script>
37 37 {% endblock %}
38 38
39 39 {% block content %}
40 40 <center><h4> {{ form.exp_desc.label }} </h4></center>
41 41
42 42 {% include "madweb/file_list.html" %}
43 43
44 44 <!-- file select div -->
45 45 <div class="col-md-12 single_form" id="file_buttons">
46 46 {% if form.file_buttons %}
47 47 {% include "madweb/file_buttons.html" %}
48 48 {% endif %}
49 49 </div> <!-- end subdivide -->
50 50 <div>&nbsp;</div>
51 51
52 52 <!-- file select div -->
53 53 <div class="col-md-12 single_form" id="file_data">
54 54 {% if form.show_plots %}
55 55 {% include "madweb/show_plots.html" %}
56 56 {% elif form.plot_list %}
57 57 {% include "madweb/show_plots.html" %}
58 58 {% endif %}
59 59 </div> <!-- end subdivide -->
60 60
61 61 <!-- file select div -->
62 <div class="col-md-12 single_form" id="file_plot">
62 <div class="col-md-9 single_form" id="file_plot">
63 63 {% if form.show_plots %}
64 64 {% include "madweb/parameter_selection.html" %}
65 65 {% endif %}
66 66 </div> <!-- end subdivide -->
67 67
68 {% endblock %} No newline at end of file
68 {% endblock %}
@@ -1,268 +1,268
1 1 {% extends "base_single.html" %}
2 2
3 3 {% comment %}
4 4 Written by Bill Rideout brideout@haystack.mit.edu
5 5
6 6 Final template for Madrigal single experiment web interface
7 7
8 8 $Id: single.html 7290 2021-01-13 21:07:21Z brideout $
9 9 {% endcomment %}
10 10
11 11
12 12 {% block ajax_js %}
13 13 <script type="text/javascript">
14 14
15 15
16 16 {% if years %}
17 17 $( document ).ready(function() {
18 18 createCalendar();
19 19 });
20 20 {% endif %}
21 21
22 22 var redirectLookup = {
23 23 "0": function() { return ""; },
24 24 {% for redirect in redirect_list %}
25 25 "{{ redirect.0 }}": function() { return "{{ redirect.1|safe }}"; },
26 26 {% endfor %}
27 27 };
28 28
29 29 function populateCat (checkbox) {
30 30 var is_global = 0;
31 31 if (checkbox.checked) {
32 32 is_global = 1;
33 33 }
34 34 var url = '{% url 'get_categories' %}' + '?isGlobal=' + is_global;
35 35 // first delete all forms that are now out of date
36 36 divIndex = $(".single_form").index($( "#categories" ))
37 37 $(".single_form").slice(divIndex).empty()
38 38 // second populate the categories html
39 39 $(".single_form").slice(divIndex,divIndex+1).load(url);
40 40 }
41 41
42 42 function populateInst (select) {
43 43 var is_global = 0;
44 44 if ($("#id_isGlobal")[0].checked) {
45 45 is_global = 1;
46 46 }
47 47 var category = select.options[select.selectedIndex].value;
48 48 var url = '{% url 'get_instruments' %}' + '?isGlobal=' + is_global + '&categories=' + category;
49 49 // first delete all forms that are now out of date
50 50 divIndex = $(".single_form").index($( "#instruments" ))
51 51 $(".single_form").slice(divIndex).empty()
52 52 // second populate the instruments html if '0' not selected
53 53 if (category != '0') {
54 54 $(".single_form").slice(divIndex,divIndex+1).load(url);
55 55 }
56 56 }
57 57
58 58 function populateYear (select) {
59 59 var is_global = 0;
60 60 if ($("#id_isGlobal")[0].checked) {
61 61 is_global = 1;
62 62 }
63 63 // this method may redirect if instrument is not local
64 64 var kinst = select.options[select.selectedIndex].value;
65 65 var redirectUrl = redirectLookup[kinst]();
66 66 if (redirectUrl.length > 0) {
67 67 // redirect
68 68 alert('Because this data is not local, you will be redirected to ' + redirectUrl);
69 69 window.location.href = redirectUrl;
70 70 } else {
71 71 var url = '{% url 'get_years' %}' + '?isGlobal=' + is_global + '&instruments=' + kinst;
72 72 // first delete all forms that are now out of date
73 73 divIndex = $(".single_form").index($( "#years" ))
74 74 $(".single_form").slice(divIndex).empty()
75 75 // second populate the years html if '0' not selected
76 76 if (kinst != '0') {
77 77 $(".single_form").slice(divIndex,divIndex+1).load(url);
78 78 }
79 79 }
80 80 }
81 81
82 82 function populateMonth (select) {
83 83 var year = select.options[select.selectedIndex].value;
84 84 var kinst = $("#id_instruments")[0].options[$("#id_instruments")[0].selectedIndex].value;
85 85 var is_global = 0;
86 86 if ($("#id_isGlobal")[0].checked) {
87 87 is_global = 1;
88 88 }
89 89
90 90 var url = '{% url 'get_months' %}' + '?isGlobal=' + is_global + '&instruments=' + kinst + '&years=' + year;
91 91 // first delete all forms that are now out of date
92 92 divIndex = $(".single_form").index($( "#months" ))
93 93 $(".single_form").slice(divIndex).empty()
94 94 // second populate the years html if '0' not selected
95 95 if (kinst != '0') {
96 96 $(".single_form").slice(divIndex,divIndex+1).load(url);
97 97 }
98 98 }
99 99
100 100 function populateCalendar (select) {
101 101 var year = $("#id_years")[0].options[$("#id_years")[0].selectedIndex].value;
102 102 var month = select.options[select.selectedIndex].value;
103 103 var kinst = $("#id_instruments")[0].options[$("#id_instruments")[0].selectedIndex].value;
104 104 var is_global = 0;
105 105 if ($("#id_isGlobal")[0].checked) {
106 106 is_global = 1;
107 107 }
108 108 var url = '{% url 'get_calendar' %}' + '?isGlobal=' + is_global + '&instruments=' + kinst + '&years=' + year + '&months=' + month;
109 109 // first delete all forms that are now out of date
110 110 divIndex = $(".single_form").index($( "#calendar" ))
111 111 $(".single_form").slice(divIndex).empty()
112 112 // second populate the calendar html if '0' not selected
113 113 if (year != '0') {
114 114 $(".single_form").slice(divIndex,divIndex+1).load(url, function() {
115 115 createCalendar();
116 116 });
117 117 }
118 118 }
119 119
120 120 function populateFile (select) {
121 121 var expId = select.options[select.selectedIndex].value;
122 122 var url = '{% url 'get_files' %}' + '?experiment_list=' + expId;
123 123 // first delete all forms that are now out of date
124 124 divIndex = $(".single_form").index($( "#file_select" ))
125 125 $(".single_form").slice(divIndex).empty()
126 126 // second populate the file_list html if '0' not selected
127 127 if (expId != '0') {
128 128 $(".single_form").slice(divIndex,divIndex+1).load(url);
129 129 }
130 130 }
131 131
132 132 function changeFile (select) {
133 133 var basename = select.options[select.selectedIndex].value;
134 134 {% if form.exp_id %}
135 135 var url = '{% url 'change_files' %}' + '?experiment_list={{ form.exp_id.label }}&file_list=' + basename;
136 136 {% else %}
137 137 var exp_id = $("#id_experiment_list")[0].options[$("#id_experiment_list")[0].selectedIndex].value;
138 138 var url = '{% url 'change_files' %}' + '?experiment_list=' + exp_id + '&file_list=' + basename;
139 139 {% endif %}
140 140 // first delete all forms that are now out of date
141 141 divIndex = $(".single_form").index($( "#file_buttons" ))
142 142 $(".single_form").slice(divIndex).empty()
143 143 // second populate the file_list html if '0' not selected
144 144 if (basename != '0') {
145 145 $(".single_form").slice(divIndex,divIndex+1).load(url);
146 146 }
147 147 }
148 148
149 149 {% include "madweb/fileDownload.js" %}
150 150
151 151 </script>
152 152 {% endblock %}
153 153
154 154
155 155 {% block isGlobal %}
156 156 <div class="col-md-12 single_form" id="isGlobal">
157 157 {{ form.isGlobal.label }} {{ form.isGlobal }}
158 158 </div> <!-- end subdivide -->
159 159 {% endblock %}
160 160
161 161 {% block categories %}
162 162 <!-- subdivide selection column for categories to be possibly filled in by ajax - single_form 0 -->
163 163 <div class="col-md-12 single_form" id="categories">
164 164
165 165 {% if form.categories %}
166 166 {% include "madweb/categories.html" %}
167 167 {% endif %}
168 168
169 169 </div> <!-- end subdivide -->
170 170 {% endblock %}
171 171
172 172
173 173 {% block instruments %}
174 174 <!-- subdivide selection column for instruments to be possibly filled in by ajax - single_form 0 -->
175 175 <div class="col-md-12 single_form" id="instruments">
176 176
177 177 {% if form.instruments %}
178 178 {% include "madweb/instruments.html" %}
179 179 {% endif %}
180 180
181 181 </div> <!-- end subdivide -->
182 182 {% endblock %}
183 183
184 184
185 185 {% block years %}
186 186 <!-- subdivide selection column for year to be possibly filled in by ajax - single_form 1 -->
187 187 <div class="col-md-12 single_form" id="years">
188 188
189 189 {% if form.years %}
190 190 {% include "madweb/years.html" %}
191 191 {% endif %}
192 192
193 193 </div> <!-- end subdivide -->
194 194 {% endblock %}
195 195
196 196
197 197 {% block months %}
198 198 <!-- subdivide selection column for month to be possibly filled in by ajax - single_form 1 -->
199 199 <div class="col-md-12 single_form" id="months">
200 200
201 201 {% if form.months %}
202 202 {% include "madweb/months.html" %}
203 203 {% endif %}
204 204
205 205 </div> <!-- end subdivide -->
206 206 {% endblock %}
207 207
208 208
209 209 {% block calendar %}
210 210 <!-- subdivide selection column for calendar to be possibly filled in by ajax - single_form 2 -->
211 211 <div class="col-md-12 single_form" id="calendar">
212 212
213 213 {% if form.days %}
214 214 {% include "madweb/calendar.html" %}
215 215 {% endif %}
216 216
217 217 </div> <!-- end subdivide -->
218 218 {% endblock %}
219 219
220 220 {% block experiment_select %}
221 221 <!-- this select only appears if there are multiple experiments in the day -->
222 222 <div class="col-md-12 single_form" id="experiment_select">
223 223 {% if form.experiment_list %}
224 224 {% include "madweb/exp_list.html" %}
225 225 {% endif %}
226 226 </div> <!-- end subdivide -->
227 227 {% endblock %}
228 228
229 229 {% block file_select %}
230 230 <!-- file select div -->
231 231 <div class="col-md-12 single_form" id="file_select">
232 232 {% if form.file_list|length > 1 %}
233 233 {% include "madweb/file_list.html" %}
234 234 {% elif form.days and not form.experiment_list %}
235 235 <center><p> This experiment has no Madrigal CEDAR format Hdf5 files. Showing only plots and auxillary files instead.</p></center>
236 236 {% include "madweb/show_plots.html" %}
237 237 {% endif %}
238 238 </div> <!-- end subdivide -->
239 239 {% endblock %}
240 240
241 241 {% block file_buttons %}
242 242 <!-- file select div -->
243 243 <div class="col-md-12 single_form" id="file_buttons">
244 244 {% if form.file_buttons %}
245 245 {% include "madweb/file_buttons.html" %}
246 246 {% endif %}
247 247 </div> <!-- end subdivide -->
248 248 <div>&nbsp;</div>
249 249 {% endblock %}
250 250
251 251 {% block file_data %}
252 252 <!-- file select div -->
253 253 <div class="col-md-12 single_form" id="file_data">
254 254 {% if form.show_plots %}
255 255 {% include "madweb/show_plots.html" %}
256 256 {% endif %}
257 257 </div> <!-- end subdivide -->
258 258 {% endblock %}
259 259
260 260 {% block file_plot %}
261 261 <!-- file select div -->
262 <div class="col-md-12 single_form" id="file_plot">
262 <div class="col-md-9 single_form" id="file_plot">
263 263 {% if form.show_plots %}
264 264 {% include "madweb/parameter_selection.html" %}
265 265 {% endif %}
266 266 </div> <!-- end subdivide -->
267 267 {% endblock %}
268 268
@@ -1,68 +1,68
1 1 {% load static %}
2 2
3 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 4 <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/doc_template.dwt" codeOutsideHTMLIsLocked="false" -->
5 5 <head>
6 6 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7 7 <!-- InstanceBeginEditable name="doctitle" -->
8 8 <title>Madrigal users guide</title>
9 9 <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
10 10 <link href="/static/madrigal.css" rel="stylesheet" type="text/css" />
11 11 <style type="text/css">
12 12 html body {
13 13 background-color: {{bg_color}};
14 14 }
15 15 </style>
16 16 <!-- InstanceParam name="href_up_top" type="text" value="madContents.html" --><!-- InstanceParam name="href_next_top" type="text" value="wt_contents.html" --><!-- InstanceParam name="href_back_top" type="text" value="whatsNew.html" --><!-- InstanceParam name="href_back_bottom" type="text" value="whatsNew.html" --><!-- InstanceParam name="href_up_bottom" type="text" value="madContents.html" --><!-- InstanceParam name="href_next_bottom" type="text" value="wt_contents.html" --><!-- InstanceParam name="href_prev_top" type="text" value="whatsNew.html" --><!-- InstanceParam name="href_uptitle_top" type="text" value="madContents.html" --><!-- InstanceParam name="href_nexttitle_top" type="text" value="wt_contents.html" --><!-- InstanceParam name="href_prevtitle_bottom" type="text" value="whatsNew.html" --><!-- InstanceParam name="href_uptitle_bottom" type="text" value="madContents.html" --><!-- InstanceParam name="href_nexttitle_bottom" type="text" value="wt_contents.html" -->
17 17 </head>
18 18
19 19 <body>
20 20 <table width="100%" border="1" cellpadding="0" cellspacing="2" class="navigation">
21 21 <tr>
22 <td width="5%"><a href="{% url 'docs' 'whatsNew.html' %}"><img src="/static/previous.png" alt="previous" width="32" height="32" /></a></td>
23 <td width="5%"><a href="{% url 'docs' 'madContents.html' %}"><img src="/static/up.png" alt="up" width="32" height="32" /></a></td>
24 <td width="5%"><a href="{% url 'docs' 'wt_contents.html' %}"><img src="/static/next.png" alt="next" width="32" height="32" /></a></td>
22 <td width="5%"><a href="{% url 'docs' 'whatsNew.html' %}"><img src="{% static 'previous.png' %}" alt="previous" width="32" height="32" /></a></td>
23 <td width="5%"><a href="{% url 'docs' 'madContents.html' %}"><img src="{% static 'up.png' %}" alt="up" width="32" height="32" /></a></td>
24 <td width="5%"><a href="{% url 'docs' 'wt_contents.html' %}"><img src="{% static 'next.png' %}" alt="next" width="32" height="32" /></a></td>
25 25 <td width="54%"><!-- InstanceBeginEditable name="EditTitleTop" -->Madrigal user's guide (How do I access Madrigal data?)<!-- InstanceEndEditable --></td>
26 26 <td width="13%"><a href="{% url 'docs' 'madContents.html' %}">Doc home </a></td>
27 27 <td width="18%"><a href="/">Madrigal home</a></td>
28 28 </tr>
29 29 </table>
30 30 <div class='online-navigation'>
31 31 <b class="navlabel">Previous:</b>
32 32 <a class="sectref" href="{% url 'docs' 'whatsNew.html' %}"><!-- InstanceBeginEditable name="PreviousTitle" -->What's new <!-- InstanceEndEditable --></A>
33 33 <b class="navlabel">&nbsp;&nbsp;Up:</b>
34 34 <a class="sectref" href="{% url 'docs' 'madContents.html' %}"><!-- InstanceBeginEditable name="UpTitle" -->Doc home <!-- InstanceEndEditable --></A>
35 35 <b class="navlabel">&nbsp;&nbsp;Next:</b>
36 36 <a class="sectref" href="{% url 'docs' 'wt_contents.html' %}"><!-- InstanceBeginEditable name="NextTitle" -->Web interface tutorial TOC <!-- InstanceEndEditable --></A></div>
37 37 <hr/>
38 38 <!-- InstanceBeginEditable name="EditDoc" -->
39 39 <h1 align="center">Madrigal user's guide (How do I access Madrigal data?)</h1>
40 40 <p>There are two basic ways to access Madrigal data - through a web browser, or through the API using the programming languages Matlab, IDL, Python, or Fortran95. The Madrigal web interface will also allow you to create the most common commands you would need to run these API's. That is, with just a few click you can create a command to download whatever files you want from any number of experiments in any format. You can also create a command to download just the parameters you want with any filter you might want.</p>
41 41 <p>This user's guide consists of a brief tutorial on using the web interface, and a tutorial and a reference manual for remote data access. The last section also documents some command line interfaces into Madrigal.</p>
42 42 <ul>
43 43 <li><a href="{% url 'docs' 'wt_contents.html' %}">Web interface tutorial</a></li>
44 44 <li><a href="{% url 'docs' 'rt_contents.html' %}">Remote API tutorial</a></li>
45 45 <li><a href="{% url 'docs' 'rr_contents.html' %}">Remote API reference guide</a></li>
46 46 </ul>
47 47 <!-- InstanceEndEditable -->
48 48 <table width="100%" border="1" cellpadding="0" cellspacing="2" class="navigation">
49 49 <tr>
50 <td width="5%"><a href="{% url 'docs' 'whatsNew.html' %}"><img src="/static/previous.png" alt="previous" width="32" height="32" /></a></td>
51 <td width="5%"><a href="{% url 'docs' 'madContents.html' %}"><img src="/static/up.png" alt="up" width="32" height="32" /></a></td>
52 <td width="5%"><a href="{% url 'docs' 'wt_contents.html' %}"><img src="/static/next.png" alt="next" width="32" height="32" /></a></td>
50 <td width="5%"><a href="{% url 'docs' 'whatsNew.html' %}"><img src="{% static 'previous.png' %}" alt="previous" width="32" height="32" /></a></td>
51 <td width="5%"><a href="{% url 'docs' 'madContents.html' %}"><img src="{% static 'up.png' %}" alt="up" width="32" height="32" /></a></td>
52 <td width="5%"><a href="{% url 'docs' 'wt_contents.html' %}"><img src="{% static 'next.png' %}" alt="next" width="32" height="32" /></a></td>
53 53 <td width="54%"><!-- InstanceBeginEditable name="EditTitleBottom" -->Madrigal user's guide (How do I access Madrigal data?)<!-- InstanceEndEditable --></td>
54 54 <td width="13%"><a href="{% url 'docs' 'madContents.html' %}">Doc home </a></td>
55 55 <td width="18%"><a href="/">Madrigal home</a></td>
56 56 </tr>
57 57 </table>
58 58 <div class='online-navigation'>
59 59 <b class="navlabel">Previous:</b>
60 60 <a class="sectref" href="{% url 'docs' 'whatsNew.html' %}"><!-- InstanceBeginEditable name="PreviousTitle2" -->What's new <!-- InstanceEndEditable --></A>
61 61 <b class="navlabel">&nbsp;&nbsp;Up:</b>
62 62 <a class="sectref" href="{% url 'docs' 'madContents.html' %}"><!-- InstanceBeginEditable name="UpTitle2" -->Doc home <!-- InstanceEndEditable --></A>
63 63 <b class="navlabel">&nbsp;&nbsp;Next:</b>
64 64 <a class="sectref" href="{% url 'docs' 'wt_contents.html' %}"><!-- InstanceBeginEditable name="NextTitle2" -->Web interface tutorial TOC<!-- InstanceEndEditable --></A></div>
65 65 <hr/>
66 66 <p>&nbsp;</p>
67 67 </body>
68 68 <!-- InstanceEnd --></html>
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now