Example #1
0
     print "cannot grab geo_info"
     mark_as_complete(running_id)
 try:
     geo_height2 = formatPathInfo(geo_height)
     print 'geo_height2 = ', geo_height2
     if geo_height2 < 0:
         # don't understand either
         geo_height2 = 0
 except Exception,e:
     mark_as_complete(running_id)
     print "geo height grab error"
     print geo_height
     return 1
 try:
     #hei1_mean = getHeight_mean(lat1,lng1,lat2,lng2)
     if getHTT(geo_height2) < 0:
         HTT = height
     else:
         HTT = getHTT(geo_height2) + height
     if getHRR(geo_height2) < 0:
         HRR = height_r
     else:
         HRR = getHRR(geo_height2) + height_r
     #HTT = getHTT(geo_height2) + height
     #HRR = getHRR(geo_height2) + height_r
     print "HTT,HRR:",HTT,HRR
 except Exception,e:
     print "error calculate HTT HRR"
     mark_as_complete(running_id)
     return 1
 try:
Example #2
0
     if geo_height == None:
         raise Exception,e
 except Exception,e:
     print "cannot grab geo_info"
     mark_as_complete(job[0])
 try:
     geo_height2 = formatPathInfo(geo_height)
     #print geo_height2
 except Exception,e:
     mark_as_complete(job[0])
     print "geo height grab error"
     print geo_height
     return 1
 try:
     #hei1_mean = getHeight_mean(lat1,lng1,lat2,lng2)
     HTT = getHTT(geo_height2) + height
     HRR = getHRR(geo_height2) + height_r
     print "HTT:",HTT,HRR
 except Exception,e:
     print "error cal HTT HRR"
     mark_as_complete(job[0])
     return 1
 try:
     res =\
     cal_milliton(geo_height2,int(freq),int(pol),dis,HTT,HRR,height,height_r)
     if res is not None:
         save_Et(res,job[0])
 except Exception,e:
     print e
     mark_as_complete(job[0])
     return 1