Example #1
0
def get_sdc_analysis(sdc): 
    #compile context
    area = sq_meters_to_sq_miles(sdc.geometry_final_area)
    num_lease_blocks = sdc.num_lease_blocks
    min_wind_speed, max_wind_speed = get_wind_speed_range(sdc)
    context = { 'sdc': sdc, 'default_value': default_value, 'area': area, 'num_lease_blocks': num_lease_blocks,
                'min_wind_speed': min_wind_speed, 'max_wind_speed': max_wind_speed }
    return context
Example #2
0
def get_wind_analysis(aoi):
    #compile context
    from general.utils import default_value, sq_meters_to_sq_miles
    area = sq_meters_to_sq_miles(aoi.geometry_final.area)
    context = {'aoi': aoi, 'default_value': default_value, 'area': area}
    return context
Example #3
0
 def area_in_sq_miles(self):
     return sq_meters_to_sq_miles(self.geometry_final.area)
Example #4
0
 def area_in_sq_miles(self):
     return sq_meters_to_sq_miles(self.geometry_final.area)
Example #5
0
def get_wind_analysis(wes):
    #compile context
    area = sq_meters_to_sq_miles(wes.geometry_final.area)
    context = {'wes': wes, 'default_value': default_value, 'area': area}
    return context
Example #6
0
def get_wind_analysis(aoi): 
    #compile context
    area = sq_meters_to_sq_miles(aoi.geometry_final.area)
    context = { 'aoi': aoi, 'default_value': default_value, 'area': area }
    return context
Example #7
0
def get_wind_analysis(wes): 
    #compile context
    area = sq_meters_to_sq_miles(wes.geometry_final.area)
    context = { 'wes': wes, 'default_value': default_value, 'area': area }
    return context