congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
NcMLReader.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
ucar.nc2.ncml.NcMLReader
constructor

Best Java code snippets using ucar.nc2.ncml.NcMLReader.<init> (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: Unidata/thredds

/**
 * Read NcML from a JDOM Document, and pass in the name of the dataset. Used to augment datasetScan with NcML
 *
 * @param ncmlLocation the URL location string of the NcML document, used as a unique name for caching purposes.
 * @param netcdfElem   the JDOM Document's root (netcdf) element
 * @param referencedDatasetUri the URL location string of the underlying dataset, which overrides anything in netcdfElem.
 *                             prepend with "file:" to eliminate reletive resolving against ncmlLocation
 * @param cancelTask   allow user to cancel the task; may be null
 * @return the resulting NetcdfDataset
 * @throws IOException on read error, or bad referencedDatasetUri URI
 */
static public NetcdfDataset readNcML(String ncmlLocation, Element netcdfElem, String referencedDatasetUri, CancelTask cancelTask) throws IOException {
 NcMLReader reader = new NcMLReader();
 return reader._readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
}
origin: edu.ucar/cdm

/**
 * Read NcML from a JDOM Document, and pass in the name of the dataset. Used to augment datasetScan with NcML
 *
 * @param ncmlLocation the URL location string of the NcML document, used as a unique name for caching purposes.
 * @param netcdfElem   the JDOM Document's root (netcdf) element
 * @param referencedDatasetUri the URL location string of the underlying dataset, which overrides anything in netcdfElem.
 *                             prepend with "file:" to eliminate reletive resolving against ncmlLocation
 * @param cancelTask   allow user to cancel the task; may be null
 * @return the resulting NetcdfDataset
 * @throws IOException on read error, or bad referencedDatasetUri URI
 */
static public NetcdfDataset readNcML(String ncmlLocation, Element netcdfElem, String referencedDatasetUri, CancelTask cancelTask) throws IOException {
 NcMLReader reader = new NcMLReader();
 return reader._readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
}
origin: edu.ucar/netcdf

/**
 * 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;
}
origin: Unidata/thredds

/**
 * 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;
}
origin: edu.ucar/cdm

/**
 * 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;
}
origin: edu.ucar/cdm

/**
 * 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;
}
origin: edu.ucar/cdm

NcMLReader reader = new NcMLReader();
NetcdfDataset ncd = reader._readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
if (debugOpen) System.out.println("***NcMLReader.readNcML result= \n" + ncd);
origin: edu.ucar/netcdf

NcMLReader reader = new NcMLReader();
NetcdfDataset ncd = reader.readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
if (debugOpen) System.out.println("***NcMLReader.readNcML result= \n" + ncd);
origin: edu.ucar/netcdf

/**
 * 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;
}
origin: Unidata/thredds

 referencedDatasetUri = AliasTranslator.translateAlias(referencedDatasetUri);
NcMLReader reader = new NcMLReader();
NetcdfDataset ncd = reader._readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
if (debugOpen) System.out.println("***NcMLReader.readNcML result= \n" + ncd);
origin: edu.ucar/netcdf

/**
 * Read NcML from a JDOM Document, and construct a NetcdfDataset.
 *
 * @param ncmlLocation the URL location string of the NcML document, used to resolve reletive path of the referenced dataset,
 *                     or may be just a unique name for caching purposes.
 * @param netcdfElem   the JDOM Document's root (netcdf) element
 * @param cancelTask   allow user to cancel the task; may be null
 * @return the resulting NetcdfDataset
 * @throws IOException on read error, or bad referencedDatasetUri URI
 */
static public NetcdfDataset readNcML(String ncmlLocation, Element netcdfElem, CancelTask cancelTask) throws IOException {
 // the ncml probably refers to another dataset, but doesnt have to
 String referencedDatasetUri = netcdfElem.getAttributeValue("location");
 if (referencedDatasetUri == null)
  referencedDatasetUri = netcdfElem.getAttributeValue("url");
 NcMLReader reader = new NcMLReader();
 return reader.readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
}
origin: Unidata/thredds

/**
 * 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;
}
origin: edu.ucar/cdm

/**
 * Read NcML from a JDOM Document, and construct a NetcdfDataset.
 *
 * @param ncmlLocation the URL location string of the NcML document, used to resolve reletive path of the referenced dataset,
 *                     or may be just a unique name for caching purposes.
 * @param netcdfElem   the JDOM Document's root (netcdf) element
 * @param cancelTask   allow user to cancel the task; may be null
 * @return the resulting NetcdfDataset
 * @throws IOException on read error, or bad referencedDatasetUri URI
 */
static public NetcdfDataset readNcML(String ncmlLocation, Element netcdfElem, CancelTask cancelTask) throws IOException {
 // the ncml probably refers to another dataset, but doesnt have to
 String referencedDatasetUri = netcdfElem.getAttributeValue("location");
 if (referencedDatasetUri == null)
  referencedDatasetUri = netcdfElem.getAttributeValue("url");
 NcMLReader reader = new NcMLReader();
 return reader._readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
}
origin: edu.ucar/cdm

NcMLReader reader = new NcMLReader();
reader.readNetcdf(ncDataset.getLocation(), ncDataset, ncDataset, netcdfElem, cancelTask);
if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset);
origin: Unidata/thredds

NcMLReader reader = new NcMLReader();
reader.readNetcdf(ncDataset.getLocation(), ncDataset, ncDataset, netcdfElem, cancelTask);
if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset);
origin: edu.ucar/netcdf

NcMLReader reader = new NcMLReader();
reader.readNetcdf(ncDataset.getLocation(), ncDataset, ncDataset, netcdfElem, cancelTask);
if (debugOpen) System.out.println("***NcMLReader.wrapNcML result= \n" + ncDataset);
origin: edu.ucar/cdm

/**
 * 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);
}
origin: edu.ucar/netcdf

/**
 * 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);
}
origin: Unidata/thredds

/**
 * 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);
}
origin: Unidata/thredds

/**
 * Read NcML from a JDOM Document, and construct a NetcdfDataset.
 *
 * @param ncmlLocation the URL location string of the NcML document, used to resolve reletive path of the referenced dataset,
 *                     or may be just a unique name for caching purposes.
 * @param netcdfElem   the JDOM Document's root (netcdf) element
 * @param cancelTask   allow user to cancel the task; may be null
 * @return the resulting NetcdfDataset
 * @throws IOException on read error, or bad referencedDatasetUri URI
 */
static public NetcdfDataset readNcML(String ncmlLocation, Element netcdfElem, CancelTask cancelTask) throws IOException {
 // the ncml probably refers to another dataset, but doesnt have to
 String referencedDatasetUri = netcdfElem.getAttributeValue("location");
 if (referencedDatasetUri == null)
  referencedDatasetUri = netcdfElem.getAttributeValue("url");
 if (referencedDatasetUri != null)
  referencedDatasetUri = AliasTranslator.translateAlias(referencedDatasetUri);
 NcMLReader reader = new NcMLReader();
 return reader._readNcML(ncmlLocation, referencedDatasetUri, netcdfElem, cancelTask);
}
ucar.nc2.ncmlNcMLReader<init>

Popular methods of NcMLReader

  • readNcML
    Read an NcML file from a URL location, and construct a NetcdfDataset.
  • wrapNcML
    Use NCML to modify the dataset, getting NcML from a URL
  • wrapNcMLresource
    Use NCML to modify a dataset, getting the NcML document as a resource stream. Uses ClassLoader.getRe
  • addAttribute
  • cmdRemove
  • findAttribute
  • mergeNcML
    Use NCML to modify the referenced dataset, create a new dataset with the merged info Used to wrap ea
  • mergeNcMLdirect
    Use NCML to directly modify the dataset
  • readAgg
  • readAtt
    Read an NcML attribute element.
  • readAttributeValues
    Parse the values element
  • readDim
    Read an NcML dimension element.
  • readAttributeValues,
  • readDim,
  • readGroup,
  • readNetcdf,
  • readValues,
  • readVariable,
  • readVariableNested,
  • readVariableNew,
  • removeAttribute

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JLabel (javax.swing)
  • JTextField (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now