///*
// * JGrass - Free Open Source Java GIS http://www.jgrass.org
// * (C) HydroloGIS - www.hydrologis.com
// *
// * This library is free software; you can redistribute it and/or modify it under
// * the terms of the GNU Library General Public License as published by the Free
// * Software Foundation; either version 2 of the License, or (at your option) any
// * later version.
// *
// * This library is distributed in the hope that it will be useful, but WITHOUT
// * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// * FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
// * details.
// *
// * You should have received a copy of the GNU Library General Public License
// * along with this library; if not, write to the Free Foundation, Inc., 59
// * Temple Place, Suite 330, Boston, MA 02111-1307 USA
// */
//package org.jgrasstools.hortonmachine.models.hm;
//
//import org.geotools.coverage.grid.GridCoverage2D;
//import org.jgrasstools.gears.io.rasterreader.OmsRasterReader;
//import org.jgrasstools.gears.io.rasterwriter.OmsRasterWriter;
//import org.jgrasstools.gears.utils.HMTestCase;
//import org.jgrasstools.hortonmachine.modules.hydrogeomorphology.debristriggers.OmsDebrisTriggerCnr;
///**
// * Test for the {@link OmsDebrisTriggerCnr} module.
// *
// * @author Andrea Antonello (www.hydrologis.com)
// */
//public class TestDebrisTriggerCnr extends HMTestCase {
// public void testDebrisTrigger() throws Exception {
//
// String baseFolder = "";
// String baseFolder1 = "";
// String inRasterPath1 = baseFolder + "pit";
// String inRasterPath2 = baseFolder1 + "netspi100";
// String inRasterPath3 = baseFolder + "netshp2fl";
// String outRasterPath = baseFolder + "triggers100";
//
// GridCoverage2D elev = OmsRasterReader.readRaster(inRasterPath1);
// GridCoverage2D net = OmsRasterReader.readRaster(inRasterPath2);
// GridCoverage2D tca = OmsRasterReader.readRaster(inRasterPath3);
//
// OmsDebrisTriggerCnr dt = new OmsDebrisTriggerCnr();
// dt.inElev = elev;
// dt.inNet = net;
// dt.inTca = tca;
// // dt.pGradthres = 38;
// // dt.pTcathres = 10;
// dt.pm = pm;
// dt.process();
//
// GridCoverage2D triggers = dt.outTriggers;
//
// OmsRasterWriter.writeRaster(outRasterPath, triggers);
//
// }
//}