Ignore:
Timestamp:
Oct 22, 2012, 8:05:55 PM (13 years ago)
Author:
aslmd
Message:

UTIL PYTHON
MCD interface and online version.

  • corrected a bug introduced recently for fixed / not fixed LT
  • clearer location for the fixed LT / not fixed LT option
  • submitting with a button on the beginner's column automatically reset the form with default values so that no risk to make mistake
  • now the button reset is a real reset. clicking on the Mars panorama also reset
  • display MCD version, coordinates etc... for values-only output
  • the plot is shown on a new window
  • added Ls or julian date in the title (automatic)
  • made the title to be on two lines
  • displayed values on colorbars are now adapted. e.g. if the unit is K then we use the format "%.0f"
  • clearer mention of vertical coordinates on the webpage. removed the possibility for above 3396 km from Mars Center
  • more points on vertical profiles and sections
  • added separator : and rewrote this part of the code so that it is easy to add othe separators
  • added a protection so that slightly negative values from the MCD are set to 0 (apply to mol/mol, kg/kg, kg/m2, W/m2 quantities)
  • better naming for RMS values

TODO (from easier to more difficult i.e. requiring more work)

  • more color palettes
  • fix ugly spacing when asking for 4 sections
  • zonal means
  • alert to user rather than modulo or bounds for time and coordinates
  • Hovmoller plots
  • test to prevent user to use a bad separator (for instance -)
File:
1 edited

Legend:

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

    r805 r812  
    1515<!-- aussi possible: get a la place de post. pour avoir un beau lien -->
    1616
    17 <!--<form name="calendar" action="/marscgi-bin/mcdcgi.py" method="post"> <!--target="_new">-->
    18 <form name="calendar" action="./cgi-bin/mcdcgi.py" method="post"> <!--target="_new">-->
     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">-->
    1919
    2020<center>
    2121<b style="font-size: 125%;">Mars Climate Database: The Web Interface</b><br>
    22 <img src="PIA03610_red.jpg" height=80 width=1200><br>
     22<!--Welcome! To reset your query, click on the Mars panorama.-->
     23<a href="index.html"><img src="PIA03610_red.jpg" height=80 width=1200></a><br>
    2324</center>
    2425
     
    5455Solar longitude <input type="text" size="3" name="ls"> degrees<br />
    5556Local Time <input type="text" size="4" name="localtime" value="0."> Martian hour<br />
     57<br />
    5658<input type="radio" name="datekeyhtml" value="0">
    5759<b><font color="blue">EARTH date</font></b>
     
    6264</td>
    6365<td align="center">
     66Option for 2D maps: local time value is<br />
     67<input type="radio" name="isfixedlt" value="off" checked /> at longitude 0
     68<input type="radio" name="isfixedlt" value="on"          /> fixed for the whole planet<br />
     69<hr>
    6470Earth Julian Date <input type="text" size="6" name="julian" readonly="readonly"><br />
    65 Martian year <input type="text" size="1" name="martianyear" readonly="readonly">
    66 month <input type="text" size="1" name="martianmonth" readonly="readonly"> / 12 <br />
    67 Martian sol <input type="text" size="2" name="sol" readonly="readonly"> / 669<br />
     71Mars year <input type="text" size="1" name="martianyear" readonly="readonly">
     72 - month <input type="text" size="1" name="martianmonth" readonly="readonly"><span style="font-size: 75%;"> / 12</span>
     73 - sol <input type="text" size="2" name="sol" readonly="readonly"><span style="font-size: 75%;"> / 669</span><br />
    6874<input type="button" value="EARTH DATE >>> MARS DATE" onClick="Convert2Ls();"><br />
    6975</td>
     
    107113<li>Longitude <input type="text" size="7" name="longitude" value="0."> degree East
    108114<li>Altitude <input type="text" size="9" name="altitude" value="10."> <select name="zkey">
    109 <option value="1"         >m (O: Mars center)</option>
    110 <option value="2"         >m (O: "sea level")</option>
    111 <option value="3" selected>m (O: surface)</option>
    112 <option value="4"         >Pa (pressure)</option>
    113 <option value="5"         >m (O: 3396 km)</option>
     115<option value="3" selected>m above surface</option>
     116<option value="2"         >m above "sea level"</option>
     117<option value="1"         >m from Mars center</option>
     118<option value="4"         >Pa (pressure level)</option>
     119<!--
     120<option value="5"         >above 3396 km from Mars center</option>
     121-->
    114122</select>
    115123<!--
     
    189197<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
    190198<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    191 <option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
     199<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
    192200<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
    193201<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    194 <option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
     202<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
    195203<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
    196204<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
     
    218226<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
    219227<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    220 <option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
     228<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
    221229<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
    222230<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    223 <option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
     231<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
    224232<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
    225233<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
     
    247255<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
    248256<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    249 <option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
     257<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
    250258<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
    251259<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    252 <option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
     260<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
    253261<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
    254262<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
     
    276284<option value="h2ovap"        >Water vapor vol. mixing ratio (mol/mol)</option>
    277285<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    278 <option value="ps_ddv"        >Surface pressure DTD RMS (Pa)</option>
     286<option value="ps_ddv"        >Surf. pres. day to day variability (Pa)</option>
    279287<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
    280288<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    281 <option value="rho_ddv"       >density DTD RMS (kg/m^3)</option>
     289<option value="rho_ddv"       >density day to day variability (kg/m^3)</option>
    282290<option value="tsurfmx"       >daily max mean surf temperature (K)</option>
    283291<option value="tsurfmn"       >daily min mean surf temperature (K)</option>
     
    298306<input type="radio" name="iswind" value="off" checked /> No
    299307<input type="radio" name="iswind" value="on"          /> Yes</li> 
     308<!--
    300309<li> Set same LT on whole planet
    301310<input type="radio" name="isfixedlt" value="off" checked /> No
    302311<input type="radio" name="isfixedlt" value="on"          /> Yes</li>
     312-->
    303313<!--
    304314<li> Add another variable
     
    320330<tr>
    321331<td align="center">
    322 <input type="submit" value="Values" style="font-weight:bold" />
    323 <input type="submit" value="Daily cycle" style="font-weight:bold" onClick="PlaceValues2('all')"/><br />
    324 <input type="submit" value="Vertical profile" style="font-weight:bold" onClick="PlaceValues3('all')"/>
    325 <input type="submit" value="Global map" style="font-weight:bold" onClick="PlaceValues('all','all')"/><br />
     332<input type="button" value="Values" style="font-weight:bold" onClick="submit_form_beginner()"/>
     333<input type="button" value="Daily cycle" style="font-weight:bold" onClick="PlaceValues2('all');submit_form_beginner()"/><br />
     334<input type="button" value="Vertical profile" style="font-weight:bold" onClick="PlaceValues3('all');submit_form_beginner()"/>
     335<input type="button" value="Global map" style="font-weight:bold" onClick="PlaceValues('all','all');submit_form_beginner()"/><br />
    326336</td>
    327337<td align="center">
    328338<input type="submit" value="SUBMIT" style="font-weight:bold"/>
    329 <input type="button" value="RESET" style="font-weight:bold" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()"/><br />
     339<!--<input type="button" value="RESET" style="font-weight:bold" onClick="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()"/><br />-->
     340<input type="button" value="RESET" style="font-weight:bold" onClick="window.open('index.html','_self')"/><br />
    330341</td>
    331342<td align="center">
Note: See TracChangeset for help on using the changeset viewer.