Пример #1
0
        internal PrecipitationRate(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "GLOBAL":
                    _gLOBAL = new GLOBAL(sub);
                    break;

                case "STATION_BASED":
                    _sTATION_BASED = new STATION_BASED(sub);
                    break;

                case "FULLY_DISTRIBUTED":
                    _fULLY_DISTRIBUTED = new FULLY_DISTRIBUTED(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
Пример #2
0
    internal POTEVAPTRANS(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "GLOBAL":
          _gLOBAL = new GLOBAL(sub);
          break;
        case "STATION_BASED":
          _sTATION_BASED = new STATION_BASED(sub);
          break;
        case "FULLY_DISTRIBUTED":
          _fULLY_DISTRIBUTED = new FULLY_DISTRIBUTED(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }