Пример #1
0
        pass

    # Get observed timeseries data
    obs = MesoWest_timeseries.get_mesowest_ts(station, start_date_early,
                                              end_date)
    obs_dates = obs['datetimes']
    obs_spd = obs['wind speed']
    obs_dir = obs['wind direction']
    obs_temp = obs['temperature']
    # calculate the U and V components from wind speed
    obs_u, obs_v = wind_calcs.wind_spddir_to_uv(obs_spd, obs_dir)

    # Get the WRF timeseries data
    wrf_dir = '/uufs/chpc.utah.edu/common/home/horel-group4/model/bblaylock/WRF3.7_lake299_ember/WRFV3/test/em_real/'
    wrf_name = 'lake299'
    wrf_temp = WRF_timeseries.get_ts_data(wrf_dir + station + '.d02.TS',
                                          't') - 273.15
    wrf_u = WRF_timeseries.get_ts_data(wrf_dir + station + '.d02.TS', 'u')
    wrf_v = WRF_timeseries.get_ts_data(wrf_dir + station + '.d02.TS', 'v')
    wrf_time = WRF_timeseries.get_ts_data(wrf_dir + station + '.d02.TS',
                                          'ts_hour')
    # calculate the wind speed and direction from u and v
    wrf_spd = wind_calcs.wind_uv_to_spd(wrf_u, wrf_v)
    wrf_dir = wind_calcs.wind_uv_to_dir(wrf_u, wrf_v)
    # convert wrf_time to datetime
    wrf_dates = np.array([])
    for i in wrf_time:
        wrf_dates = np.append(wrf_dates, start_date + timedelta(hours=i))

    # Get the WRF timeseries data for a second series
    wrf_dir2 = '/uufs/chpc.utah.edu/common/home/horel-group4/model/bblaylock/WRF3.7_lake303_ember/WRFV3/test/em_real/'
    wrf_name2 = 'lake303'
Пример #2
0
     print "skipped"
     pass
 
 # Get observed timeseries data
 obs = MesoWest_timeseries.get_mesowest_ts(station,start_date_early,end_date)
 obs_dates = obs['datetimes']
 obs_spd = obs['wind speed']
 obs_dir = obs['wind direction']
 obs_temp = obs['temperature']
 # calculate the U and V components from wind speed
 obs_u, obs_v = wind_calcs.wind_spddir_to_uv(obs_spd,obs_dir)
 
 # Get the WRF timeseries data
 wrf_dir = '/uufs/chpc.utah.edu/common/home/horel-group4/model/bblaylock/WRF3.7_lake299_ember/WRFV3/test/em_real/'
 wrf_name='lake299'
 wrf_temp = WRF_timeseries.get_ts_data(wrf_dir+station+'.d02.TS','t')-273.15
 wrf_u = WRF_timeseries.get_ts_data(wrf_dir+station+'.d02.TS','u')
 wrf_v = WRF_timeseries.get_ts_data(wrf_dir+station+'.d02.TS','v')
 wrf_time = WRF_timeseries.get_ts_data(wrf_dir+station+'.d02.TS','ts_hour')
 # calculate the wind speed and direction from u and v
 wrf_spd = wind_calcs.wind_uv_to_spd(wrf_u,wrf_v)
 wrf_dir = wind_calcs.wind_uv_to_dir(wrf_u,wrf_v)
 # convert wrf_time to datetime
 wrf_dates = np.array([])
 for i in wrf_time:
     wrf_dates = np.append(wrf_dates,start_date+timedelta(hours=i))
     
     
 # Get the WRF timeseries data for a second series
 wrf_dir2 = '/uufs/chpc.utah.edu/common/home/horel-group4/model/bblaylock/WRF3.7_lake303_ember/WRFV3/test/em_real/'
 wrf_name2='lake303'