Tabnine Logo
TableConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
TableConfig
in
ucar.nc2.ft.point.standard

Best Java code snippets using ucar.nc2.ft.point.standard.TableConfig (Showing top 20 results out of 315)

origin: edu.ucar/cdm

private void checkIfTrajectory(TableConfig st) {
 // deal with possible trajectory - only do this if dataset has metadata
 FeatureType ft = FeatureDatasetFactoryManager.findFeatureType(ds);
 if (ft == FeatureType.TRAJECTORY) {
  st.featureType = FeatureType.TRAJECTORY;
  TableConfig pc = new TableConfig(Table.Type.Top, "single");
  st.parent = pc;
  pc.addChild(st);
 } else
  st.featureType = FeatureType.POINT;
}
origin: edu.ucar/netcdf

private void addCoord(Element tableElem, TableConfig table, Table.CoordName type, List<String> varNames) {
 String name = table.findCoordinateVariableName(type);
 if (name != null) {
  Element elem = new Element("coordinate").setAttribute("type", type.name());
  elem.addContent(name);
  tableElem.addContent(elem);
  varNames.remove(name);
 }
}
origin: edu.ucar/cdm

TableContiguous(NetcdfDataset ds, TableConfig config) {
 super(ds, config);
 this.ds = ds;
 startVarName = config.getStart();
 numRecordsVarName = config.getNumRecords();
 addNonDataVariable(startVarName);
 addNonDataVariable(numRecordsVarName);
}
origin: Unidata/thredds

TableConfig timeTable = new TableConfig(Table.Type.MultidimStructure, obsDim.getShortName());
timeTable.missingVar = "_isMissing";
timeTable.structName = multidimStruct.getFullName();
timeTable.structureType = TableConfig.StructureType.Structure;
timeTable.addJoin(new JoinArray(time, JoinArray.Type.level, 1));
timeTable.time = time.getFullName();
timeTable.feature_id = time.getFullName();
stnTable.addChild(timeTable);
TableConfig obsTable = new TableConfig(Table.Type.NestedStructure, obsDim.getShortName());
Structure nestedStruct = Evaluator.findNestedStructure(multidimStruct);
if (nestedStruct == null) {
timeTable.addChild(obsTable);
origin: Unidata/thredds

  obsConfig = makeMultidimInner(ds, trajTable, info.childDim, info, errlog);
  if (info.time.getRank() == 1) { // join time(obs) or time(time)
   obsConfig.addJoin(new JoinArray(info.time, JoinArray.Type.raw, 0));
   obsConfig.time = info.time.getFullName();
trajTable.addChild(obsConfig);
return trajTable;
origin: edu.ucar/cdm

TableConfig tc = new TableConfig(ttype, name);
 String coordNameType = coordElem.getAttributeValue("type");
 Table.CoordName coordName = Table.CoordName.valueOf(coordNameType);
 tc.setCoordinateVariableName(coordName, coordElem.getText());
 tc.addJoin( readJoinArray(ds, joinElem));
 tc.addChild( parseTableConfig(ds, nestedTable, tc));
origin: Unidata/thredds

private TableConfig makeSingle(NetcdfDataset ds, Dimension obsDim, Formatter errlog) throws IOException {
 Table.Type obsTableType = Table.Type.Structure;
 TableConfig obsTable = new TableConfig(obsTableType, "single");
 obsTable.dimName = obsDim.getShortName();
 obsTable.lat = matchAxisTypeAndDimension(ds, AxisType.Lat, obsDim);
 obsTable.lon = matchAxisTypeAndDimension(ds, AxisType.Lon, obsDim);
 obsTable.elev = matchAxisTypeAndDimension(ds, AxisType.Height, obsDim);
 if (obsTable.elev == null) obsTable.elev = matchAxisTypeAndDimension(ds, AxisType.Pressure, obsDim);
 if (obsTable.elev == null) obsTable.elev = matchAxisTypeAndDimension(ds, AxisType.GeoZ, obsDim);
 obsTable.time = matchAxisTypeAndDimension(ds, AxisType.Time, obsDim);
 makeStructureInfo(obsTable, ds, null, obsDim);
 return obsTable;
}
origin: edu.ucar/cdm

Variable v = iter.next();
if (v instanceof Structure) {  // handles Sequences too
 TableConfig st = new TableConfig(Table.Type.Structure, v.getFullName());
 CoordSysEvaluator.findCoords(st, ds, null);
 st.structName = v.getFullName();
TableConfig st = new TableConfig(Table.Type.Structure, obsDim.getShortName());
st.structureType = obsDim.isUnlimited() ? TableConfig.StructureType.Structure : TableConfig.StructureType.PsuedoStructure;
st.structName = obsDim.isUnlimited() ? "record" : obsDim.getShortName();
 st.addJoin(new JoinArray(time, JoinArray.Type.scalar, 0));
 st.time = time.getShortName();
TableConfig st = new TableConfig(Table.Type.Structure, obsDim.getShortName());
st.structureType = TableConfig.StructureType.PsuedoStructure;
st.dimName = obsDim.getShortName();
origin: edu.ucar/netcdf

parentTable.addChild(obsConfig);
return parentTable;
origin: edu.ucar/cdm

String getStart() {
 if (start != null) return start;
 if (parent != null) return parent.getStart();
 return null;
}
origin: Unidata/thredds

String getNumRecords() {
 if (numRecords != null) return numRecords;
 if (parent != null) return parent.getNumRecords();
 return null;
}
origin: edu.ucar/netcdf

TableConfig timeTable = new TableConfig(Table.Type.MultidimStructure, obsDim.getShortName());
timeTable.missingVar = "_isMissing";
timeTable.structName = multidimStruct.getFullName();
timeTable.structureType = TableConfig.StructureType.Structure;
timeTable.addJoin(new JoinArray(time, JoinArray.Type.level, 1));
timeTable.time = time.getFullName();
timeTable.feature_id = time.getFullName();
stnTable.addChild(timeTable);
TableConfig obsTable = new TableConfig(Table.Type.NestedStructure, obsDim.getShortName());
Structure nestedStruct = Evaluator.findNestedStructure(multidimStruct);
if (nestedStruct == null) {
timeTable.addChild(obsTable);
origin: edu.ucar/netcdf

  obsTable = makeMultidimInner(ds, parentTable, info.childDim, info, errlog);
  if (z.getRank() == 1) // z(z)
   obsTable.addJoin(new JoinArray(z, JoinArray.Type.raw, 0));
  break;
 case raggedContiguous:
parentTable.addChild(obsTable);
return parentTable;
origin: Unidata/thredds

TableConfig tc = new TableConfig(ttype, name);
 String coordNameType = coordElem.getAttributeValue("type");
 Table.CoordName coordName = Table.CoordName.valueOf(coordNameType);
 tc.setCoordinateVariableName(coordName, coordElem.getText());
 tc.addJoin( readJoinArray(ds, joinElem));
 tc.addChild( parseTableConfig(ds, nestedTable, tc));
origin: edu.ucar/cdm

private TableConfig makeSingle(NetcdfDataset ds, Dimension obsDim, Formatter errlog) throws IOException {
 Table.Type obsTableType = Table.Type.Structure;
 TableConfig obsTable = new TableConfig(obsTableType, "single");
 obsTable.dimName = obsDim.getShortName();
 obsTable.lat = matchAxisTypeAndDimension(ds, AxisType.Lat, obsDim);
 obsTable.lon = matchAxisTypeAndDimension(ds, AxisType.Lon, obsDim);
 obsTable.elev = matchAxisTypeAndDimension(ds, AxisType.Height, obsDim);
 if (obsTable.elev == null) obsTable.elev = matchAxisTypeAndDimension(ds, AxisType.Pressure, obsDim);
 if (obsTable.elev == null) obsTable.elev = matchAxisTypeAndDimension(ds, AxisType.GeoZ, obsDim);
 obsTable.time = matchAxisTypeAndDimension(ds, AxisType.Time, obsDim);
 makeStructureInfo(obsTable, ds, null, obsDim);
 return obsTable;
}
origin: edu.ucar/netcdf

Variable v = iter.next();
if (v instanceof Structure) {  // handles Sequences too
 TableConfig st = new TableConfig(Table.Type.Structure, v.getFullName());
 CoordSysEvaluator.findCoords(st, ds);
 st.structName = v.getFullName();
TableConfig st = new TableConfig(Table.Type.Structure, obsDim.getShortName());
st.structureType = obsDim.isUnlimited() ? TableConfig.StructureType.Structure : TableConfig.StructureType.PsuedoStructure;
st.structName = obsDim.isUnlimited() ? "record" : obsDim.getShortName();
 st.addJoin(new JoinArray(time, JoinArray.Type.scalar, 0));
 st.time = time.getShortName();
TableConfig st = new TableConfig(Table.Type.Structure, obsDim.getShortName());
st.structureType = TableConfig.StructureType.PsuedoStructure;
st.dimName = obsDim.getShortName();
origin: edu.ucar/cdm

trajTable.addChild(obsConfig);
return trajTable;
origin: Unidata/thredds

String getStart() {
 if (start != null) return start;
 if (parent != null) return parent.getStart();
 return null;
}
origin: edu.ucar/cdm

String getNumRecords() {
 if (numRecords != null) return numRecords;
 if (parent != null) return parent.getNumRecords();
 return null;
}
origin: Unidata/thredds

private void checkIfTrajectory(TableConfig st) {
 // deal with possible trajectory - only do this if dataset has metadata
 FeatureType ft = FeatureDatasetFactoryManager.findFeatureType(ds);
 if (ft == FeatureType.TRAJECTORY) {
  st.featureType = FeatureType.TRAJECTORY;
  TableConfig pc = new TableConfig(Table.Type.Top, "single");
  st.parent = pc;
  pc.addChild(st);
 } else
  st.featureType = FeatureType.POINT;
}
ucar.nc2.ft.point.standardTableConfig

Javadoc

This encapsulates the info needed by NestedTable to handle point feature "nested table" datasets. A TableAnalyzer creates these from a specific dataset convention.

a TableConfig has a tree of TableConfigs, representing the join of parent and children tables.

Most used methods

  • <init>
    Constructor
  • addChild
  • addJoin
  • findCoordinateVariableName
  • setCoordinateVariableName
  • getNumRecords
  • getStart

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Collectors (java.util.stream)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best plugins for Eclipse
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