private void LoadWindDirection(SourceImage si) { if (si.Type == "WIND") { string samplename = si.Path.Split('\\').Last().Split('.')[0]; //Util.l($"Tady se budou načítat směry větrů pro {si.Path}:{si.Model}:{si.Submodel}:{si.Type}"); //Util.l($"Cesty ke zpracování {si.Path}:{Util.pathSource["wrf_mask"]}:.\\config\\Model_WRF_NMM_FLYMET.bmp:"); wrfSet = new Dictionary <string, string> { { "source", si.Path }, }; Dictionary <string, string> wrf = WRF.Process(wrfSet); if (wrf != null) { foreach (var r in wrf) { //Console.WriteLine(r.Key + " " + r.Value); CloudInputData inputORP = new CloudInputData(si.Model, si.Submodel, r.Key, samplename, Util.windDirectionToInt[r.Value], "REAL"); Util.l($"inputORP:{inputORP.id_model}:{inputORP.id_orp}:{inputORP.sample_name}:{inputORP.value}:{inputORP.region}:{inputORP.type}"); Model.Cloud.InputDataInsertOrUpdate(inputORP); } } } }
private void EnumerationModel(string p) { WRF.Process(new Dictionary <string, string> { { "source", p } }); }