Ignore:
Timestamp:
Oct 29, 2012, 11:06:27 AM (13 years ago)
Author:
aslmd
Message:

UTIL PYTHON. MCD online interface. addressed the TODO list of rev 812, plus other small improvements. this version was sent to beta-testers in the euromars list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/mcd/proto/index.html

    r812 r821  
    1 
    21<!-- Author Aymeric Spiga LMD -->
    3 
    42<!DOCTYPE html>
    53<html>
     
    1311<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()">
    1412
     13<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post" target="_blank">
    1514<!-- aussi possible: get a la place de post. pour avoir un beau lien -->
    16 
    17 <!--<form name="calendar" action="/marscgi-bin/mcdcgi.py" method="post"-->
    18 <form name="calendar" action="./cgi-bin/mcdcgi.py" method="post" target="_blank"> <!--target="_new">-->
    1915
    2016<center>
    2117<b style="font-size: 125%;">Mars Climate Database: The Web Interface</b><br>
    22 <!--Welcome! To reset your query, click on the Mars panorama.-->
    2318<a href="index.html"><img src="PIA03610_red.jpg" height=80 width=1200></a><br>
    2419</center>
     
    5449<b><font color="red">MARS date</font></b>
    5550Solar longitude <input type="text" size="3" name="ls"> degrees<br />
    56 Local Time <input type="text" size="4" name="localtime" value="0."> Martian hour<br />
     51Local Time <input type="text" size="3" name="localtime" value="0."> Martian hour<br />
     52<span style="font-size: 80%;">write a value (or) a range val1;val2 (or) 'all'</span><br />
    5753<br />
    5854<input type="radio" name="datekeyhtml" value="0">
     
    6460</td>
    6561<td align="center">
    66 Option for 2D maps: local time value is<br />
     62If longitude is a free dimension, local time value is<br />
    6763<input type="radio" name="isfixedlt" value="off" checked /> at longitude 0
    6864<input type="radio" name="isfixedlt" value="on"          /> fixed for the whole planet<br />
     
    8379<input type="radio" name="tata" value="Evening" onClick="PlaceValues2(21.)">Evening
    8480<input type="radio" name="tata" value="Night" onClick="PlaceValues2(3.)">Night<br />
    85 <!--<input type="radio" name="tata" value="Whole day!" onClick="PlaceValues2('all')"><i>Whole day!</i><br />-->
    8681<hr>
    8782<b>3) ALTITUDE</b>
     
    8984<input type="radio" name="toto" value="Boundary layer" onClick="PlaceValues3(1000.)">Boundary layer
    9085<input type="radio" name="toto" value="Troposphere" onClick="PlaceValues3(10000.)">Troposphere<br/>
    91 <input type="radio" name="toto" value="Mesophere" onClick="PlaceValues3(80000.)">Mesosphere<br />
    92 <!--<input type="radio" name="toto" value="Whole profile!" onClick="PlaceValues3('all')"><i>Whole profile!</i><br />-->
     86<input type="radio" name="toto" value="Mesophere" onClick="PlaceValues3(80000.)">Mesosphere
     87<input type="radio" name="toto" value="Thermosphere" onClick="PlaceValues3(180000.)">Thermosphere<br />
    9388<hr>
    94 <!--
    95 <b>4) COORDINATES</b> Automatic! <br />
    96 <input type="button" value="... or click here for global map!" onClick="PlaceValues('all','all')"><br />
    97 -->
    98 <!--
    99 <b>4)</b>
    100 <input type="button" value="Click here for a global map!" onClick="PlaceValues('all','all')"><br />
    101 -->
    102 <!--
    103 <input type="radio" name="titi" value="Global map" onClick="PlaceValues('all','all')">Global map<br />
    104 <input type="radio" name="toto" value="Vertical profile" onClick="PlaceValues3('all')">Vertical profile
    105 <input type="radio" name="tata" value="Diurnal cycle" onClick="PlaceValues2('all')">Diurnal cycle<br />
    106 -->
    10789</td>
    10890<td align="center">
    10991<b>CUSTOMIZE COORDINATES ON MARS</b><br />
    110 write a value (or) a range val1;val2 (or) 'all'<br />
     92<span style="font-size: 80%;">write a value (or) a range val1;val2 (or) 'all'</span><br />
    11193<ul>
    11294<li>Latitude <input type="text" size="7" name="latitude" value="0."> degree North
     
    121103-->
    122104</select>
    123 <!--
    124 <li>Latitude   
    125 <input type="radio" name="islatfree" value="0" checked> Value: <input type="text" size="2" name="latitude" value="0.">
    126 <input type="radio" name="islatfree" value="1"> All [-90 ; 90]
    127 </li>
    128 <li>Longitude
    129 <input type="radio" name="islonfree" value="0" checked> Value: <input type="text" size="2" name="longitude" value="0.">
    130 <input type="radio" name="islonfree" value="1"> All [-180 ; 180]
    131 </li>
    132 <li>Local Time 
    133 <input type="radio" name="isloctfree" value="0" checked> Value: <input type="text" size="2" name="localtime" value="0.">
    134 <input type="radio" name="isloctfree" value="1"> All [0 ; 24]
    135 </li>
    136 <li>Altitude   
    137 <input type="radio" name="isaltfree" value="0" checked> Value: <input type="text" size="2" name="altitude" value="10.">
    138 <input type="radio" name="isaltfree" value="1"> All [0 ; 100000] m
    139 </li>
    140 -->
    141105</ul>
    142106</td>
    143107<td align="center">
    144 <!--[Advanced settings for well-informed Martians]<br />-->
    145108<ul>
    146 <li>High resolution topography? <input type="radio" name="hrkey" value="1" checked /> Yes <input type="radio" name="hrkey" value="0" /> No </li>
     109<li>High resolution mode? <input type="radio" name="hrkey" value="1" checked /> Yes <input type="radio" name="hrkey" value="0" /> No </li>
    147110<li>Dust scenario? <select name="dust">
    148111<option value="1"         >MY24 min solar</option>
     
    155118<option value="8"         >cold scenario (low dust, min solar)</option>
    156119</select></li>
    157 <!--<li>Presets
    158 <input type="button" value="Now!" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();">
    159 <input type="button" value="Curiosity" onClick="DateAndTimeValues(2012,8,6,05,30,00);Convert2Ls();PlaceValues(137.4,-4.6)">
    160 <input type="button" value="Phoenix" onClick="DateAndTimeValues(2008,5,25,23,38,23);Convert2Ls();PlaceValues(234.25,68.22)">
    161 <input type="button" value="Opportunity" onClick="DateAndTimeValues(2004,1,25,4,55,0);Convert2Ls();PlaceValues(354.47,-1.95)">
    162 <input type="button" value="Spirit" onClick="DateAndTimeValues(2004,1,4,4,26,0);Convert2Ls();PlaceValues(175.48,-14.57)">
    163 <input type="button" value="Pathfinder" onClick="DateAndTimeValues(1997,7,4,16,56,55);Convert2Ls();PlaceValues(-33.22,19.13)">
    164 <input type="button" value="Viking Lander 2" onClick="DateAndTimeValues(1976,9,3,22,58,20);Convert2Ls();PlaceValues(-225.74,47.97)">
    165 <input type="button" value="Viking Lander 1" onClick="DateAndTimeValues(1976,7,20,11,53,6);Convert2Ls();PlaceValues(-49.97,22.48)">
    166 </li>-->
    167120</ul>
    168121</td>
     
    171124<td align="center">
    172125<b>4) INTEREST</b>
    173 <input type="radio" name="yeah" value="Atmosphere" onClick="PlaceVar('t','p','none','none')" checked>Atmosphere<br />
    174 <input type="radio" name="yeah" value="Winds" onClick="PlaceVar('u','v','none','none')">Winds
    175 <input type="radio" name="yeah" value="Weather" onClick="PlaceVar('ps_ddv','t','none','none')">Weather<br />
    176 <input type="radio" name="yeah" value="Water clouds" onClick="PlaceVar('h2ovap','mtot','h2oice','icetot')">Water clouds
    177 <input type="radio" name="yeah" value="Chemistry" onClick="PlaceVar('o3','h2ovap','o','co')">Chemistry<br />
    178 <input type="radio" name="yeah" value="Landing engineering" onClick="PlaceVar('rho','rho_ddv','cp','visc')">Landing engineering<br />
    179 <input type="radio" name="yeah" value="Glaciology" onClick="PlaceVar('tsurfmn','tsurfmx','co2ice','icetot')">Glaciology
    180 <input type="radio" name="yeah" value="Surface meteorology" onClick="PlaceVar('ps','tsurf','none','none')">Surface meteorology<br />
    181 <input type="radio" name="yeah" value="Radiative balance" onClick="PlaceVar('lwdown','swdown','lwup','swup')">Radiative balance<br />
    182 <!--<input type="button" value="Surface data" onClick="PlaceVar('ps','tsurf','none','none')">-->
     126<input type="radio" name="yeah" value="Atmosphere" onClick="PlaceVar('t','p','none','none');ChooseColor('jet')" checked>Atmosphere<br />
     127<input type="radio" name="yeah" value="Winds" onClick="PlaceVar('u','v','none','none');ChooseColor('RdBu_r')">Winds
     128<input type="radio" name="yeah" value="Weather" onClick="PlaceVar('ps_ddv','rho_ddv','none','none');ChooseColor('RdBu_r')">Weather<br />
     129<input type="radio" name="yeah" value="Water cycle" onClick="PlaceVar('h2ovap','mtot','h2oice','icetot');ChooseColor('Blues')">Water cycle
     130<input type="radio" name="yeah" value="Chemistry" onClick="PlaceVar('o3','h2ovap','none','none');ChooseColor('jet')">Chemistry<br />
     131<input type="radio" name="yeah" value="Landing engineering" onClick="PlaceVar('rho','visc','none','none');ChooseColor('YlOrRd')">Landing engineering<br />
     132<input type="radio" name="yeah" value="Glaciology" onClick="PlaceVar('tsurfmn','tsurfmx','co2ice','icetot');ChooseColor('spectral')">Glaciology
     133<input type="radio" name="yeah" value="Surface meteorology" onClick="PlaceVar('ps','tsurf','none','none');ChooseColor('jet')">Surface meteorology<br />
     134<input type="radio" name="yeah" value="Radiative balance" onClick="PlaceVar('lwdown','swdown','lwup','swup');ChooseColor('hot')">Radiative balance<br />
    183135</td>
    184136<td align="center">
     
    301253</td>
    302254<td align="center">
    303 <!--[Additional settings]<br />-->
    304255<ul>
    305256<li> Add wind vectors
    306257<input type="radio" name="iswind" value="off" checked /> No
    307258<input type="radio" name="iswind" value="on"          /> Yes</li> 
    308 <!--
    309 <li> Set same LT on whole planet
    310 <input type="radio" name="isfixedlt" value="off" checked /> No
    311 <input type="radio" name="isfixedlt" value="on"          /> Yes</li>
    312 -->
    313 <!--
    314 <li> Add another variable
    315 <input type="radio" name="superimposed" value="0" checked /> side-by-side
    316 <input type="radio" name="superimposed" value="1"         /> superimposed</li>
    317 -->
    318 <!--
    319 <li>
    320 Presets
    321 <input type="button" value="Usual meteorology" onClick="PlaceVar('p','t','u','v')">
    322 <input type="button" value="Surface data" onClick="PlaceVar('ps','tsurf','none','none')">
    323 <input type="button" value="Water cycle" onClick="PlaceVar('mtot','icetot','none','none')">
    324 </select>
    325 -->
     259</li>
     260<li> Set colormap
     261<select name="colorm">
     262<option value="jet"       selected>blue green yellow red</option>
     263<option value="Greys"             >grey</option>
     264<option value="Blues"             >blue</option>
     265<option value="YlOrRd"            >yellow orange red</option>
     266<option value="spectral"          >rainbow</option>
     267<option value="hot"               >black red yellow</option>
     268<option value="RdBu_r"            >blue white red</option>
     269</select>
     270</li>
     271<li> Ask for zonal mean in lat/alt plot<br />
     272<input type="radio" name="zonmean" value="off" checked /> No
     273<input type="radio" name="zonmean" value="on"          /> Yes (please be patient)
    326274</li>
    327275</ul>
     
    336284</td>
    337285<td align="center">
    338 <input type="submit" value="SUBMIT" style="font-weight:bold"/>
    339 <!--<input type="button" value="RESET" style="font-weight:bold" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()"/><br />-->
     286<input type="button" value="SUBMIT" style="font-weight:bold" onClick="submit_form()"/>
    340287<input type="button" value="RESET" style="font-weight:bold" onClick="window.open('index.html','_self')"/><br />
    341288</td>
    342289<td align="center">
    343290<a href="http://www-mars.lmd.jussieu.fr">Mars Climate Database</a> (c) LMD/OU/IAA/ESA/CNES.<br />
    344 Python-based interface by <a href="http://www.lmd.jussieu.fr/~aslmd/">Aymeric Spiga</a> (LMD).<br />
    345 </td>
    346 </tr>
    347 
    348 
     291Interface written by <a href="http://www.lmd.jussieu.fr/~aslmd/">A. Spiga</a> (LMD) using <a href="http://www.python.org">Python</a>.<br />
     292</td>
     293</tr>
    349294</table>
    350 
    351 
    352 
    353295</body>
    354296</html>
    355297
    356298<!--
    357 <form action="/cgi-bin/checkbox.cgi" method="POST" target="_blank">
    358299<input type="checkbox" name="maths" value="on" /> Maths
    359 <input type="checkbox" name="physics" value="on" /> Physics
    360 <input type="submit" value="Select Subject" />
    361 </form>
    362300-->
Note: See TracChangeset for help on using the changeset viewer.