SCICalculator.java [src/java/m/sq/sci] Revision: default  Date:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package m.sq.sci;

/**
 *
 * @author Brad
 */
public class SCICalculator {

  public static double calculateSCI(double water_sci, double wind_sci) {
    return (water_sci + wind_sci) / 2;
  }


  /*
    The sci calculations from Joel Poore
    Method 1 (author Joel Poore, 10/13/2017)
    wind erosion SCI = ((2.54-(wind erosion rate + water erosion rate))/2.54) * 0.2) + (wind erosion OM factor * 0.4) + (wind erosion FO factor * 0.4)
    water erosion SCI = ((2.54-(wind erosion rate + water erosion rate))/2.54) * 0.2) + (water erosion OM factor * 0.4) + (water erosion FO factor * 0.4)
    representative SCI = (wind erosion SCI + water erosion SCI / 2)

   */
  public static double calculateSCI(double water_erosion_rate, double water_om, double water_fo,
      double wind_erosion_rate, double wind_om, double wind_fo) {

    double er_factor = ((2.54 - (wind_erosion_rate + water_erosion_rate)) / 2.54) * 0.2;
    double water_sci = er_factor + (water_om * 0.4) + (water_fo * 0.4);
    double wind_sci = er_factor + (wind_om * 0.4) + (wind_fo * 0.4);

    return calculateSCI(water_sci, wind_sci);
  }
}