Index: trunk/UTIL/PYTHON/mcd/proto/index.html
===================================================================
--- trunk/UTIL/PYTHON/mcd/proto/index.html	(revision 760)
+++ trunk/UTIL/PYTHON/mcd/proto/index.html	(revision 761)
@@ -11,15 +11,43 @@
 </head>
 
-<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.)">
+<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()">
 
 <!-- aussi possible: get a la place de post. pour avoir un beau lien -->
 
-<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post">
+<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post"> <!--target="_new">-->
+
+<center>
+<img src="PIA03610_red.jpg" height=80 width=1200>
+</center>
 
 <table align="center" border="1" width="1200" bgcolor="#F5DEB3">
-<tr>
-<td align="center">
-<b>Step 1 : CHOOSE EARTH TIME</b><br />
-Year / Month / Day @ hh:mm:ss [UTC time]<br />
+
+<tr>
+<td align="center">
+<i>Beginners' column (1-click presets)</i>
+</td>
+<td align="center">
+<i>Regular users' column</i>
+</td>
+<td align="center">
+<i>Advanced settings and information</i>
+</td>
+</tr>
+<tr><td align="center"></td><td align="center"></td><td align="center"></td></tr>
+<tr>
+<td align="center">
+<b>1) LANDING DATE</b>
+<input type="radio" name="lander" value="Now!" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.0,0.0)" checked>Land now!<br />
+<input type="radio" name="lander" value="Curiosity" onClick="DateAndTimeValues(2012,8,6,05,17,57);Convert2Ls();PlaceValues(137.4,-4.6)">Curiosity
+<input type="radio" name="lander" value="Phoenix" onClick="DateAndTimeValues(2008,5,25,23,38,23);Convert2Ls();PlaceValues(234.25,68.22)">Phoenix<br />
+<input type="radio" name="lander" value="Opportunity" onClick="DateAndTimeValues(2004,1,25,4,55,0);Convert2Ls();PlaceValues(354.47,-1.95)">Opportunity
+<input type="radio" name="lander" value="Spirit" onClick="DateAndTimeValues(2004,1,4,4,26,0);Convert2Ls();PlaceValues(175.48,-14.57)">Spirit
+<input type="radio" name="lander" value="Pathfinder" onClick="DateAndTimeValues(1997,7,4,16,56,55);Convert2Ls();PlaceValues(-33.22,19.13)">Pathfinder <br />
+<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
+<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 />
+</td>
+<td align="center">
+<b>CUSTOMIZE EARTH TIME</b><br />
+Year / Month / Day @ hh:mm:ss [UTC]<br />
 <input type="text" size="3" name="year"> / <input type="text" size="1" name="month"> / <input type="text" size="1" name="day"> @
 <input type="text" size="1" name="hours">:<input type="text" size="1" name="minutes">:<input type="text" size="1" name="seconds"><br />
@@ -35,11 +63,46 @@
 <tr>
 <td align="center">
-<b>Step 2 : CHOOSE COORDINATES ON MARS</b><br />
+<hr>
+<b>2) TIME</b>
+<input type="radio" name="tata" value="Morning" onClick="PlaceValues2(9.)" checked>Morning
+<input type="radio" name="tata" value="Afternoon" onClick="PlaceValues2(15.)">Afternoon<br />
+<input type="radio" name="tata" value="Evening" onClick="PlaceValues2(21.)">Evening
+<input type="radio" name="tata" value="Night" onClick="PlaceValues2(3.)">Night<br />
+<!--<input type="radio" name="tata" value="Whole day!" onClick="PlaceValues2('all')"><i>Whole day!</i><br />-->
+<hr>
+<b>3) ALTITUDE</b>
+<input type="radio" name="toto" value="Near surface" onClick="PlaceValues3(2.)" checked>Near-surface<br />
+<input type="radio" name="toto" value="Boundary layer" onClick="PlaceValues3(1000.)">Boundary layer
+<input type="radio" name="toto" value="Troposphere" onClick="PlaceValues3(10000.)">Troposphere<br/>
+<input type="radio" name="toto" value="Mesophere" onClick="PlaceValues3(80000.)">Mesosphere<br />
+<!--<input type="radio" name="toto" value="Whole profile!" onClick="PlaceValues3('all')"><i>Whole profile!</i><br />-->
+<hr>
+<!--
+<b>4) COORDINATES</b> Automatic! <br />
+<input type="button" value="... or click here for global map!" onClick="PlaceValues('all','all')"><br />
+-->
+<!--
+<b>4)</b>
+<input type="button" value="Click here for a global map!" onClick="PlaceValues('all','all')"><br />
+-->
+<!--
+<input type="radio" name="titi" value="Global map" onClick="PlaceValues('all','all')">Global map<br />
+<input type="radio" name="toto" value="Vertical profile" onClick="PlaceValues3('all')">Vertical profile
+<input type="radio" name="tata" value="Diurnal cycle" onClick="PlaceValues2('all')">Diurnal cycle<br />
+-->
+</td>
+<td align="center">
+<b>CUSTOMIZE COORDINATES ON MARS</b><br />
 <ul>
+<li>Latitude <input type="text" size="3" name="latitude" value="0."> (write a value or 'all')
+<li>Longitude <input type="text" size="3" name="longitude" value="0."> (write a value or 'all')
+<li>Local Time <input type="text" size="2" name="localtime" value="0."> (write a value or 'all')
+<li>Altitude (m) <input type="text" size="3" name="altitude" value="10."> (write a value or 'all')
+<!--
 <li>Latitude   
 <input type="radio" name="islatfree" value="0" checked> Value: <input type="text" size="2" name="latitude" value="0.">
 <input type="radio" name="islatfree" value="1"> All [-90 ; 90]
 </li>
-<li>Longitude  
+<li>Longitude 
 <input type="radio" name="islonfree" value="0" checked> Value: <input type="text" size="2" name="longitude" value="0.">
 <input type="radio" name="islonfree" value="1"> All [-180 ; 180]
@@ -53,10 +116,11 @@
 <input type="radio" name="isaltfree" value="1"> All [0 ; 100000] m
 </li>
+-->
 </ul>
 </td>
 <td align="center">
-[Advanced settings for well-informed Martians]<br />
+<!--[Advanced settings for well-informed Martians]<br />-->
 <ul>
-<li>Force Martian solar longitude to be <input type="text" size="3" name="ls"> degrees</li> 
+<li>Force Mars solar longitude to be <input type="text" size="3" name="ls"> degrees</li> 
 <li>High resolution topography? <input type="radio" name="hrkey" value="1" checked /> Yes <input type="radio" name="hrkey" value="0" /> No </li>
 <li>Dust scenario? <select name="dust">
@@ -70,14 +134,14 @@
 <option value="8"         >cold scenario (low dust, min solar)</option>
 </select></li>
-<li>Presets
-<!--<input type="button" value="Now!" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();">-->
+<!--<li>Presets
+<input type="button" value="Now!" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();">
 <input type="button" value="Curiosity" onClick="DateAndTimeValues(2012,8,6,05,30,00);Convert2Ls();PlaceValues(137.4,-4.6)">
 <input type="button" value="Phoenix" onClick="DateAndTimeValues(2008,5,25,23,38,23);Convert2Ls();PlaceValues(234.25,68.22)">
 <input type="button" value="Opportunity" onClick="DateAndTimeValues(2004,1,25,4,55,0);Convert2Ls();PlaceValues(354.47,-1.95)">
-<input type="button" value="Spirit" onClick="DateAndTimeValues(2004,1,4,4,26,0);Convert2Ls();PlaceValues(175.48,-14.57)"><br />
+<input type="button" value="Spirit" onClick="DateAndTimeValues(2004,1,4,4,26,0);Convert2Ls();PlaceValues(175.48,-14.57)">
 <input type="button" value="Pathfinder" onClick="DateAndTimeValues(1997,7,4,16,56,55);Convert2Ls();PlaceValues(-33.22,19.13)">
 <input type="button" value="Viking Lander 2" onClick="DateAndTimeValues(1976,9,3,22,58,20);Convert2Ls();PlaceValues(-225.74,47.97)">
 <input type="button" value="Viking Lander 1" onClick="DateAndTimeValues(1976,7,20,11,53,6);Convert2Ls();PlaceValues(-49.97,22.48)">
-</li>
+</li>-->
 </ul>
 </td>
@@ -85,8 +149,173 @@
 <tr>
 <td align="center">
-<b>Step 3 : </b> <input type="submit" value="SUBMIT" style="font-weight:bold"/>
-</td>
-<td align="center">
-Based on the <a href="http://www-mars.lmd.jussieu.fr">Mars Climate Database</a> (c) LMD/OU/IAA/ESA/CNES.
+<b>4) INTEREST</b>
+<input type="radio" name="yeah" value="Atmosphere" onClick="PlaceVar('t','p','none','none')" checked>Atmosphere<br />
+<input type="radio" name="yeah" value="Winds" onClick="PlaceVar('u','v','none','none')">Winds
+<input type="radio" name="yeah" value="Weather" onClick="PlaceVar('ps_ddv','t','none','none')">Weather<br />
+<input type="radio" name="yeah" value="Water clouds" onClick="PlaceVar('h2ovap','mtot','h2oice','icetot')">Water clouds
+<input type="radio" name="yeah" value="Chemistry" onClick="PlaceVar('o3','h2ovap','o','co')">Chemistry<br />
+<input type="radio" name="yeah" value="Landing engineering" onClick="PlaceVar('rho','rho_ddv','cp','visc')">Landing engineering<br />
+<input type="radio" name="yeah" value="Glaciology" onClick="PlaceVar('tsurfmn','tsurfmx','co2ice','icetot')">Glaciology
+<input type="radio" name="yeah" value="Surface meteorology" onClick="PlaceVar('ps','tsurf','none','none')">Surface meteorology<br />
+<input type="radio" name="yeah" value="Radiative balance" onClick="PlaceVar('lwdown','swdown','lwup','swup')">Radiative balance<br />
+<!--<input type="button" value="Surface data" onClick="PlaceVar('ps','tsurf','none','none')">-->
+</td>
+<td align="center">
+<b>CUSTOMIZE VARIABLE(S) TO BE DISPLAYED</b><br />
+<br />
+Variable 1 <select name="var1">
+<option value="t"     selected>Temperature (K)</option>
+<option value="p"             >Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+<br />
+Variable 2 <select name="var2">
+<option value="none"          >(None)</option>
+<option value="t"             >Temperature (K)</option>
+<option value="p"     selected>Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+<br />
+Variable 3 <select name="var3">
+<option value="none"  selected>(None)</option>
+<option value="t"             >Temperature (K)</option>
+<option value="p"             >Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+<br />
+Variable 4 <select name="var4">
+<option value="none"  selected>(None)</option>
+<option value="t"             >Temperature (K)</option>
+<option value="p"             >Pressure (Pa)</option>
+<option value="rho"           >Density (kg/m3)</option>
+<option value="u"             >W-E wind component (m/s)</option>
+<option value="v"             >S-N wind component (m/s)</option>
+<option value="tsurf"         >Surface temperature (K)</option>
+<option value="ps"            >Surface pressure (Pa)</option>
+<option value="mtot"          >Water vapor column (kg/m2)</option>
+<option value="icetot"        >Water ice column (kg/m2)</option>
+<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
+<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
+<option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
+<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
+<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
+<option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
+<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
+<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
+<option value="lwdown"        >thermal IR flux to surface (W/m2)</option>
+<option value="swdown"        >solar flux to surface (W/m2)</option>
+<option value="lwup"          >thermal IR flux to space (W/m2)</option>
+<option value="swup"          >solar flux reflected to space (W/m2)</option>
+<option value="o3"            >O3 ozone vol. mixing ratio (mol/mol)</option>
+<option value="o"             >[O] vol. mixing ratio (mol/mol)</option>
+<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
+<option value="visc"          >Air viscosity estimation (N s m-2)</option>
+</select>
+</td>
+<td align="center">
+<!--[Additional settings]<br />-->
+<ul>
+<li> Add wind vectors
+<input type="radio" name="iswind" value="off" checked /> No
+<input type="radio" name="iswind" value="on"          /> Yes</li>  
+<li> Set same LT on whole planet
+<input type="radio" name="isfixedlt" value="off" checked /> No
+<input type="radio" name="isfixedlt" value="on"          /> Yes</li>
+<!--
+<li> Add another variable 
+<input type="radio" name="superimposed" value="0" checked /> side-by-side
+<input type="radio" name="superimposed" value="1"         /> superimposed</li> 
+-->
+<!--
+<li>
+Presets
+<input type="button" value="Usual meteorology" onClick="PlaceVar('p','t','u','v')">
+<input type="button" value="Surface data" onClick="PlaceVar('ps','tsurf','none','none')">
+<input type="button" value="Water cycle" onClick="PlaceVar('mtot','icetot','none','none')">
+</select>
+-->
+</li>
+</ul>
+</td>
+</tr>
+<tr>
+<td align="center">
+<input type="submit" value="Values" style="font-weight:bold" />
+<input type="submit" value="Daily cycle" style="font-weight:bold" onClick="PlaceValues2('all')"/><br />
+<input type="submit" value="Vertical profile" style="font-weight:bold" onClick="PlaceValues3('all')"/>
+<input type="submit" value="Global map" style="font-weight:bold" onClick="PlaceValues('all','all')"/><br />
+</td>
+<td align="center">
+<input type="submit" value="SUBMIT" style="font-weight:bold"/>
+</td>
+<td align="center">
+<a href="http://www-mars.lmd.jussieu.fr">Mars Climate Database</a> (c) LMD/OU/IAA/ESA/CNES.<br />
+Interface by Aymeric Spiga (LMD).<br />
 </td>
 </tr>
