public String getFileTypeDescription() { // LOOK - should cache ?? Dataset ds = null; NetcdfFile ncfile = null; try { ds = getTypicalDataset(); ncfile = ds.acquireFile(null); return ncfile.getFileTypeDescription(); } catch (Exception e) { logger.error("failed to open "+ds); } finally { if (ds != null) try { ds.close(ncfile); } catch (IOException e) { logger.error("failed to close "+ds); } } return "N/A"; }
public int compareTo(Object o) { if (coordValueDate == null) return super.compareTo(o); else { DatasetOuterDimension other = (DatasetOuterDimension) o; return coordValueDate.compareTo(other.coordValueDate); } } }
map.put(ds.getId(), ds);
out.print("</cache>\n"); if (logger.isDebugEnabled()) logger.debug(" wrote array = " + pv.varName + " nelems= "+data.getSize()+" for "+dataset.getLocation());
protected void buildNetcdfDataset(CancelTask cancelTask) throws IOException { NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close(typical); // clean up throw new IllegalArgumentException("No existing coordinate variable for joinExisting on " + getLocation()); typicalDataset.close(typical);
out.print("</cache>\n"); if (logger.isDebugEnabled()) logger.debug(" wrote array = " + pv.varName + " nelems= " + data.getSize() + " for " + dataset.getLocation());
map.put(ds.getId(), ds);
out.print("</cache>\n"); if (logger.isDebugEnabled()) logger.debug(" wrote array = " + pv.varName + " nelems= "+data.getSize()+" for "+dataset.getLocation());
protected void buildNetcdfDataset(CancelTask cancelTask) throws IOException { NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close( typical); // clean up throw new IllegalArgumentException("No existing coordinate variable for joinExisting on "+getLocation()); typicalDataset.close( typical);
protected void buildNetcdfDataset(CancelTask cancelTask) throws IOException { NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close( typical); // clean up throw new IllegalArgumentException("No existing coordinate variable for joinExisting on "+getLocation()); typicalDataset.close( typical);
map.put(ds.getId(), ds);
NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close( typical); // close it because we use DatasetProxyReader to acquire
Array varData = vnested.read(mainv, cancelTask); if ((cancelTask != null) && cancelTask.isCancel()) return null;
Array varData = vnested.read(mainv, cancelTask); if ((cancelTask != null) && cancelTask.isCancel()) return null;
Array varData = vnested.read(mainv, cancelTask); if ((cancelTask != null) && cancelTask.isCancel()) return null;
NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close( typical); // close it because we use DatasetProxyReader to acquire
NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close(typical); // close it because we use DatasetProxyReader to acquire */
NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close( typical); // close it because we use DatasetProxyReader to acquire
NetcdfFile typical = typicalDataset.acquireFile(null); DatasetConstructor.transferDataset(typical, ncDataset, null); typicalDataset.close(typical); // close it because we use DatasetProxyReader to acquire
resultPos, nestedJoinRange, dod.aggStart, dod.aggEnd, dod.ncoord, dod.aggStart / 8.0, vnested.getLocation()); Array varData = read(dod); if (varData == null)