Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "solar"

Use W.I.S.E. Builder to calculate solar times based on the input location and date. Solar times include sunrise, sunset, and solar noon.

Example

let calculator = new SolarCalculator();
calculator.latitude = 49.8998;
calculator.longitude = -97.1375;
calculator.timezone = 15; //index was retrieved from the Timezone class in wiseGlobals.js
calculator.year = 2019;
calculator.month = 1;
calculator.day = 1;
await calculator.fetchSolarPromise();
//********* calculator will now contain the calulated solar values ***********

Index

Classes