Codota Logo
CoordinateAxis1D.getAxisType
Code IndexAdd Codota to your IDE (free)

How to use
getAxisType
method
in
ucar.nc2.dataset.CoordinateAxis1D

Best Java code snippets using ucar.nc2.dataset.CoordinateAxis1D.getAxisType (Showing top 13 results out of 315)

  • Common ways to obtain CoordinateAxis1D
private void myMethod () {
CoordinateAxis1D c =
  • Codota IconGridCoordSystem gcs;gcs.getVerticalAxis()
  • Codota IconGridCoordSystem gridCoordSystem;(CoordinateAxis1D) gridCoordSystem.getXHorizAxis()
  • Codota IconGridCoordSystem gridCoordSystem;(CoordinateAxis1D) gridCoordSystem.getYHorizAxis()
  • Smart code suggestions by Codota
}
origin: org.geotools/gt-unidata

public AxisType getAxisType(){
  return coordinateAxis.getAxisType();
}
origin: geotools/geotools

AxisType axisType = axis.getAxisType();
if (axisType == null) {
  return false;
origin: it.geosolutions.imageio-ext/imageio-ext-grib1

private Variable getTemporalAxis() {
  final int axesSize = axes.size();
  Variable temporalAxis = null;
  if (axesSize > 2){
    temporalAxis = axes.get(0);
    final CoordinateAxis1D axis = (CoordinateAxis1D) temporalAxis;
    final AxisType axisType = axis.getAxisType();
    if (axisType==AxisType.Time || axisType==AxisType.RunTime)
      return axis;
  }
  return temporalAxis;
}
origin: Unidata/thredds

/**
 * true if increasing z coordinate values means "up" in altitude
 */
@Override
public boolean isZPositive() {
 if (vertZaxis == null) return false;
 if (vertZaxis.getPositive() != null) {
  return vertZaxis.getPositive().equalsIgnoreCase(ucar.nc2.constants.CF.POSITIVE_UP);
 }
 if (vertZaxis.getAxisType() == AxisType.Height) return true;
 return vertZaxis.getAxisType() != AxisType.Pressure;
}
origin: edu.ucar/cdm

/**
 * true if increasing z coordinate values means "up" in altitude
 */
@Override
public boolean isZPositive() {
 if (vertZaxis == null) return false;
 if (vertZaxis.getPositive() != null) {
  return vertZaxis.getPositive().equalsIgnoreCase(ucar.nc2.constants.CF.POSITIVE_UP);
 }
 if (vertZaxis.getAxisType() == AxisType.Height) return true;
 return vertZaxis.getAxisType() != AxisType.Pressure;
}
origin: edu.ucar/netcdf

/**
 * true if increasing z coordinate values means "up" in altitude
 */
@Override
public boolean isZPositive() {
 if (vertZaxis == null) return false;
 if (vertZaxis.getPositive() != null) {
  return vertZaxis.getPositive().equalsIgnoreCase(ucar.nc2.constants.CF.POSITIVE_UP);
 }
 if (vertZaxis.getAxisType() == AxisType.Height) return true;
 if (vertZaxis.getAxisType() == AxisType.Pressure) return false;
 return true; // default
}
origin: org.geotools/gt-unidata

  @Override
  public CoordinateReferenceSystem getCoordinateReferenceSystem() {
    if(this.crs==null){
     synchronized (this) {
       final AxisType axisType = coordinateAxis.getAxisType();
       switch(axisType){
       case GeoZ:case Height:case Pressure:
         String axisName =getName();
         if (UnidataCRSUtilities.VERTICAL_AXIS_NAMES.contains(axisName)) {
           this.crs= UnidataCRSUtilities.buildVerticalCrs(coordinateAxis);
         }
         break;
       }             
            }   
    }
    return crs;
  }
}
origin: opengeospatial/geoapi

/**
 * Returns the units, or {@code null} if unknown.
 *
 * @throws ParserException if a unit has been found but its symbol can not be parsed.
 *
 * @see CoordinateAxis1D#getUnitsString()
 * @see Unit#valueOf(CharSequence)
 */
@Override
public Unit<?> getUnit() throws ParserException {
  Unit<?> unit = this.unit;
  if (unit == null) {
    final String symbol = getUnitsString();
    if (symbol != null && !symbol.isEmpty()) {
      this.unit = unit = Units.parse(symbol);
    } else {
      // Infer default units if they were not specified.
      final AxisType type = axis.getAxisType();
      if (type != null) {
        switch (type) {
          case Lon:
          case Lat: this.unit = unit = Units.DEGREE; break;
        }
      }
    }
  }
  return unit;
}
origin: org.geotools/gt-unidata

@SuppressWarnings({ "rawtypes", "unchecked" })
public static CoordinateVariable<?> create(CoordinateAxis1D coordinateAxis){
  Utilities.ensureNonNull("coordinateAxis", coordinateAxis);
  // If the axis is not numeric, we can't process any further. 
  if (!coordinateAxis.isNumeric()) {
    throw new IllegalArgumentException("Unable to process non numeric coordinate variable: "+coordinateAxis.toString());
  }
  
  // INITIALIZATION
  
  // AxisType?
  final AxisType axisType= coordinateAxis.getAxisType();
  switch(axisType){
  case GeoX:case GeoY: case GeoZ: case Height: case Lat: case Lon:
  case Pressure: case Spectral:
    return new NumericCoordinateVariable(suggestBinding(coordinateAxis),coordinateAxis);
  case RunTime:case Time:
    return new TimeCoordinateVariable(coordinateAxis);
  default:
    throw new IllegalArgumentException("Unsupported axis type: "+axisType+ " for coordinate variable: "+coordinateAxis.toStringDebug());
  }
  
}
origin: org.geotools/gt-unidata

public static Class<?> suggestBinding(CoordinateAxis1D coordinateAxis){
  Utilities.ensureNonNull("coordinateAxis", coordinateAxis);
  final AxisType axisType=coordinateAxis.getAxisType();
origin: opengeospatial/geoapi

CoordinateAxis1D axis = (CoordinateAxis1D) axes.get(i);
if (axis != null) {
  final AxisType type = axis.getAxisType();
  if (type != null) { // This is really null in some netCDF file.
    switch (type) {
origin: org.geotools/gt-netcdf

AxisType axisType = axis.getAxisType();
if (axisType == null) {
  return false;
origin: org.geotools/gt-unidata

AxisType axisType = axis.getAxisType();
if (axisType == null) {
  return false;
ucar.nc2.datasetCoordinateAxis1DgetAxisType

Popular methods of CoordinateAxis1D

  • getIncrement
    Get increment value if isRegular()
  • getSize
  • getStart
    Get starting value if isRegular()
  • isRegular
    If true, then value(i) = getStart() + i * getIncrement().
  • findCoordElement
  • getUnitsString
  • getCoordValue
    Get the ith coordinate value. This is the value of the coordinate axis at which the data value is as
  • getCoordValues
    Get the coordinate values as a double array.
  • getShortName
  • getBound1
    Get the coordinate bound1 as a double array. bound1[i] # coordValue[i] # bound2[i], where # is < if
  • getBound2
    Get the coordinate bound1 as a double array. bound1[i] # coordValue[i] # bound2[i], where # is < if
  • getCoordEdges
    Get the coordinate edges for the ith coordinate. Can use this for isContiguous() true or false.
  • getBound2,
  • getCoordEdges,
  • getMaxValue,
  • getMinValue,
  • getShape,
  • findCoordElementBounded,
  • getDataType,
  • getDescription,
  • getFullName

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Runner (org.openjdk.jmh.runner)
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