Ignore:
Timestamp:
Oct 15, 2012, 12:00:39 AM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON mcd online. improved interface for time (earth and mars). improved titles.

Location:
trunk/UTIL/PYTHON/mcd/proto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/mcd/proto/cgi-bin/mcdcgi.py

    r800 r805  
    6969if sumfree > 2: exit() ## only 1D or 2D plots for the moment
    7070
    71 try: query.xdate = float(form.getvalue("ls"))
    72 except: query.xdate = float(1)
     71try: query.datekey = int(form.getvalue("datekeyhtml"))
     72except: query.datekey = float(1)
     73if query.datekey == 1:
     74    try: query.xdate = float(form.getvalue("ls"))
     75    except: query.xdate = float(1)
     76else:
     77    try: query.xdate = float(form.getvalue("julian"))
     78    except: query.xdate = float(1)
     79    query.loct = 0.
     80
    7381try: query.hrkey = int(form.getvalue("hrkey"))
    7482except: query.hrkey = int(1)
     
    156164#print "<br />"
    157165
     166print "<a href='../index.html'>Click here to start a new query</a><br />"
     167
    158168## Now the part which differs
    159169if sumfree == 0:        query.update() ; query.htmlprinttabextvar(vartoplot)  #query.printmeanvar()
    160 elif sumfree >= 1:      print "<a href='../index.html'>Click here to start a new query</a><br /><img src='"+figname+"'><br />"
     170elif sumfree >= 1:      print "<img src='"+figname+"'><br />"
    161171else:                   print "<h1>ERROR : sumfree is not or badly defined ...</h1></body></html>"
    162172
  • trunk/UTIL/PYTHON/mcd/proto/index.html

    r797 r805  
    5050</td>
    5151<td align="center">
    52 <b>CUSTOMIZE EARTH TIME</b><br />
    53 Year / Month / Day @ hh:mm:ss [UTC]<br />
     52<input type="radio" name="datekeyhtml" value="1" checked>
     53<b><font color="red">MARS date</font></b>
     54Solar longitude <input type="text" size="3" name="ls"> degrees<br />
     55Local Time <input type="text" size="4" name="localtime" value="0."> Martian hour<br />
     56<input type="radio" name="datekeyhtml" value="0">
     57<b><font color="blue">EARTH date</font></b>
     58YY / MM / DD @ hh:mm:ss<br />
    5459<input type="text" size="3" name="year"> / <input type="text" size="1" name="month"> / <input type="text" size="1" name="day"> @
    55 <input type="text" size="1" name="hours">:<input type="text" size="1" name="minutes">:<input type="text" size="1" name="seconds"><br />
    56 <input type="button" value="SAVE CHANGES" onClick="Convert2Ls();" style="font-weight:bold"><br />
     60<input type="text" size="1" name="hours">:<input type="text" size="1" name="minutes">:<input type="text" size="1" name="seconds">
     61UTC<br />
    5762</td>
    5863<td align="center">
    5964Earth Julian Date <input type="text" size="6" name="julian" readonly="readonly"><br />
    60 Martian year <input type="text" size="1" name="martianyear" readonly="readonly"> <br />
    61 Martian month <input type="text" size="1" name="martianmonth" readonly="readonly"> / 12<br />
    62 Martian sol <input type="text" size="2" name="sol" readonly="readonly"> / 669
     65Martian year <input type="text" size="1" name="martianyear" readonly="readonly">
     66month <input type="text" size="1" name="martianmonth" readonly="readonly"> / 12 <br />
     67Martian sol <input type="text" size="2" name="sol" readonly="readonly"> / 669<br />
     68<input type="button" value="EARTH DATE >>> MARS DATE" onClick="Convert2Ls();"><br />
    6369</td>
    6470</tr>
     
    98104write a value (or) a range val1;val2 (or) 'all'<br />
    99105<ul>
    100 <li>Latitude <input type="text" size="7" name="latitude" value="0."> degree North 
     106<li>Latitude <input type="text" size="7" name="latitude" value="0."> degree North
    101107<li>Longitude <input type="text" size="7" name="longitude" value="0."> degree East
    102 <li>Local Time <input type="text" size="7" name="localtime" value="0."> Martian hour
    103108<li>Altitude <input type="text" size="9" name="altitude" value="10."> <select name="zkey">
    104109<option value="1"         >m (O: Mars center)</option>
     
    131136<!--[Advanced settings for well-informed Martians]<br />-->
    132137<ul>
    133 <li>Force Mars solar longitude to be <input type="text" size="3" name="ls"> degrees</li>
    134138<li>High resolution topography? <input type="radio" name="hrkey" value="1" checked /> Yes <input type="radio" name="hrkey" value="0" /> No </li>
    135139<li>Dust scenario? <select name="dust">
Note: See TracChangeset for help on using the changeset viewer.