public static ucar.nc2.dataset.CoordinateSystem getCoordinateSystem(VariableDS variableDS) { final List<ucar.nc2.dataset.CoordinateSystem> systems = variableDS.getCoordinateSystems(); if (systems.isEmpty()) { throw new RuntimeException( "Coordinate system for Variable " + variableDS.getFullName() + " haven't been found"); } return systems.get(0); }
public VariableAdapter(NetCDFImageReader reader, Name coverageName, VariableDS variable) throws Exception { this.variableDS = variable; this.reader = reader; this.coverageName = coverageName; setName(variable.getFullName()); init(); }
@Override public String toString() { return "JoinArray{" + "v=" + v.getFullName() + ", type=" + type + ", param=" + param + '}'; } }
@Override public String toString() { return "JoinArray{" + "v=" + v.getFullName() + ", type=" + type + ", param=" + param + '}'; } }
@Override public String toString() { return "JoinArray{" + "v=" + v.getFullName() + ", type=" + type + ", param=" + param + '}'; } }
public String getFullName() { return vs.getFullName(); }
public String getName() { return vs.getFullName(); }
lastIndex = slicesNum; final String varName = variableDS.getFullName(); for (int imageIndex = startIndex; imageIndex < lastIndex; imageIndex++) {
String varName = variable.getFullName(); if (!ancillaryFileManager.acceptsVariable(varName)) { continue;
public static ucar.nc2.dataset.CoordinateSystem getCoordinateSystem(VariableDS variableDS) { final List<ucar.nc2.dataset.CoordinateSystem> systems = variableDS.getCoordinateSystems(); if (systems.isEmpty()) { throw new RuntimeException("Coordinate system for Variable " + variableDS.getFullName() + " haven't been found"); } return systems.get(0); }
public static ucar.nc2.dataset.CoordinateSystem getCoordinateSystem(VariableDS variableDS) { final List<ucar.nc2.dataset.CoordinateSystem> systems = variableDS.getCoordinateSystems(); if (systems.isEmpty()) { throw new RuntimeException( "Coordinate system for Variable " + variableDS.getFullName() + " haven't been found"); } return systems.get(0); }
public VariableAdapter(NetCDFImageReader reader, Name coverageName, VariableDS variable) throws Exception { this.variableDS = variable; this.reader = reader; this.coverageName = coverageName; setName(variable.getFullName()); init(); }
public UnidataVariableAdapter(UnidataImageReader reader, Name coverageName, VariableDS variable) throws Exception { this.variableDS = variable; this.reader = reader; this.coverageName = coverageName; setName(variable.getFullName()); init(); }
public void check(Formatter f) { for (Variable v : getVariables()) { VariableDS vds = (VariableDS) v; if (vds.getOriginalDataType() != vds.getDataType()) { f.format("Variable %s has type %s, org = %s%n", vds.getFullName(), vds.getOriginalDataType(), vds.getDataType()); } if (vds.getOriginalVariable() != null) { Variable orgVar = vds.getOriginalVariable(); if (orgVar.getRank() != vds.getRank()) f.format("Variable %s has rank %d, org = %d%n", vds.getFullName(), vds.getRank(), orgVar.getRank()); } } }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent(new Element("variable").addContent(join.v.getFullName())); joinElem.addContent(new Element("param").addContent(Integer.toString(join.param))); return joinElem; }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent(new Element("variable").addContent(join.v.getFullName())); joinElem.addContent(new Element("param").addContent(Integer.toString(join.param))); return joinElem; }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent( new Element("variable").setAttribute("name", join.v.getFullName())); joinElem.addContent( new Element("param").setAttribute("value", Integer.toString(join.param))); return joinElem; }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent(new Element("variable").addContent(join.v.getFullName())); joinElem.addContent(new Element("param").addContent(Integer.toString(join.param))); return joinElem; }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent( new Element("variable").setAttribute("name", join.v.getFullName())); joinElem.addContent( new Element("param").setAttribute("value", Integer.toString(join.param))); return joinElem; }
private Element writeJoinArray(JoinArray join) { Element joinElem = new Element("join"); joinElem.setAttribute("class", join.getClass().toString()); if (join.type != null) joinElem.setAttribute("type", join.type.toString()); if (join.v != null) joinElem.addContent( new Element("variable").setAttribute("name", join.v.getFullName())); joinElem.addContent( new Element("param").setAttribute("value", Integer.toString(join.param))); return joinElem; }