Changeset 1078
- Timestamp:
- Oct 18, 2013, 6:45:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/mcd/proto/cgi-bin/mcdcgi.py
r1077 r1078 94 94 if minxz < 0.1: minxz=0.1 # otherwise bug with values smaller than 0.1m 95 95 96 97 98 96 try: query.datekey = int(form.getvalue("datekeyhtml")) 99 97 except: query.datekey = float(1) … … 106 104 except: query.xdate = float(1) 107 105 query.loct = 0. 106 try: query.dust = int(form.getvalue("dust")) 107 except: query.dust = int(1) 108 108 109 109 # Prevent the user from doing bad … … 148 148 if badrange: 149 149 errormess = errormess+"<li>One or several coordinate intervals are not... intervals. Set either a real range or an unique value." 150 stormls = ( (query.dust in [4,5,6]) and (query.datekey == 1 and query.xdate < 180.)) 151 if stormls: 152 errormess = errormess+"<li>When a dust storm scenario is selected, available dates must be within the dust storm season (180 < Ls < 360)." 150 153 if query.xdate == 666.: 151 154 errormess = "<li>CONGRATULATIONS! <br><img src='../surprise.jpg'><br> You reached secret mode.<br> You can <a href='http://www.youtube.com/watch?v=fTpQOZcNASw'>watch a nice video</a>." … … 158 161 try: query.hrkey = int(form.getvalue("hrkey")) 159 162 except: query.hrkey = int(1) 160 try: query.dust = int(form.getvalue("dust"))161 except: query.dust = int(1)162 163 # self.perturkey = 0 #integer perturkey ! perturbation type (0: none) 163 164 # self.seedin = 1 #random number generator seed (unused if perturkey=0)
Note: See TracChangeset
for help on using the changeset viewer.