private Cloud.eType GetMostClouds(CloudInfoWithNCD cloudInfoWithNCD) { Cloud.eType t = (Cloud.eType) 1; foreach (var fItem in cloudInfoWithNCD) { if (((int)fItem.Type) > (int)t) { t = fItem.Type; } } // foreach (var fItem in cloudInfoWithNCD) return(t); }
private static string Get(CloudInfoWithNCD cloudInfoWithNCD) { StringBuilder ret = new StringBuilder(); if (cloudInfoWithNCD.IsNCD) { ret.Append(R.NoCloudsDetected); } else { ret = new StringBuilder(Get(cloudInfoWithNCD as CloudInfo)); } ret.Append(R.Dot); return(ret.ToString()); }
private string GetCloudLevelString(CloudInfoWithNCD cloudInfoWithNCD) { string ret = null; Cloud.eType t; if (cloudInfoWithNCD.IsNCD || cloudInfoWithNCD.IsNSC || cloudInfoWithNCD.IsSKC || cloudInfoWithNCD.IsCLR || cloudInfoWithNCD.Count == 0) { ret = R.NoClouds; } else { t = GetMostClouds(cloudInfoWithNCD); ret = GetCloudTypeString(t); } ret += R.Dot; return(ret); }