V4_0.java [src/java/m/wepp] Revision: 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.wepp;
import csip.annotations.*;
import static csip.annotations.ResourceType.*;
import static csip.annotations.State.RELEASED;
import javax.ws.rs.*;
/**
*
* <p>
* WEPP This implements the CSIP WEPP service. To build the input files for WEPP
* several external c++ and FORTRAN programs are used:</p>
* <ul>
* <li>wepphillslopeserv.exe - a c++ program that takes a high-level description
* of the WEPP run and creates WEPP input files. It handles getting the input
* files into multiple OFE format if required.
* <li>wepp.exe - The FORTRAN WEPP model setup and run by wepphillslopeserv.exe
* </ul>
* <p>
* The data resources referenced include:</p>
* <ul>
* <li>defaultInitCond.txt - WEPP managements require a set of initial
* conditions parameters. This is one supplied for all runs.
* <li>defaultInitCondCrop.txt - This is the set of crop parameters that go with
* the initial condition.
* <li>defaultPereInitCond.txt - This initial condition is used for perennial
* crops.
* <li>defaultPereInitCondCrop.txt - This is the initial perennial crop that is
* referenced by the initial condition.
* </ul>
*
* @author jf, od
*/
@Name("wepp2021")
@Description("WEPP model CSIP REST service CRLMOD version - 11/24/2021")
@State(RELEASED)
@Path("m/wepp/4.0")
@Polling(first = 2000, next = 2000)
// Executables & File parameter
@Resource(file = "/bin/${arch}/wepphillslopeserv.exe", id = "weppserv", type = EXECUTABLE)
@Resource(file = "/bin/${arch}/wepp_2019.exe", id = "wepp", type = EXECUTABLE)
// Files
@Resource(file = "/data/defaultInitCondCrop.txt", id = "defInitCondCrop")
@Resource(file = "/data/defaultPereInitCondCrop.txt", id = "defPereInitCondCrop")
@Resource(file = "/data/woodyini.json", id = "woodyInitCondSettings")
// Output to capture
@Resource(file = "*stdout.txt *stderr.txt", type = OUTPUT)
public class V4_0 extends V2_0 {
public V4_0() {
modelVersion = "4";
}
}