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

UTIL PYTHON MCD ONLINE. various improvements and bug fixes: notably altitude 0, wind modulus.

File:
1 edited

Legend:

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

    r1075 r1077  
    9292isloctfree, query.loct, query.locts, query.locte = gethtmlcoord( form.getvalue("localtime"),    0.,  24. )
    9393isaltfree,  query.xz,   query.xzs,   query.xze   = gethtmlcoord( form.getvalue("altitude"),  minxz, maxxz)
     94if minxz < 0.1: minxz=0.1 # otherwise bug with values smaller than 0.1m
     95
     96
    9497
    9598try: query.datekey = int(form.getvalue("datekeyhtml"))
     
    168171except: query.max2d = None
    169172
    170 try: query.dpi = form.getvalue("dpi")
    171 except: query.dpi = 80.
    172 if query.dpi == "eps":  yeaheps = True  ; query.dpi = 300.
    173 else:                   yeaheps = False ; query.dpi = float(query.dpi)
     173try:
     174  query.dpi = form.getvalue("dpi")
     175  if query.dpi == "eps":  yeaheps = True  ; query.dpi = 300.
     176  else:                   yeaheps = False ; query.dpi = float(query.dpi)
     177except:
     178  query.dpi = 80
     179  yeaheps = False
    174180
    175181# Get variables to plot
Note: See TracChangeset for help on using the changeset viewer.