public BaseWeatherMapper(GlonassContext context) { _context = context; _fsHelper = new FSHelper(); featured.Columns.Add("DateTime", typeof(DateTime)); FillDictionary(); }
public virtual void GetFeatures(GlonassContext context, string path = null) { var weather = context.Wfilled.OrderBy(x => x.Datetime).ToArray(); for (int i = 0; i < weather.Count();) { // 1 day window to count mean and max List <Wfilled> window = new List <Wfilled>(); do { window.Add(weather[i]); i++; }while (weather[i - 1].Datetime.Value.Hour != 6 && i < weather.Count()); ProcessWindow(window); } featured.TableName = "featured_weather"; _context.SaveToTable(featured, true); }
public WeatherMapper(GlonassContext context) : base(context) { }