V1_0.java [src/java/m/weppws/mergews] 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.weppws.mergews;

import csip.ModelDataService;
import csip.annotations.*;
import javax.ws.rs.*;

@Name("weppws-mergews")
@Description("WEPPWS-mergews - merge watersheds for NRCS reporting")
@Path("m/mergews/1.0")
@Polling(first = 2000, next = 2000)

public class V1_0 extends ModelDataService {

  @Override
  protected void preProcess() throws Exception {

  }


  /**
   * doProcess() Get input parameters from WEPP request.
   *
   * @throws Exception
   */
  @Override
  protected void doProcess() throws Exception {

  }


  /**
   * postProcess() Extract some WEPP outputs and include links to model input
   * and output files.
   *
   * @throws Exception
   */
  @Override
  protected void postProcess() throws Exception {
    double dummy = 1000;
    
    results().put("Precipitation", dummy + 1, "Average Annual Site Preciptation", "in");
    results().put("Irrigation", dummy + 2, "Average Annual Site Irrigation", "ac-in/yr");
    results().put("Runoff", dummy + 3, "Average Annual Site Runoff", "ac-in/yr");
    results().put("Hillslope Soil Loss", dummy + 4, "Average Annual rill and interrill erosion from representative hillslopes", "ton/ac/yr");
    results().put("NRCS Hillslope Soil Loss", dummy + 5, "Average Annual rill and interrill erosion for NRCS planning from representative hillslopes", "ton/ac/yr");
    results().put("Hillslope Sediment Yield", dummy + 6, "Average Annual sediment yield from representative hillslopes", "ton/ac/yr");
    results().put("Channel Soil Loss", dummy + 7, "Average Annual erosion from channel bottom and sidewalls", "ton/yr");
    results().put("NRCS Channel Soil Loss", dummy + 8, "Average Annual erosion from channel bottom and sidewalls scaled to AOI", "ton/ac/yr");
    results().put("Site Sediment Yield", dummy + 9, "Average Annual sediment yield from all channels and all hillslopes", "ton/ac/yr");
    results().put("Sediment Delivery Ratio", dummy + 10, "Sediment yield at outlet divided all detachment from hillslopea and channels", "");
    results().put("Channel Soil Loss Probability", dummy + 11, "Probability of channel soil loss above a specified threshold", "%");
    results().put("Channel Volume Change", dummy + 12, "Total change in channel sizes due to bottom and sidewall soil loss", "ft^3");
    results().put("AOI", dummy + 13, "Area of interest size", "ac");
  }

}