source: trunk/UTIL/PYTHON/mcd/proto/index.html @ 781

Last change on this file since 781 was 781, checked in by aslmd, 12 years ago

UTIL PYTHON. added a gfortran script to compile mcd fortran stuff in python. added comments here and there.

File size: 18.0 KB
RevLine 
[639]1
2<!-- Author Aymeric Spiga LMD -->
3
4<!DOCTYPE html>
5<html>
6
7<head>
8<meta charset="utf-8" />
[781]9<title>Mars Climate Database: The Web Interface</title>
[639]10<script language="JavaScript" type="text/JavaScript" src="martian_time.js"></script>
11</head>
12
[761]13<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()">
[639]14
15<!-- aussi possible: get a la place de post. pour avoir un beau lien -->
16
[761]17<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post"> <!--target="_new">-->
[639]18
[761]19<center>
[781]20<b style="font-size: 125%;">Mars Climate Database: The Web Interface</b><br>
21<img src="PIA03610_red.jpg" height=80 width=1200><br>
[761]22</center>
23
[639]24<table align="center" border="1" width="1200" bgcolor="#F5DEB3">
[761]25
[639]26<tr>
27<td align="center">
[761]28<i>Beginners' column (1-click presets)</i>
29</td>
30<td align="center">
31<i>Regular users' column</i>
32</td>
33<td align="center">
34<i>Advanced settings and information</i>
35</td>
36</tr>
37<tr><td align="center"></td><td align="center"></td><td align="center"></td></tr>
38<tr>
39<td align="center">
40<b>1) LANDING DATE</b>
41<input type="radio" name="lander" value="Now!" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.0,0.0)" checked>Land now!<br />
42<input type="radio" name="lander" value="Curiosity" onClick="DateAndTimeValues(2012,8,6,05,17,57);Convert2Ls();PlaceValues(137.4,-4.6)">Curiosity
43<input type="radio" name="lander" value="Phoenix" onClick="DateAndTimeValues(2008,5,25,23,38,23);Convert2Ls();PlaceValues(234.25,68.22)">Phoenix<br />
44<input type="radio" name="lander" value="Opportunity" onClick="DateAndTimeValues(2004,1,25,4,55,0);Convert2Ls();PlaceValues(354.47,-1.95)">Opportunity
45<input type="radio" name="lander" value="Spirit" onClick="DateAndTimeValues(2004,1,4,4,26,0);Convert2Ls();PlaceValues(175.48,-14.57)">Spirit
46<input type="radio" name="lander" value="Pathfinder" onClick="DateAndTimeValues(1997,7,4,16,56,55);Convert2Ls();PlaceValues(-33.22,19.13)">Pathfinder <br />
47<input type="radio" name="lander" value="Viking Lander 2" onClick="DateAndTimeValues(1976,9,3,22,58,20);Convert2Ls();PlaceValues(-225.74,47.97)">Viking Lander 2
48<input type="radio" name="lander" value="Viking Lander 1" onClick="DateAndTimeValues(1976,7,20,11,53,6);Convert2Ls();PlaceValues(-49.97,22.48)">Viking Lander 1<br />
49</td>
50<td align="center">
51<b>CUSTOMIZE EARTH TIME</b><br />
52Year / Month / Day @ hh:mm:ss [UTC]<br />
[639]53<input type="text" size="3" name="year"> / <input type="text" size="1" name="month"> / <input type="text" size="1" name="day"> @
54<input type="text" size="1" name="hours">:<input type="text" size="1" name="minutes">:<input type="text" size="1" name="seconds"><br />
55<input type="button" value="SAVE CHANGES" onClick="Convert2Ls();" style="font-weight:bold"><br />
56</td>
57<td align="center">
58Earth Julian Date <input type="text" size="6" name="julian" readonly="readonly"><br />
59Martian year <input type="text" size="1" name="martianyear" readonly="readonly"> <br />
60Martian month <input type="text" size="1" name="martianmonth" readonly="readonly"> / 12<br />
61Martian sol <input type="text" size="2" name="sol" readonly="readonly"> / 669
62</td>
63</tr>
64<tr>
65<td align="center">
[761]66<hr>
67<b>2) TIME</b>
68<input type="radio" name="tata" value="Morning" onClick="PlaceValues2(9.)" checked>Morning
69<input type="radio" name="tata" value="Afternoon" onClick="PlaceValues2(15.)">Afternoon<br />
70<input type="radio" name="tata" value="Evening" onClick="PlaceValues2(21.)">Evening
71<input type="radio" name="tata" value="Night" onClick="PlaceValues2(3.)">Night<br />
72<!--<input type="radio" name="tata" value="Whole day!" onClick="PlaceValues2('all')"><i>Whole day!</i><br />-->
73<hr>
74<b>3) ALTITUDE</b>
75<input type="radio" name="toto" value="Near surface" onClick="PlaceValues3(2.)" checked>Near-surface<br />
76<input type="radio" name="toto" value="Boundary layer" onClick="PlaceValues3(1000.)">Boundary layer
77<input type="radio" name="toto" value="Troposphere" onClick="PlaceValues3(10000.)">Troposphere<br/>
78<input type="radio" name="toto" value="Mesophere" onClick="PlaceValues3(80000.)">Mesosphere<br />
79<!--<input type="radio" name="toto" value="Whole profile!" onClick="PlaceValues3('all')"><i>Whole profile!</i><br />-->
80<hr>
81<!--
82<b>4) COORDINATES</b> Automatic! <br />
83<input type="button" value="... or click here for global map!" onClick="PlaceValues('all','all')"><br />
84-->
85<!--
86<b>4)</b>
87<input type="button" value="Click here for a global map!" onClick="PlaceValues('all','all')"><br />
88-->
89<!--
90<input type="radio" name="titi" value="Global map" onClick="PlaceValues('all','all')">Global map<br />
91<input type="radio" name="toto" value="Vertical profile" onClick="PlaceValues3('all')">Vertical profile
92<input type="radio" name="tata" value="Diurnal cycle" onClick="PlaceValues2('all')">Diurnal cycle<br />
93-->
94</td>
95<td align="center">
96<b>CUSTOMIZE COORDINATES ON MARS</b><br />
[639]97<ul>
[761]98<li>Latitude <input type="text" size="3" name="latitude" value="0."> (write a value or 'all')
99<li>Longitude <input type="text" size="3" name="longitude" value="0."> (write a value or 'all')
100<li>Local Time <input type="text" size="2" name="localtime" value="0."> (write a value or 'all')
101<li>Altitude (m) <input type="text" size="3" name="altitude" value="10."> (write a value or 'all')
102<!--
[639]103<li>Latitude   
104<input type="radio" name="islatfree" value="0" checked> Value: <input type="text" size="2" name="latitude" value="0.">
105<input type="radio" name="islatfree" value="1"> All [-90 ; 90]
106</li>
[761]107<li>Longitude
[639]108<input type="radio" name="islonfree" value="0" checked> Value: <input type="text" size="2" name="longitude" value="0.">
109<input type="radio" name="islonfree" value="1"> All [-180 ; 180]
110</li>
111<li>Local Time 
112<input type="radio" name="isloctfree" value="0" checked> Value: <input type="text" size="2" name="localtime" value="0.">
113<input type="radio" name="isloctfree" value="1"> All [0 ; 24]
114</li>
115<li>Altitude   
116<input type="radio" name="isaltfree" value="0" checked> Value: <input type="text" size="2" name="altitude" value="10.">
[723]117<input type="radio" name="isaltfree" value="1"> All [0 ; 100000] m
[639]118</li>
[761]119-->
[639]120</ul>
121</td>
122<td align="center">
[761]123<!--[Advanced settings for well-informed Martians]<br />-->
[639]124<ul>
[761]125<li>Force Mars solar longitude to be <input type="text" size="3" name="ls"> degrees</li> 
[639]126<li>High resolution topography? <input type="radio" name="hrkey" value="1" checked /> Yes <input type="radio" name="hrkey" value="0" /> No </li>
127<li>Dust scenario? <select name="dust">
128<option value="1"         >MY24 min solar</option>
129<option value="2" selected>MY24 ave solar</option>
130<option value="3"         >MY24 max solar</option>
131<option value="4"         >dust storm tau=4 min solar</option>
132<option value="5"         >dust storm tau=4 ave solar</option>
133<option value="6"         >dust storm tau=4 max solar</option>
134<option value="7"         >warm scenario (dusty, max solar)</option>
135<option value="8"         >cold scenario (low dust, min solar)</option>
136</select></li>
[761]137<!--<li>Presets
138<input type="button" value="Now!" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();">
[760]139<input type="button" value="Curiosity" onClick="DateAndTimeValues(2012,8,6,05,30,00);Convert2Ls();PlaceValues(137.4,-4.6)">
[639]140<input type="button" value="Phoenix" onClick="DateAndTimeValues(2008,5,25,23,38,23);Convert2Ls();PlaceValues(234.25,68.22)">
141<input type="button" value="Opportunity" onClick="DateAndTimeValues(2004,1,25,4,55,0);Convert2Ls();PlaceValues(354.47,-1.95)">
[761]142<input type="button" value="Spirit" onClick="DateAndTimeValues(2004,1,4,4,26,0);Convert2Ls();PlaceValues(175.48,-14.57)">
[639]143<input type="button" value="Pathfinder" onClick="DateAndTimeValues(1997,7,4,16,56,55);Convert2Ls();PlaceValues(-33.22,19.13)">
144<input type="button" value="Viking Lander 2" onClick="DateAndTimeValues(1976,9,3,22,58,20);Convert2Ls();PlaceValues(-225.74,47.97)">
145<input type="button" value="Viking Lander 1" onClick="DateAndTimeValues(1976,7,20,11,53,6);Convert2Ls();PlaceValues(-49.97,22.48)">
[761]146</li>-->
147</ul>
148</td>
149</tr>
150<tr>
151<td align="center">
152<b>4) INTEREST</b>
153<input type="radio" name="yeah" value="Atmosphere" onClick="PlaceVar('t','p','none','none')" checked>Atmosphere<br />
154<input type="radio" name="yeah" value="Winds" onClick="PlaceVar('u','v','none','none')">Winds
155<input type="radio" name="yeah" value="Weather" onClick="PlaceVar('ps_ddv','t','none','none')">Weather<br />
156<input type="radio" name="yeah" value="Water clouds" onClick="PlaceVar('h2ovap','mtot','h2oice','icetot')">Water clouds
157<input type="radio" name="yeah" value="Chemistry" onClick="PlaceVar('o3','h2ovap','o','co')">Chemistry<br />
158<input type="radio" name="yeah" value="Landing engineering" onClick="PlaceVar('rho','rho_ddv','cp','visc')">Landing engineering<br />
159<input type="radio" name="yeah" value="Glaciology" onClick="PlaceVar('tsurfmn','tsurfmx','co2ice','icetot')">Glaciology
160<input type="radio" name="yeah" value="Surface meteorology" onClick="PlaceVar('ps','tsurf','none','none')">Surface meteorology<br />
161<input type="radio" name="yeah" value="Radiative balance" onClick="PlaceVar('lwdown','swdown','lwup','swup')">Radiative balance<br />
162<!--<input type="button" value="Surface data" onClick="PlaceVar('ps','tsurf','none','none')">-->
163</td>
164<td align="center">
165<b>CUSTOMIZE VARIABLE(S) TO BE DISPLAYED</b><br />
166<br />
167Variable 1 <select name="var1">
168<option value="t"     selected>Temperature (K)</option>
169<option value="p"             >Pressure (Pa)</option>
170<option value="rho"           >Density (kg/m3)</option>
171<option value="u"             >W-E wind component (m/s)</option>
172<option value="v"             >S-N wind component (m/s)</option>
173<option value="tsurf"         >Surface temperature (K)</option>
174<option value="ps"            >Surface pressure (Pa)</option>
175<option value="mtot"          >Water vapor column (kg/m2)</option>
176<option value="icetot"        >Water ice column (kg/m2)</option>
177<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
178<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
179<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
180<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
181<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
182<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
183<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
184<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
185<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
186<option value="swdown"        >solar flux to surface (W/m2)</option>
187<option value="lwup"          >thermal IR flux to space (W/m2)</option>
188<option value="swup"          >solar flux reflected to space (W/m2)</option>
189<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
190<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
191<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
192<option value="visc"          >Air viscosity estimation (N s m-2)</option>
193</select>
194<br />
195Variable 2 <select name="var2">
196<option value="none"          >(None)</option>
197<option value="t"             >Temperature (K)</option>
198<option value="p"     selected>Pressure (Pa)</option>
199<option value="rho"           >Density (kg/m3)</option>
200<option value="u"             >W-E wind component (m/s)</option>
201<option value="v"             >S-N wind component (m/s)</option>
202<option value="tsurf"         >Surface temperature (K)</option>
203<option value="ps"            >Surface pressure (Pa)</option>
204<option value="mtot"          >Water vapor column (kg/m2)</option>
205<option value="icetot"        >Water ice column (kg/m2)</option>
206<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
207<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
208<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
209<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
210<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
211<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
212<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
213<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
214<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
215<option value="swdown"        >solar flux to surface (W/m2)</option>
216<option value="lwup"          >thermal IR flux to space (W/m2)</option>
217<option value="swup"          >solar flux reflected to space (W/m2)</option>
218<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
219<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
220<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
221<option value="visc"          >Air viscosity estimation (N s m-2)</option>
222</select>
223<br />
224Variable 3 <select name="var3">
225<option value="none"  selected>(None)</option>
226<option value="t"             >Temperature (K)</option>
227<option value="p"             >Pressure (Pa)</option>
228<option value="rho"           >Density (kg/m3)</option>
229<option value="u"             >W-E wind component (m/s)</option>
230<option value="v"             >S-N wind component (m/s)</option>
231<option value="tsurf"         >Surface temperature (K)</option>
232<option value="ps"            >Surface pressure (Pa)</option>
233<option value="mtot"          >Water vapor column (kg/m2)</option>
234<option value="icetot"        >Water ice column (kg/m2)</option>
235<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
236<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
237<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
238<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
239<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
240<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
241<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
242<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
243<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
244<option value="swdown"        >solar flux to surface (W/m2)</option>
245<option value="lwup"          >thermal IR flux to space (W/m2)</option>
246<option value="swup"          >solar flux reflected to space (W/m2)</option>
247<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
248<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
249<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
250<option value="visc"          >Air viscosity estimation (N s m-2)</option>
251</select>
252<br />
253Variable 4 <select name="var4">
254<option value="none"  selected>(None)</option>
255<option value="t"             >Temperature (K)</option>
256<option value="p"             >Pressure (Pa)</option>
257<option value="rho"           >Density (kg/m3)</option>
258<option value="u"             >W-E wind component (m/s)</option>
259<option value="v"             >S-N wind component (m/s)</option>
260<option value="tsurf"         >Surface temperature (K)</option>
261<option value="ps"            >Surface pressure (Pa)</option>
262<option value="mtot"          >Water vapor column (kg/m2)</option>
263<option value="icetot"        >Water ice column (kg/m2)</option>
264<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
265<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
266<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
267<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
268<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
269<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
270<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
271<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
272<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
273<option value="swdown"        >solar flux to surface (W/m2)</option>
274<option value="lwup"          >thermal IR flux to space (W/m2)</option>
275<option value="swup"          >solar flux reflected to space (W/m2)</option>
276<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
277<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
278<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
279<option value="visc"          >Air viscosity estimation (N s m-2)</option>
280</select>
281</td>
282<td align="center">
283<!--[Additional settings]<br />-->
284<ul>
285<li> Add wind vectors
286<input type="radio" name="iswind" value="off" checked /> No
287<input type="radio" name="iswind" value="on"          /> Yes</li> 
288<li> Set same LT on whole planet
289<input type="radio" name="isfixedlt" value="off" checked /> No
290<input type="radio" name="isfixedlt" value="on"          /> Yes</li>
291<!--
292<li> Add another variable
293<input type="radio" name="superimposed" value="0" checked /> side-by-side
294<input type="radio" name="superimposed" value="1" /> superimposed</li>
295-->
296<!--
297<li>
298Presets
299<input type="button" value="Usual meteorology" onClick="PlaceVar('p','t','u','v')">
300<input type="button" value="Surface data" onClick="PlaceVar('ps','tsurf','none','none')">
301<input type="button" value="Water cycle" onClick="PlaceVar('mtot','icetot','none','none')">
302</select>
303-->
[639]304</li>
305</ul>
306</td>
307</tr>
308<tr>
309<td align="center">
[761]310<input type="submit" value="Values" style="font-weight:bold" />
311<input type="submit" value="Daily cycle" style="font-weight:bold" onClick="PlaceValues2('all')"/><br />
312<input type="submit" value="Vertical profile" style="font-weight:bold" onClick="PlaceValues3('all')"/>
313<input type="submit" value="Global map" style="font-weight:bold" onClick="PlaceValues('all','all')"/><br />
[639]314</td>
315<td align="center">
[761]316<input type="submit" value="SUBMIT" style="font-weight:bold"/>
[639]317</td>
[761]318<td align="center">
319<a href="http://www-mars.lmd.jussieu.fr">Mars Climate Database</a> (c) LMD/OU/IAA/ESA/CNES.<br />
[781]320Python-based interface by <a href="http://www.lmd.jussieu.fr/~aslmd/">Aymeric Spiga</a> (LMD).<br />
[761]321</td>
[639]322</tr>
323
324
325</table>
326
327
328
329</body>
330</html>
331
332<!--
333<form action="/cgi-bin/checkbox.cgi" method="POST" target="_blank">
334<input type="checkbox" name="maths" value="on" /> Maths
335<input type="checkbox" name="physics" value="on" /> Physics
336<input type="submit" value="Select Subject" />
337</form>
338-->
Note: See TracBrowser for help on using the repository browser.