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

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "PrecipitationRate":
          _precipitationRate = new PrecipitationRate(sub);
          break;
        case "PrecipLapseRate":
          _precipLapseRate = new Topography(sub);
          break;
        case "POTEVAPTRANS":
          _pOTEVAPTRANS = new POTEVAPTRANS(sub);
          break;
        case "SWSolarRadiation":
          _sWSolarRadiation = new POTEVAPTRANS(sub);
          break;
        case "AirTemperature":
          _airTemperature = new PrecipitationRate(sub);
          break;
        case "TempLapseRate":
          _tempLapseRate = new Topography(sub);
          break;
        case "WetLapseRate":
          _wetLapseRate = new Topography(sub);
          break;
        case "SNOWMELTCONST":
          _sNOWMELTCONST = new SNOWMELTCONST(sub);
          break;
        case "NetRainfallFraction":
          _netRainfallFraction = new Topography(sub);
          break;
        case "InfiltrationFraction":
          _infiltrationFraction = new Topography(sub);
          break;
        case "RechargeFraction":
          _rechargeFraction = new Topography(sub);
          break;
        case "RechargeLayer":
          _rechargeLayer = new RechargeLayer(sub);
          break;
        case "PondingElevation":
          _pondingElevation = new RechargeLayer(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }
Пример #2
0
        internal Climate(PFSSection Section)
        {
            _pfsHandle = Section;

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

                case "PrecipLapseRate":
                    _precipLapseRate = new Topography(sub);
                    break;

                case "POTEVAPTRANS":
                    _pOTEVAPTRANS = new POTEVAPTRANS(sub);
                    break;

                case "SWSolarRadiation":
                    _sWSolarRadiation = new POTEVAPTRANS(sub);
                    break;

                case "AirTemperature":
                    _airTemperature = new PrecipitationRate(sub);
                    break;

                case "TempLapseRate":
                    _tempLapseRate = new Topography(sub);
                    break;

                case "WetLapseRate":
                    _wetLapseRate = new Topography(sub);
                    break;

                case "SNOWMELTCONST":
                    _sNOWMELTCONST = new SNOWMELTCONST(sub);
                    break;

                case "NetRainfallFraction":
                    _netRainfallFraction = new Topography(sub);
                    break;

                case "InfiltrationFraction":
                    _infiltrationFraction = new Topography(sub);
                    break;

                case "RechargeFraction":
                    _rechargeFraction = new Topography(sub);
                    break;

                case "RechargeLayer":
                    _rechargeLayer = new RechargeLayer(sub);
                    break;

                case "PondingElevation":
                    _pondingElevation = new RechargeLayer(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }