Codota Logo
Variable.getNameAndDimensions
Code IndexAdd Codota to your IDE (free)

How to use
getNameAndDimensions
method
in
ucar.nc2.Variable

Best Java code snippets using ucar.nc2.Variable.getNameAndDimensions (Showing top 20 results out of 315)

  • Common ways to obtain Variable
private void myMethod () {
Variable v =
  • Codota IconNetcdfFile ds;String fullNameEscaped;ds.findVariable(fullNameEscaped)
  • Codota IconNetcdfDataset ds;String obsTimeVName;ds.findVariable(obsTimeVName)
  • Codota IconGroup group;String varShortName;group.findVariable(varShortName)
  • Smart code suggestions by Codota
}
origin: edu.ucar/cdm

/**
 * Get the display name plus the dimensions, eg 'name(dim1, dim2)'
 *
 * @param buf add info to this StringBuilder
 */
public void getNameAndDimensions(StringBuilder buf) {
 getNameAndDimensions(buf, true, false);
}
origin: Unidata/thredds

/**
 * Get the display name plus the dimensions, eg 'name(dim1, dim2)'
 *
 * @param buf add info to this StringBuilder
 */
public void getNameAndDimensions(StringBuilder buf) {
 getNameAndDimensions(buf, true, false);
}
origin: edu.ucar/netcdf

/**
 * Get the display name plus the dimensions, eg 'name(dim1, dim2)'
 * @param buf add info to this StringBuilder
 */
public void getNameAndDimensions(StringBuilder buf) {
 getNameAndDimensions(buf, true, false);
}
origin: edu.ucar/netcdf

/**
 * Get the display name plus the dimensions, eg 'float name(dim1, dim2)'
 * @return display name plus the dimensions
 */
public String getNameAndDimensions() {
 Formatter buf = new Formatter();
 getNameAndDimensions(buf, true, false);
 return buf.toString();
}
origin: edu.ucar/cdm

/**
 * Get the display name plus the dimensions, eg 'float name(dim1, dim2)'
 *
 * @param strict strictly comply with ncgen syntax, with name escaping. otherwise, get extra info, no escaping
 * @return display name plus the dimensions
 */
public String getNameAndDimensions(boolean strict) {
 Formatter buf = new Formatter();
 getNameAndDimensions(buf, false, strict);
 return buf.toString();
}
origin: Unidata/thredds

/**
 * Get the display name plus the dimensions, eg 'float name(dim1, dim2)'
 *
 * @return display name plus the dimensions
 */
public String getNameAndDimensions() {
 Formatter buf = new Formatter();
 getNameAndDimensions(buf, true, false);
 return buf.toString();
}
origin: Unidata/thredds

/**
 * Get the display name plus the dimensions, eg 'float name(dim1, dim2)'
 *
 * @param strict strictly comply with ncgen syntax, with name escaping. otherwise, get extra info, no escaping
 * @return display name plus the dimensions
 */
public String getNameAndDimensions(boolean strict) {
 Formatter buf = new Formatter();
 getNameAndDimensions(buf, false, strict);
 return buf.toString();
}
origin: edu.ucar/netcdf

/**
 * Get the display name plus the dimensions, eg 'float name(dim1, dim2)'
 * @param strict strictly comply with ncgen syntax, with name escaping. otherwise, get extra info, no escaping
 * @return display name plus the dimensions
 */
public String getNameAndDimensions(boolean strict) {
 Formatter buf = new Formatter();
 getNameAndDimensions(buf, false, strict);
 return buf.toString();
}
origin: Unidata/thredds

/**
 * Get the display name plus the dimensions, eg 'name(dim1, dim2)'
 *
 * @param buf add info to this StringBuffer
 * @deprecated use getNameAndDimensions(StringBuilder buf)
 */
public void getNameAndDimensions(StringBuffer buf) {
 Formatter proxy = new Formatter();
 getNameAndDimensions(proxy, true, false);
 buf.append(proxy.toString());
}
origin: edu.ucar/netcdf

/**
 * Get the display name plus the dimensions, eg 'name(dim1, dim2)'
 * @param buf add info to this StringBuffer
 * @deprecated use getNameAndDimensions(StringBuilder buf)
 */
public void getNameAndDimensions(StringBuffer buf) {
 Formatter proxy = new Formatter();
 getNameAndDimensions(proxy, true, false);
 buf.append(proxy.toString());
}
origin: edu.ucar/netcdf

/**
 * Add display name plus the dimensions to the StringBuffer
 * @param buf add info to this
 * @param useFullName use full name else short name. strict = true implies short name
 * @param strict strictly comply with ncgen syntax, with name escaping. otherwise, get extra info, no escaping
 */
public void getNameAndDimensions(StringBuilder buf, boolean useFullName, boolean strict) {
 Formatter proxy = new Formatter();
 getNameAndDimensions(proxy, useFullName, strict);
 buf.append(proxy.toString());
}
origin: apache/tika

xhtml.element("p", String.valueOf(var.getDataType()) + var.getNameAndDimensions() + ";");
for(Attribute element : var.getAttributes()){
  xhtml.element("li", " :" + element + ";");
origin: Unidata/thredds

private String debugMissingVar(NetcdfFile proto, NetcdfFile result) {
 Formatter f = new Formatter();
 f.format("%nresult dataset %s%n", result.getLocation());
 for (Variable v: result.getVariables())
  f.format(" %s%n", v.getNameAndDimensions());
 f.format("%n");
 f.format("proto dataset %s%n", proto.getLocation());
 for (Variable v: proto.getVariables())
  f.format(" %s%n", v.getNameAndDimensions());
 return f.toString();
}
origin: edu.ucar/netcdf

private String debugMissingVar(NetcdfFile proto, NetcdfFile result) {
 Formatter f = new Formatter();
 f.format("%nresult dataset %s%n", result.getLocation());
 for (Variable v: result.getVariables())
  f.format(" %s%n", v.getNameAndDimensions());
 f.format("%n");
 f.format("proto dataset %s%n", proto.getLocation());
 for (Variable v: proto.getVariables())
  f.format(" %s%n", v.getNameAndDimensions());
 return f.toString();
}
origin: apache/tika

for (Variable var : ncFile.getVariables()) {
  xhtml.startElement("li");
  xhtml.characters(var.getDataType() + " " + var.getNameAndDimensions());
  xhtml.newline();
  List<Attribute> attributes = var.getAttributes();
origin: edu.ucar/cdm

private void compareVariableData(Variable var1, Variable var2, boolean showCompare, boolean justOne) throws IOException {
 Array data1 = var1.read();
 Array data2 = var2.read();
 if (showCompare)
  f.format(" compareArrays %s unlimited=%s size=%d%n", var1.getNameAndDimensions(), var1.isUnlimited(), data1.getSize());
 compareData(var1.getFullName(), data1, data2, justOne);
 if (showCompare) f.format("   ok%n");
}
origin: edu.ucar/netcdf

private void compareVariableData(Variable var1, Variable var2, boolean showCompare, boolean justOne) throws IOException {
 Array data1 = var1.read();
 Array data2 = var2.read();
 if (showCompare)
  f.format(" compareArrays %s unlimited=%s size=%d%n", var1.getNameAndDimensions(), var1.isUnlimited(), data1.getSize());
 compareData(var1.getFullName(), data1, data2, justOne);
 if (showCompare) f.format("   ok%n");
}
origin: Unidata/thredds

private float testReadScalar(Variable v) throws IOException {
 if (show) System.out.printf(" read %s%n", v.getNameAndDimensions());
 assert (null != v);
 Array a = v.read();
 assert (null != a);
 IndexIterator ii = a.getIndexIterator();
 return ii.getFloatNext();
}
origin: Unidata/thredds

private void testReadData(Variable v) throws IOException {
 if (show) System.out.printf(" read %s%n", v.getNameAndDimensions());
 assert (null != v);
 assert (null != v.getDimension(0));
 Array a = v.read();
 assert (null != a);
 assert (v.getSize() == a.getSize());
}
origin: Unidata/thredds

private void check(NetcdfFile ncfile, int n) throws IOException, InvalidRangeException {
 Variable v = ncfile.findVariable("time");
 assert v != null;
 System.out.printf(" time= %s%n", v.getNameAndDimensions());
 assert v.getSize() == n : v.getSize();
 v = ncfile.findVariable("eta");
 assert v != null;
 assert v.getRank() == 3 : v.getRank();
}
ucar.nc2VariablegetNameAndDimensions

Javadoc

Get the display name plus the dimensions, eg 'float name(dim1, dim2)'

Popular methods of Variable

  • read
    Read a section of the data for this Variable and return a memory resident Array. The Array has the s
  • getDataType
    Get the data type of the Variable.
  • findAttribute
    Find an Attribute by name.
  • getFullName
  • getRank
    Get the number of dimensions of the Variable.
  • getAttributes
    Returns the set of attributes for this variable.
  • getDimensions
    Get the list of dimensions used by this variable. The most slowly varying (leftmost for Java and C p
  • getShape
    Get the size of the ith dimension
  • addAttribute
    Add new or replace old if has same name
  • getDimension
  • getSize
    Get the total number of elements in the Variable. If this is an unlimited Variable, will use the cur
  • getShortName
  • getSize,
  • getShortName,
  • getUnitsString,
  • getSPobject,
  • <init>,
  • setSPobject,
  • getDimensionsString,
  • getElementSize,
  • isUnsigned

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collectors (java.util.stream)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
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