reader.readNetcdf(ncDataset.getLocation(), ncDataset, ncDataset, netcdfElem, cancelTask); if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset);
reader.readNetcdf(ncDataset.getLocation(), ncDataset, ncDataset, netcdfElem, cancelTask); if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset);
reader.readNetcdf(ncDataset.getLocation(), ncDataset, ncDataset, netcdfElem, cancelTask); if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset);
/** * Use NCML to modify the dataset, getting NcML from a URL * * @param ncDataset modify this dataset * @param ncmlLocation URL location of NcML * @param cancelTask allow user to cancel task; may be null * @throws IOException on read error */ static public void wrapNcML(NetcdfDataset ncDataset, String ncmlLocation, CancelTask cancelTask) throws IOException { org.jdom2.Document doc; try { SAXBuilder builder = new SAXBuilder(); if (debugURL) System.out.println(" NetcdfDataset URL = <" + ncmlLocation + ">"); doc = builder.build(ncmlLocation); } catch (JDOMException e) { throw new IOException(e.getMessage()); } if (debugXML) System.out.println(" SAXBuilder done"); if (showParsedXML) { XMLOutputter xmlOut = new XMLOutputter(); System.out.println("*** NetcdfDataset/showParsedXML = \n" + xmlOut.outputString(doc) + "\n*******"); } Element netcdfElem = doc.getRootElement(); NcMLReader reader = new NcMLReader(); reader.readNetcdf(ncmlLocation, ncDataset, ncDataset, netcdfElem, cancelTask); if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset); }
/** * Use NCML to modify the dataset, getting NcML from a URL * * @param ncDataset modify this dataset * @param ncmlLocation URL location of NcML * @param cancelTask allow user to cancel task; may be null * @throws IOException on read error */ static public void wrapNcML(NetcdfDataset ncDataset, String ncmlLocation, CancelTask cancelTask) throws IOException { org.jdom2.Document doc; try { SAXBuilder builder = new SAXBuilder(); if (debugURL) System.out.println(" NetcdfDataset URL = <" + ncmlLocation + ">"); doc = builder.build(ncmlLocation); } catch (JDOMException e) { throw new IOException(e.getMessage()); } if (debugXML) System.out.println(" SAXBuilder done"); if (showParsedXML) { XMLOutputter xmlOut = new XMLOutputter(); System.out.println("*** NetcdfDataset/showParsedXML = \n" + xmlOut.outputString(doc) + "\n*******"); } Element netcdfElem = doc.getRootElement(); NcMLReader reader = new NcMLReader(); reader.readNetcdf(ncmlLocation, ncDataset, ncDataset, netcdfElem, cancelTask); if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset); }
/** * Use NCML to modify the dataset, getting NcML from a URL * * @param ncDataset modify this dataset * @param ncmlLocation URL location of NcML * @param cancelTask allow user to cancel task; may be null * @throws IOException on read error */ static public void wrapNcML(NetcdfDataset ncDataset, String ncmlLocation, CancelTask cancelTask) throws IOException { org.jdom2.Document doc; try { SAXBuilder builder = new SAXBuilder(); if (debugURL) System.out.println(" NetcdfDataset URL = <" + ncmlLocation + ">"); doc = builder.build(ncmlLocation); } catch (JDOMException e) { throw new IOException(e.getMessage()); } if (debugXML) System.out.println(" SAXBuilder done"); if (showParsedXML) { XMLOutputter xmlOut = new XMLOutputter(); System.out.println("*** NetcdfDataset/showParsedXML = \n" + xmlOut.outputString(doc) + "\n*******"); } Element netcdfElem = doc.getRootElement(); NcMLReader reader = new NcMLReader(); reader.readNetcdf(ncmlLocation, ncDataset, ncDataset, netcdfElem, cancelTask); if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset); }
readNetcdf(ncmlLocation, targetDS, refds, netcdfElem, cancelTask);
readNetcdf(ncmlLocation, targetDS, refds, netcdfElem, cancelTask);
readNetcdf(ncmlLocation, targetDS, refds, netcdfElem, cancelTask);