Changeset 1078


Ignore:
Timestamp:
Oct 18, 2013, 6:45:06 PM (11 years ago)
Author:
aslmd
Message:

UTIL PYTHON MCD online. Forgot error message about dust storm scenario.

File:
1 edited

Legend:

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

    r1077 r1078  
    9494if minxz < 0.1: minxz=0.1 # otherwise bug with values smaller than 0.1m
    9595
    96 
    97 
    9896try: query.datekey = int(form.getvalue("datekeyhtml"))
    9997except: query.datekey = float(1)
     
    106104    except: query.xdate = float(1)
    107105    query.loct = 0.
     106try: query.dust = int(form.getvalue("dust"))
     107except: query.dust  = int(1)
    108108
    109109# Prevent the user from doing bad
     
    148148if badrange:
    149149    errormess = errormess+"<li>One or several coordinate intervals are not... intervals. Set either a real range or an unique value."
     150stormls = ( (query.dust in [4,5,6]) and (query.datekey == 1 and query.xdate < 180.))
     151if stormls:
     152    errormess = errormess+"<li>When a dust storm scenario is selected, available dates must be within the dust storm season (180 < Ls < 360)."
    150153if query.xdate == 666.:
    151154    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>."
     
    158161try: query.hrkey = int(form.getvalue("hrkey"))
    159162except: query.hrkey = int(1)
    160 try: query.dust = int(form.getvalue("dust"))
    161 except: query.dust  = int(1)
    162163#        self.perturkey = 0  #integer perturkey ! perturbation type (0: none)
    163164#        self.seedin    = 1  #random number generator seed (unused if perturkey=0)
Note: See TracChangeset for help on using the changeset viewer.