Tabnine Logo
VariableSimpleIF.getShortName
Code IndexAdd Tabnine to your IDE (free)

How to use
getShortName
method
in
ucar.nc2.VariableSimpleIF

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

origin: edu.ucar/cdm

 @Override
 public int compareTo(VariableSimpleIF o) {
  return name.compareTo(o.getShortName()); // ??
 }
}
origin: Unidata/thredds

public VariableSimpleIF getDataVariable(String shortName) {
 for (VariableSimpleIF s : dataVariables) {
  String ss = s.getShortName();
  if (shortName.equals(ss)) return s;
 }
 return null;
}
origin: edu.ucar/cdm

public VariableSimpleIF getDataVariable( String shortName) {
 for (VariableSimpleIF s : dataVariables) {
  String ss = s.getShortName();
  if (shortName.equals(ss)) return s;
 }
 return null;
}  
origin: edu.ucar/netcdf

public VariableSimpleIF getDataVariable( String shortName) {
 for (VariableSimpleIF s : dataVariables) {
  String ss = s.getShortName();
  if (shortName.equals(ss)) return s;
 }
 return null;
}  
origin: Unidata/thredds

protected void removeDataVariable( String varName) {
 Iterator iter = dataVariables.iterator();
 while (iter.hasNext()) {
  VariableSimpleIF v = (VariableSimpleIF) iter.next();
  if (v.getShortName().equals( varName) )
   iter.remove();
 }
}
origin: Unidata/thredds

protected void removeDataVariable(String varName) {
 Iterator iter = dataVariables.iterator();
 while (iter.hasNext()) {
  VariableSimpleIF v = (VariableSimpleIF) iter.next();
  if (v.getShortName().equals(varName))
   iter.remove();
 }
}
origin: edu.ucar/netcdf

/**
 * Sort by name
 */
public int compareTo(VariableSimpleIF o) {
 return getShortName().compareTo(o.getShortName());
}
origin: edu.ucar/cdm

 /**
  * Sort by name
  */
 public int compareTo(VariableSimpleIF o) {
  assert o != null;
  return getShortName().compareTo(o.getShortName());
 }
}
origin: edu.ucar/netcdf

private void addDataVariables(List<VariableSimpleIF> list, Table t) {
 if (t.parent != null) addDataVariables(list, t.parent);
 for (VariableSimpleIF col : t.cols) {
  if (!t.nondataVars.contains(col.getShortName()))
   list.add(col);
 }
}
origin: Unidata/thredds

/**
 * Sort by name
 */
public int compareTo(VariableSimpleIF o) {
 return getShortName().compareTo(o.getShortName());
}
origin: Unidata/thredds

 /**
  * Sort by name
  */
 public int compareTo(VariableSimpleIF o) {
  return getShortName().compareTo(o.getShortName());
 }
}
origin: edu.ucar/netcdf

public VariableSimpleIF getDataVariable( String shortName) {
 for (VariableSimpleIF s : getDataVariables()) {
  String ss = s.getShortName();
  if (shortName.equals(ss)) return s;
 }
 return null;
}
origin: edu.ucar/cdm

private void addDataVariables(List<VariableSimpleIF> list, Table t) {
 if (t.parent != null) addDataVariables(list, t.parent);
 for (VariableSimpleIF col : t.cols.values()) {
  if (t.nondataVars.contains(col.getFullName())) continue;
  if (t.nondataVars.contains(col.getShortName())) continue;  // fishy
  list.add(col);
 }
}
origin: Unidata/thredds

private void addDataVariables(List<VariableSimpleIF> list, Table t) {
 if (t.parent != null) addDataVariables(list, t.parent);
 for (VariableSimpleIF col : t.cols.values()) {
  if (t.nondataVars.contains(col.getFullName())) continue;
  if (t.nondataVars.contains(col.getShortName())) continue;  // fishy
  list.add(col);
 }
}
origin: edu.ucar/netcdf

private Dorade2Variable(NetcdfDataset nds, VariableSimpleIF v, Variable v0) {
 super(v.getShortName(), v0.getAttributes());
 sweeps = new ArrayList();
 nsweeps = 0;
 name = v.getShortName();
 int[] shape = v0.getShape();
 int count = v0.getRank() - 1;
 int ngates = shape[count];
 count--;
 int nrays = shape[count];
 sweeps.add( new Dorade2Sweep(v0, 0, nrays, ngates)) ;
}
origin: Unidata/thredds

 public StructureData getData() throws IOException {
  StructureDataW sdata = new StructureDataW(sm);
  for (VariableSimpleIF vs : dataVariables) {
   Array data = readData((Variable) vs, stationIndex, obsIndex);
   sdata.setMemberData(vs.getShortName(), data);
  }
  return sdata;
 }
}
origin: edu.ucar/netcdf

 public StructureData getData() throws IOException {
  StructureDataW sdata = new StructureDataW(sm);
  for (VariableSimpleIF vs : dataVariables) {
   Array data = readData((Variable) vs, stationIndex, obsIndex);
   sdata.setMemberData(vs.getShortName(), data);
  }
  return sdata;
 }
}
origin: edu.ucar/cdm

protected void addExtraVariables() throws IOException {
 if (extra == null) return;
 if (extraMap == null) extraMap = new HashMap<>();
 addDimensionsClassic(extra, dimMap);
 for (VariableSimpleIF vs : extra) {
  List<Dimension> dims = makeDimensionList(dimMap, vs.getDimensions());
  Variable mv = writer.addVariable(null, vs.getShortName(), vs.getDataType(), dims);
  for (Attribute att : vs.getAttributes())
   mv.addAttribute(att);
  extraMap.put(mv.getShortName(), mv);
 }
}
origin: edu.ucar/cdm

public PointObVar(VariableSimpleIF v) {
 setName(v.getShortName());
 setUnits(v.getUnitsString());
 setDesc(v.getDescription());
 setDataType(v.getDataType());
 //if (v.getRank() > 0) setLen( v.getShape()[0]);
}
origin: edu.ucar/netcdf

private Element writeVariable(VariableSimpleIF v) {
 Element varElem = new Element("variable");
 varElem.setAttribute("name", v.getShortName());
 ucar.ma2.DataType dt = v.getDataType();
 if (dt != null)
  varElem.setAttribute("type", dt.toString());
 // attributes
 for (Attribute att : v.getAttributes()) {
  varElem.addContent(NcMLWriter.writeAttribute(att, "attribute", null));
 }
 return varElem;
}
ucar.nc2VariableSimpleIFgetShortName

Javadoc

short name of the data Variable

Popular methods of VariableSimpleIF

  • getDescription
    description of the Variable
  • getUnitsString
    Units of the Variable. These should be udunits compatible if possible
  • findAttributeIgnoreCase
    find the attribute for the variable with the given name, ignoring case.
  • getAttributes
    Attributes for the variable.
  • getDataType
    Variable's data type
  • getDimensions
    Dimension List. empty for a scalar variable.
  • getFullName
    full, backslash escaped name of the data Variable
  • getRank
    Variable rank
  • getShape
    Variable shape

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Kernel (java.awt.image)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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