public void update() { synchronized (lock) { boolean forceProtoLocal = forceProto; if (fmrcDataset == null) { try { fmrcDataset = new FmrcDataset(config); } catch (Throwable t) { logger.error(config.spec + ": initial fmrcDataset creation failed", t); // throw new RuntimeException(t); } } try { FmrcInv fmrcInv = makeFmrcInv(null); fmrcDataset.setInventory(fmrcInv, forceProtoLocal); logger.debug(config.spec + ": make new Dataset, new proto = {}", forceProtoLocal); if (forceProtoLocal) forceProto = false; this.lastInvChanged = System.currentTimeMillis(); if (forceProtoLocal) this.lastProtoChanged = this.lastInvChanged; } catch (Throwable t) { logger.error(config.spec + ": makeFmrcInv failed", t); // throw new RuntimeException(t); } } }
public void showDetails(Formatter out) throws IOException { checkNeeded(false); fmrcDataset.showDetails(out); }
public GridDataset getConstantOffsetDataset(double hour) throws IOException { checkNeeded(false); GridDataset gds = fmrcDataset.getConstantOffsetDataset(hour); return gds; }
public GridDataset getRunTimeDataset(CalendarDate run) throws IOException { checkNeeded(false); GridDataset gds = fmrcDataset.getRunTimeDataset(run); return gds; }
public GridDataset getConstantForecastDataset(CalendarDate time) throws IOException { checkNeeded(false); GridDataset gds = fmrcDataset.getConstantForecastDataset(time); return gds; }
public GridDataset getDatasetBest() throws IOException { checkNeeded(false); GridDataset gds = fmrcDataset.getBest(); return gds; }
public GridDataset getDatasetBest(FeatureCollectionConfig.BestDataset bd) throws IOException { checkNeeded(false); GridDataset gds = fmrcDataset.getBest(bd); return gds; }
// LOOK : all of these guys could use ehcache public GridDataset getDataset2D(NetcdfDataset result) throws IOException { checkNeeded(false); GridDataset gds = fmrcDataset.getNetcdfDataset2D(result); return gds; }
// for making offset datasets public double[] getForecastOffsets() throws IOException { checkNeeded(false); // ?? return fmrcDataset.getForecastOffsets(); }
public List<CalendarDate> getForecastDates() throws IOException { checkNeeded(false); // ?? return fmrcDataset.getForecastDates(); }
public CalendarDateRange getDateRangeForOffset(double offset) { return fmrcDataset.getDateRangeForOffset(offset); }
public CalendarDateRange getDateRangeForRun(CalendarDate run) { return fmrcDataset.getDateRangeForRun(run); }