Codota Logo
NcMLReader.addAttribute
Code IndexAdd Codota to your IDE (free)

How to use
addAttribute
method
in
ucar.nc2.ncml.NcMLReader

Best Java code snippets using ucar.nc2.ncml.NcMLReader.addAttribute (Showing top 3 results out of 315)

  • Common ways to obtain NcMLReader
private void myMethod () {
NcMLReader n =
  • Codota Iconnew NcMLReader()
  • Smart code suggestions by Codota
}
origin: edu.ucar/netcdf

try {
 ucar.ma2.Array values = readAttributeValues(attElem);
 addAttribute(parent, new ucar.nc2.Attribute(name, values));
} catch (RuntimeException e) {
 errlog.format("NcML new Attribute Exception: %s att=%s in=%s%n", e.getMessage(), name, parent);
 try {
  ucar.ma2.Array values = readAttributeValues(attElem);
  addAttribute(parent, new ucar.nc2.Attribute(name, values));
 } catch (RuntimeException e) {
  errlog.format("NcML existing Attribute Exception: %s att=%s in=%s%n", e.getMessage(), name, parent);
 addAttribute(parent, new ucar.nc2.Attribute(name, att.getValues()));
origin: edu.ucar/cdm

try {
 ucar.ma2.Array values = readAttributeValues(attElem);
 addAttribute(parent, new ucar.nc2.Attribute(name, values));
} catch (RuntimeException e) {
 errlog.format("NcML new Attribute Exception: %s att=%s in=%s%n", e.getMessage(), name, parent);
 try {
  ucar.ma2.Array values = readAttributeValues(attElem);
  addAttribute(parent, new ucar.nc2.Attribute(name, values));
 } catch (RuntimeException e) {
  errlog.format("NcML existing Attribute Exception: %s att=%s in=%s%n", e.getMessage(), name, parent);
 Array oldval = oldatt.getValues();
 if (oldval != null)
  addAttribute(parent, new ucar.nc2.Attribute(name, oldatt.getValues()));
 else {  // weird corner case of attribute with no value - must use the type
  String unS = attElem.getAttributeValue("isUnsigned");
  String typeS = attElem.getAttributeValue("type");
  DataType type = typeS == null ? DataType.STRING : DataType.getType(typeS);
  addAttribute(parent, new ucar.nc2.Attribute(name, type, isUnsigned));
origin: Unidata/thredds

try {
 ucar.ma2.Array values = readAttributeValues(attElem);
 addAttribute(parent, new ucar.nc2.Attribute(name, values));
} catch (RuntimeException e) {
 errlog.format("NcML new Attribute Exception: %s att=%s in=%s%n", e.getMessage(), name, parent);
 try {
  addAttribute(parent, new ucar.nc2.Attribute(name, values));
 } catch (RuntimeException e) {
  errlog.format("NcML existing Attribute Exception: %s att=%s in=%s%n", e.getMessage(), name, parent);
 Array oldval = oldatt.getValues();
 if (oldval != null)
  addAttribute(parent, new ucar.nc2.Attribute(name, oldatt.getValues()));
 else {  // weird corner case of attribute with no value - must use the type
  String unS = attElem.getAttributeValue("isUnsigned"); // deprecated but must deal with
  DataType dtype = typeS == null ? DataType.STRING : DataType.getType(typeS);
  if (isUnsignedSet) dtype = dtype.withSignedness(DataType.Signedness.UNSIGNED);
  addAttribute(parent, new ucar.nc2.Attribute(name, dtype));
ucar.nc2.ncmlNcMLReaderaddAttribute

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
  • <init>
  • 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

  • Making http requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • onCreateOptionsMenu (Activity)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Notification (javax.management)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now