Exemple #1
0
        public static NrcsDailySerieLegacy GetNRCS(string cbtt, string pcode, string snotelId)
        {
            string state = Hydromet.HydrometInfoUtility.LookupState(cbtt);
            int idx = Array.IndexOf(parmCodes, pcode.ToUpper());
            string col = "pill";
            if (idx >= 0)
            {
                col = columnNames[idx];
                NrcsDailySerieLegacy s = new NrcsDailySerieLegacy(state, snotelId, col);
                return s;
            }

            string msg = "Error pcode '" + pcode + "' not supported";
            Logger.WriteLine(msg);
            throw new InvalidOperationException(msg);
        }
Exemple #2
0
        public static NrcsDailySerieLegacy GetNRCS(string cbtt, string pcode, string snotelId)
        {
            string state = Hydromet.HydrometInfoUtility.LookupState(cbtt);
            int    idx   = Array.IndexOf(parmCodes, pcode.ToUpper());
            string col   = "pill";

            if (idx >= 0)
            {
                col = columnNames[idx];
                NrcsDailySerieLegacy s = new NrcsDailySerieLegacy(state, snotelId, col);
                return(s);
            }

            string msg = "Error pcode '" + pcode + "' not supported";

            Logger.WriteLine(msg);
            throw new InvalidOperationException(msg);
        }