Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "fwi"

Call W.I.S.E. Builder to calculate FWI values for a given set of inputs.

Example

//populate the calculator with example values
let calculator = new FwiCalculations();
calculator.date = "2014-10-4 12:18:00";
calculator.dst = 1;
calculator.location = new LatLon(49.78, -97.15);
calculator.noonTemp = 8.0;
calculator.noonRh = 44;
calculator.noonPrecip = 0;
calculator.noonWindSpeed = 18.0;
calculator.hourlyMethod = FWICalculationMethod.VAN_WAGNER;
calculator.temp = 5;
calculator.rh = 53;
calculator.precip = 0;
calculator.windSpeed = 10;
calculator.prevHourFFMC = 85.0;
calculator.ystrdyFFMC = 85.0;
calculator.ystrdyDMC = 25.0;
calculator.ystrdyDC = 200.0;
await calculator.FWICalculateDailyStatisticsPromise();
//************* calculator should now contain calculated FWI values ************************

Index