Examples of CoordinateAxis


Examples of ucar.nc2.dataset.CoordinateAxis

  public GeoReferencingCoordSys( CoordinateSystem cs) {
    this.cs = cs;
  }

  public double readLatitudeCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getLatAxis();
    if (null == axis) throw new IllegalArgumentException("There is no latitude coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

    if (null == axis) throw new IllegalArgumentException("There is no latitude coordinate");
    return readValue( axis, fromVar, index);
  }

  public double readLongitudeCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getLonAxis();
    if (null == axis) throw new IllegalArgumentException("There is no longiude coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

    if (null == axis) throw new IllegalArgumentException("There is no longiude coordinate");
    return readValue( axis, fromVar, index);
  }

  public double readPressureCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getPressureAxis();
    if (null == axis) throw new IllegalArgumentException("There is no pressure coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

    if (null == axis) throw new IllegalArgumentException("There is no pressure coordinate");
    return readValue( axis, fromVar, index);
  }

  public double readHeightCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getHeightAxis();
    if (null == axis) throw new IllegalArgumentException("There is no height coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

    if (null == axis) throw new IllegalArgumentException("There is no height coordinate");
    return readValue( axis, fromVar, index);
  }

  public double readTimeCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getTaxis();
    if (null == axis) throw new IllegalArgumentException("There is no time coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

    if (null == axis) throw new IllegalArgumentException("There is no time coordinate");
    return readValue( axis, fromVar, index);
  }

  public double readGeoXCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getXaxis();
    if (null == axis) throw new IllegalArgumentException("There is no GeoX coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

    if (null == axis) throw new IllegalArgumentException("There is no GeoX coordinate");
    return readValue( axis, fromVar, index);
  }

  public double readGeoYCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getYaxis();
    if (null == axis) throw new IllegalArgumentException("There is no GeoY coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

    if (null == axis) throw new IllegalArgumentException("There is no GeoY coordinate");
    return readValue( axis, fromVar, index);
  }

  public double readGeoZCoord(Variable fromVar, int[] index) throws IOException, InvalidRangeException {
    CoordinateAxis axis = cs.getZaxis();
    if (null == axis) throw new IllegalArgumentException("There is no GeoZ coordinate");
    return readValue( axis, fromVar, index);
  }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

   * @param ds look in this dataset's "Best" coordinate system.
   * @param atype look for this type of CoordinateAxis. takes the first one it finds.
    * @return the found CoordinateAxis name, or null if none
   */
   static public String findCoordNameByType(NetcdfDataset ds, AxisType atype) {
     CoordinateAxis coordAxis = findCoordByType(ds, atype);
     return coordAxis == null ? null : coordAxis.getFullName();
   }
View Full Code Here

Examples of ucar.nc2.dataset.CoordinateAxis

     CoordinateAxis coordAxis = findCoordByType(ds, atype);
     return coordAxis == null ? null : coordAxis.getFullName();
   }

  static public String findCoordShortNameByType(NetcdfDataset ds, AxisType atype) {
    CoordinateAxis coordAxis = findCoordByType(ds, atype);
    return coordAxis == null ? null : coordAxis.getShortName();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.