/** * @file ThreshForOneObar.cc */ #include "ThreshForOneObar.hh" #include "DbThresh.hh" #include #include //------------------------------------------------------------------------- static Grid _convert(const Grid2d &g) { vector data = g.getData(); Grid ret(g.getName(), "none", data, g.getNx(), g.getNy(), g.getMissing()); return ret; } //------------------------------------------------------------------------- ThreshForOneObar::ThreshForOneObar(const ObarThreshParms &obarParm, const ParmsEnsLookupGen &parm) : _oparms(obarParm), _parms(parm) { _ensembleSum = Grid(obarParm._griddedFieldName, "none", parm._projExtended.pNx, parm._projExtended.pNy, -99.99); } //------------------------------------------------------------------------- void ThreshForOneObar::createThresholdGrids(const time_t &genTime, int lt, const std::vector &dbThresh) { // for each field (dbThresh), create a grid at this obar _thresholdGrids.clear(); _doOutputThresholdsGrid.clear(); for (size_t i=0; i &values, int index, int x, int y) { bool status = true; for (size_t i=0; i