Changeset 805 for trunk/UTIL/PYTHON/mcd/proto
- Timestamp:
- Oct 15, 2012, 12:00:39 AM (12 years ago)
- Location:
- trunk/UTIL/PYTHON/mcd/proto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/mcd/proto/cgi-bin/mcdcgi.py
r800 r805 69 69 if sumfree > 2: exit() ## only 1D or 2D plots for the moment 70 70 71 try: query.xdate = float(form.getvalue("ls")) 72 except: query.xdate = float(1) 71 try: query.datekey = int(form.getvalue("datekeyhtml")) 72 except: query.datekey = float(1) 73 if query.datekey == 1: 74 try: query.xdate = float(form.getvalue("ls")) 75 except: query.xdate = float(1) 76 else: 77 try: query.xdate = float(form.getvalue("julian")) 78 except: query.xdate = float(1) 79 query.loct = 0. 80 73 81 try: query.hrkey = int(form.getvalue("hrkey")) 74 82 except: query.hrkey = int(1) … … 156 164 #print "<br />" 157 165 166 print "<a href='../index.html'>Click here to start a new query</a><br />" 167 158 168 ## Now the part which differs 159 169 if 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 />"170 elif sumfree >= 1: print "<img src='"+figname+"'><br />" 161 171 else: print "<h1>ERROR : sumfree is not or badly defined ...</h1></body></html>" 162 172 -
trunk/UTIL/PYTHON/mcd/proto/index.html
r797 r805 50 50 </td> 51 51 <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> 54 Solar longitude <input type="text" size="3" name="ls"> degrees<br /> 55 Local 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> 58 YY / MM / DD @ hh:mm:ss<br /> 54 59 <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"> 61 UTC<br /> 57 62 </td> 58 63 <td align="center"> 59 64 Earth 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 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 /> 68 <input type="button" value="EARTH DATE >>> MARS DATE" onClick="Convert2Ls();"><br /> 63 69 </td> 64 70 </tr> … … 98 104 write a value (or) a range val1;val2 (or) 'all'<br /> 99 105 <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 101 107 <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 hour103 108 <li>Altitude <input type="text" size="9" name="altitude" value="10."> <select name="zkey"> 104 109 <option value="1" >m (O: Mars center)</option> … … 131 136 <!--[Advanced settings for well-informed Martians]<br />--> 132 137 <ul> 133 <li>Force Mars solar longitude to be <input type="text" size="3" name="ls"> degrees</li>134 138 <li>High resolution topography? <input type="radio" name="hrkey" value="1" checked /> Yes <input type="radio" name="hrkey" value="0" /> No </li> 135 139 <li>Dust scenario? <select name="dust">
Note: See TracChangeset
for help on using the changeset viewer.