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; } } }
internal SNOWMELTCONST(PFSSection Section) { _pfsHandle = Section; for (int i = 1; i <= Section.GetSectionsNo(); i++) { PFSSection sub = Section.GetSection(i); switch (sub.Name) { case "ThreshMeltTemp": _threshMeltTemp = new Topography(sub); break; case "DegreeDayFactor": _degreeDayFactor = new POTEVAPTRANS(sub); break; case "RadMeltingCoeff": _radMeltingCoeff = new Topography(sub); break; case "MinSnowStorage": _minSnowStorage = new Topography(sub); break; case "MaxWetSnowFrac": _maxWetSnowFrac = new Topography(sub); break; case "InitialSnowStorage": _initialSnowStorage = new Topography(sub); break; case "InitialWetSnowFrac": _initialWetSnowFrac = new Topography(sub); break; default: _unMappedSections.Add(sub.Name); break; } } }