/** * Use NCML to directly modify the dataset * * @param targetDS referenced dataset * @param parentElem parent element - usually the aggregation element of the ncml * @return new dataset with the merged info * @throws IOException on read error */ static public NetcdfDataset mergeNcMLdirect(NetcdfDataset targetDS, Element parentElem) throws IOException { NcMLReader reader = new NcMLReader(); reader.readGroup(targetDS, targetDS, null, null, parentElem); targetDS.finish(); return targetDS; }
/** * Use NCML to directly modify the dataset * * @param targetDS referenced dataset * @param parentElem parent element - usually the aggregation element of the ncml * @return new dataset with the merged info * @throws IOException on read error */ static public NetcdfDataset mergeNcMLdirect(NetcdfDataset targetDS, Element parentElem) throws IOException { NcMLReader reader = new NcMLReader(); reader.readGroup(targetDS, targetDS, null, null, parentElem); targetDS.finish(); return targetDS; }
/** * Use NCML to directly modify the dataset * * @param targetDS referenced dataset * @param parentElem parent element - usually the aggregation element of the ncml * @return new dataset with the merged info * @throws IOException on read error */ static public NetcdfDataset mergeNcMLdirect(NetcdfDataset targetDS, Element parentElem) throws IOException { NcMLReader reader = new NcMLReader(); reader.readGroup(targetDS, targetDS, null, null, parentElem); targetDS.finish(); return targetDS; }
/** * Use NCML to modify the referenced dataset, create a new dataset with the merged info * Used to wrap each dataset of an aggregation before its aggregated * * @param ref referenced dataset * @param parentElem parent element - usually the aggregation element of the ncml * @return new dataset with the merged info * @throws IOException on read error */ static public NetcdfDataset mergeNcML(NetcdfFile ref, Element parentElem) throws IOException { NetcdfDataset targetDS = new NetcdfDataset(ref, null); // no enhance NcMLReader reader = new NcMLReader(); reader.readGroup(targetDS, targetDS, null, null, parentElem); targetDS.finish(); return targetDS; }
/** * Use NCML to modify the referenced dataset, create a new dataset with the merged info * Used to wrap each dataset of an aggregation before its aggregated * * @param ref referenced dataset * @param parentElem parent element - usually the aggregation element of the ncml * @return new dataset with the merged info * @throws IOException on read error */ static public NetcdfDataset mergeNcML(NetcdfFile ref, Element parentElem) throws IOException { NetcdfDataset targetDS = new NetcdfDataset(ref, null); // no enhance NcMLReader reader = new NcMLReader(); reader.readGroup(targetDS, targetDS, null, null, parentElem); targetDS.finish(); return targetDS; }
/** * Use NCML to modify the referenced dataset, create a new dataset with the merged info * Used to wrap each dataset of an aggregation before its aggregated * * @param ref referenced dataset * @param parentElem parent element - usually the aggregation element of the ncml * @return new dataset with the merged info * @throws IOException on read error */ static public NetcdfDataset mergeNcML(NetcdfFile ref, Element parentElem) throws IOException { NetcdfDataset targetDS = new NetcdfDataset(ref, null); // no enhance NcMLReader reader = new NcMLReader(); reader.readGroup(targetDS, targetDS, null, null, parentElem); targetDS.finish(); return targetDS; }
readGroup(targetDS, refds, null, null, netcdfElem); String errors = errlog.toString(); if (errors.length() > 0)
readGroup(targetDS, refds, null, null, netcdfElem); String errors = errlog.toString(); if (errors.length() > 0)
readGroup(targetDS, refds, null, null, netcdfElem); String errors = errlog.toString(); if (errors.length() > 0)
readGroup(newds, refds, g, refg, gElem); if (debugConstruct) System.out.println(" add group = " + g.getFullName());
readGroup(newds, refds, g, refg, gElem); if (debugConstruct) System.out.println(" add group = " + g.getFullName());
readGroup(newds, refds, g, refg, gElem); if (debugConstruct) System.out.println(" add group = " + g.getFullName());