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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.