Exemple #1
0
data.reset_index(drop=True,inplace=True)
logger.info('data: {}'.format(data))
raining= bigraining
groupofclouds = biggroupofclouds

if((len(data)>=2) & any(data.datetime.isin([minute]))):
    ### Getting windspeed
    data = processor.getting_windspeed(data=data,shifting=4,start=start,end=end)
    logger.info('Got windspeed')
    ### Making copy of clouds list
    nube = groupofclouds.copy()    
    ### Updated Dictionaries
    raining = processor.convert_actual_datetime(raining,data)
    groupofclouds = processor.convert_actual_datetime(groupofclouds,data)
    logger.info('Actual Datetime Coversion Done')
    ### Getting position of forecasted clouds
    forecasted_clouds = processor.getting_forecast_clouds(data,groupofclouds,raining,5400)
    logger.info('Got position of forested rain')
    ### Getting forecast
    forecast = processor.getting_forecast(forecasted_clouds,(190, 215,240, 265))
    logger.info('Got info of rain in Delhi')
    ### Getting final forecats
    final = processor.forecast_db(forecast,5400)
    logger.info('Got Final DB')
else:
    final = processor.norain(data,start,end,5400)
    processor.store_forecast(final)
    logger.info('No rain!')
    
    
if ((len(data) >= 2) & any(data.datetime.isin([minute]))):
    ### Getting windspeed
    data = processor.getting_windspeed(data=data,
                                       shifting=4,
                                       start=start,
                                       end=end)
    logger.info('Got windspeed')
    ### Making copy of clouds list
    nube = groupofclouds.copy()
    ### Updated Dictionaries
    raining = processor.convert_actual_datetime(raining, data)
    groupofclouds = processor.convert_actual_datetime(groupofclouds, data)
    logger.info('Actual Datetime Coversion Done')
    ### Getting position of forecasted clouds
    forecasted_clouds = processor.getting_forecast_clouds(
        data, groupofclouds, raining, 3600)
    logger.info('Got position of forested rain')
    ### Getting forecast
    forecast = processor.getting_forecast(forecasted_clouds,
                                          (190, 215, 240, 265))
    logger.info('Got info of rain in Delhi')
    ### Getting final forecats
    final = processor.forecast_db(forecast, 3600)
    logger.info('Got Final DB')
else:
    final = processor.norain(data, start, end, 3600)
    processor.store_forecast(final)
    logger.info('No rain!')

exec(open('./radar_60.py').read())