Codota Logo
Dimension.getGroup
Code IndexAdd Codota to your IDE (free)

How to use
getGroup
method
in
ucar.nc2.Dimension

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

  • Common ways to obtain Dimension
private void myMethod () {
Dimension d =
  • Codota IconVariable v;v.getDimension(0)
  • Codota IconNetcdfDataset ds;String str;ds.findDimension(str)
  • Codota IconGroup g;String name;g.findDimension(name)
  • Smart code suggestions by Codota
}
origin: geotools/geotools

String dimName = dimension.getFullName();
Group group = dimension.getGroup();
origin: edu.ucar/cdm

@Override
public void hashCodeShow(Indent indent) {
 System.out.printf("%sDim hash = %d%n", indent, hashCode());
 System.out.printf("%s shortName '%s' = %d%n", indent, getShortName(), getShortName() == null ? -1 : getShortName().hashCode());
 System.out.printf("%s getLength %s%n", indent, getLength());
 System.out.printf("%s isUnlimited %s%n", indent, isUnlimited());
 System.out.printf("%s isVariableLength %s%n", indent, isVariableLength());
 System.out.printf("%s isShared %s%n", indent, isShared());
 if (getGroup() != null)
  System.out.printf("%s parentGroup %s = %d%n", indent, getGroup(), getGroup().hashCode());
}
origin: Unidata/thredds

@Override
public void hashCodeShow(Indent indent) {
 System.out.printf("%sDim hash = %d%n", indent, hashCode());
 System.out.printf("%s shortName '%s' = %d%n", indent, getShortName(), getShortName() == null ? -1 : getShortName().hashCode());
 System.out.printf("%s getLength %s%n", indent, getLength());
 System.out.printf("%s isUnlimited %s%n", indent, isUnlimited());
 System.out.printf("%s isVariableLength %s%n", indent, isVariableLength());
 System.out.printf("%s isShared %s%n", indent, isShared());
 if (getGroup() != null)
  System.out.printf("%s parentGroup %s = %d%n", indent, getGroup(), getGroup().hashCode());
}
origin: Unidata/thredds

private Dimension checkUnknownDims(String wantDim, List<Dimension> unknownDims, Dimension oldDim, String location) {
 for (Dimension dim : unknownDims) {
  if (dim.getShortName().equals(wantDim)) {
   int len = oldDim.getLength();
   if (len == 0) {
    dim.setUnlimited(true); // allow zero length dimension !!
   }
   dim.setLength(len); // use existing (anon) dimension
   Group parent = dim.getGroup();
   parent.addDimensionIfNotExists(dim);  // add to the parent
   unknownDims.remove(dim); // remove from list LOOK is this ok?
   log.warn("unknownDim {} length set to {}{}", wantDim, oldDim.getLength(), location);
   return dim;
  }
 }
 return null;
}
origin: edu.ucar/netcdf

private Dimension checkUnknownDims(String wantDim, List<Dimension> unknownDims, Dimension oldDim, String location) {
 for (Dimension dim : unknownDims) {
  if (dim.getShortName().equals(wantDim)) {
   int len = oldDim.getLength();
   if (len == 0)
    dim.setUnlimited( true); // allow zero length dimension !!
   dim.setLength(len); // use existing (anon) dimension
   Group parent = dim.getGroup();
   parent.addDimensionIfNotExists(dim);  // add to the parent
   unknownDims.remove(dim); // remove from list LOOK is this ok?
   log.warn("unknownDim {} length set to {}{}", new Object[] {wantDim, oldDim.getLength(), location});
   return dim;
  }
 }
 return null;
}
origin: edu.ucar/cdm

private Dimension checkUnknownDims(String wantDim, List<Dimension> unknownDims, Dimension oldDim, String location) {
 for (Dimension dim : unknownDims) {
  if (dim.getShortName().equals(wantDim)) {
   int len = oldDim.getLength();
   if (len == 0)
    dim.setUnlimited( true); // allow zero length dimension !!
   dim.setLength(len); // use existing (anon) dimension
   Group parent = dim.getGroup();
   parent.addDimensionIfNotExists(dim);  // add to the parent
   unknownDims.remove(dim); // remove from list LOOK is this ok?
   log.warn("unknownDim {} length set to {}{}", new Object[] {wantDim, oldDim.getLength(), location});
   return dim;
  }
 }
 return null;
}
origin: Unidata/thredds

Group current = dim.getGroup();
origin: edu.ucar/netcdf

Group current = dim.getGroup();
origin: edu.ucar/cdm

Group current = dim.getGroup();
origin: edu.ucar/netcdf

 /**
  * Override Object.hashCode() to implement equals.
  */
 @Override
 public int hashCode() {
if(CDMNode.OBJECTHASH) return super.hashCode(); else {
  if (hashCode == 0) {
   int result = 17;
   Group g = getGroup();
   if (g != null) result += 37 * result + g.hashCode();
   if (null != getShortName()) result += 37 * result + getShortName().hashCode();
   result += 37 * result + getLength();
   result += 37 * result + (isUnlimited() ? 0 : 1);
   result += 37 * result + (isVariableLength() ? 0 : 1);
   result += 37 * result + (isShared() ? 0 : 1);
   hashCode = result;
  }
  return hashCode;
}
 }
 private int hashCode = 0;
origin: Unidata/thredds

/**
 * Override Object.hashCode() to implement equals.
 */
@Override
public int hashCode() {
 if (hashCode == 0) {
  int result = 17;
  Group g = getGroup();
  if (g != null) result += 37 * result + g.hashCode();
  if (null != getShortName()) result += 37 * result + getShortName().hashCode();
  result += 37 * result + getLength();
  result += 37 * result + (isUnlimited() ? 0 : 1);
  result += 37 * result + (isVariableLength() ? 0 : 1);
  result += 37 * result + (isShared() ? 0 : 1);
  hashCode = result;
 }
 return hashCode;
}
origin: edu.ucar/netcdf

assert dim != null;
String name = config.structName == null ? "anon" : config.structName;
struct = new StructurePseudoDS(ds, dim.getGroup(), name, config.vars, this.dim);
break;
assert dim != null;
assert config.outerName != null;
struct = new StructurePseudo2Dim(ds, dim.getGroup(), config.structName, config.vars, this.dim, this.outer);
break;
origin: edu.ucar/cdm

/**
 * Override Object.hashCode() to implement equals.
 */
@Override
public int hashCode() {
 if (hashCode == 0) {
  int result = 17;
  Group g = getGroup();
  if (g != null) result += 37 * result + g.hashCode();
  if (null != getShortName()) result += 37 * result + getShortName().hashCode();
  result += 37 * result + getLength();
  result += 37 * result + (isUnlimited() ? 0 : 1);
  result += 37 * result + (isVariableLength() ? 0 : 1);
  result += 37 * result + (isShared() ? 0 : 1);
  hashCode = result;
 }
 return hashCode;
}
origin: edu.ucar/cdm

assert dim != null;
String name = config.structName == null ? "anon" : config.structName;
struct = new StructurePseudoDS(ds, dim.getGroup(), name, config.vars, this.dim);
break;
assert dim != null;
assert config.outerName != null;
struct = new StructurePseudo2Dim(ds, dim.getGroup(), config.structName, config.vars, this.dim, this.outer);
break;
origin: Unidata/thredds

assert dim != null;
String name = config.structName == null ? "anon" : config.structName;
struct = new StructurePseudoDS(ds, dim.getGroup(), name, config.vars, this.dim);
break;
assert dim != null;
assert config.outerName != null;
struct = new StructurePseudo2Dim(ds, dim.getGroup(), config.structName, config.vars, this.dim, this.outer);
break;
origin: edu.ucar/netcdf

/**
 * Instances which have same contents are equal.
 * Careful!! this is not object identity !!
 */
@Override
public boolean equals(Object oo) {
 if (this == oo) return true;
 if ( !(oo instanceof Dimension)) return false;
 Dimension other = (Dimension) oo;
 Group g = getGroup();
 if ((g != null) && !g.equals(other.getGroup())) return false;
 if ((getShortName() == null) && (other.getShortName() != null)) return false;
 if ((getShortName() != null) && !getShortName().equals(other.getShortName())) return false;
 return (getLength() == other.getLength()) &&
     (isUnlimited() == other.isUnlimited()) &&
     (isVariableLength() == other.isVariableLength()) &&
     (isShared() == other.isShared());
}
origin: edu.ucar/cdm

/**
 * Instances which have same contents are equal.
 * Careful!! this is not object identity !!
 */
@Override
public boolean equals(Object oo) {
 if (this == oo) return true;
 if (!(oo instanceof Dimension)) return false;
 Dimension other = (Dimension) oo;
 Group g = getGroup();
 if ((g != null) && !g.equals(other.getGroup())) return false;
 if ((getShortName() == null) && (other.getShortName() != null)) return false;
 if ((getShortName() != null) && !getShortName().equals(other.getShortName())) return false;
 return (getLength() == other.getLength()) &&
     (isUnlimited() == other.isUnlimited()) &&
     (isVariableLength() == other.isVariableLength()) &&
     (isShared() == other.isShared());
}
origin: Unidata/thredds

/**
 * Instances which have same contents are equal.
 * Careful!! this is not object identity !!
 */
@Override
public boolean equals(Object oo) {
 if (this == oo) return true;
 if (!(oo instanceof Dimension)) return false;
 Dimension other = (Dimension) oo;
 Group g = getGroup();
 if ((g != null) && !g.equals(other.getGroup())) return false;
 if ((getShortName() == null) && (other.getShortName() != null)) return false;
 if ((getShortName() != null) && !getShortName().equals(other.getShortName())) return false;
 return (getLength() == other.getLength()) &&
     (isUnlimited() == other.isUnlimited()) &&
     (isVariableLength() == other.isVariableLength()) &&
     (isShared() == other.isShared());
}
origin: org.geotools/gt-netcdf

String dimName = dimension.getFullName();
Group group = dimension.getGroup();
origin: org.geotools/gt-unidata

String dimName = dimension.getFullName();
Group group = dimension.getGroup();
ucar.nc2DimensiongetGroup

Javadoc

Get the Group that owns this Dimension.

Popular methods of Dimension

  • getLength
    Get the length of the Dimension.
  • getShortName
  • <init>
    Copy Constructor. used to make global dimensions
  • getFullName
  • isUnlimited
    If unlimited, then the length can increase; otherwise it is immutable.
  • isVariableLength
    If variable length, then the length is unknown until the data is read.
  • equals
    Instances which have same contents are equal. Careful!! this is not object identity !!
  • isShared
    If this Dimension is shared, or is private to a Variable. All Dimensions in NetcdfFile.getDimensions
  • setLength
    Set the Dimension length.
  • setName
    Set the name, converting to valid CDM object name if needed.
  • setShared
    Set whether this is shared.
  • setUnlimited
    Set whether this is unlimited, meaning length can increase.
  • setShared,
  • setUnlimited,
  • getName,
  • getParentGroup,
  • hashCode,
  • makeFullName,
  • setGroup,
  • setImmutable,
  • setParentGroup

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • IsNull (org.hamcrest.core)
    Is the value null?
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