Package ucar.nc2.constants

Examples of ucar.nc2.constants.AxisType


        byte set=0;
        for (CoordinateVariable<?> cv : coordinatesVariables.values()) {
            if (cv.isNumeric()) {

                // is it lat or lon?
                AxisType type = cv.getAxisType();
                switch (type) {
                case GeoY: case Lat:
                    if (cv.isRegular()) {
                        lat[0] = cv.getStart() - (cv.getIncrement() / 2d);
                        lat[1] = lat[0] + cv.getIncrement() * (cv.getSize());
 
View Full Code Here


            throw new IllegalArgumentException(String.valueOf(type));
        }
    }

    static String[] getUnitDirection(CoordinateAxis axis) {
    AxisType type = axis.getAxisType();
        String units = axis.getUnitsString();
        /*
         * Gets the axis direction, taking in account the possible reversal or
         * vertical axis. Note that geographic and projected
         * CoordinateReferenceSystem have the same directions. We can
View Full Code Here

                String axisName = zAxis.getFullName();
                if (!NetCDFCRSUtilities.VERTICAL_AXIS_NAMES.contains(axisName)) {
                    return null;
                }
                String units = zAxis.getUnitsString();
                AxisType axisType = zAxis.getAxisType();

                String v_crsName = "Unknown";
                String v_datumName = "Unknown";
                String v_datumType = null;
                v_datumName = new Identification("Mean Sea Level", null, null, "EPSG:5100").getName();
View Full Code Here

    public static TemporalCRS buildTemporalCrs( CoordinateAxis timeAxis ) {
        String t_datumName = new Identification("ISO8601", null, null, null).getName();
        TemporalCRS temporalCRS = null;
        try {
            if (timeAxis != null) {
                AxisType type = timeAxis.getAxisType();
                String units = timeAxis.getUnitsString();

                /*
                 * Gets the axis direction, taking in account the possible reversal or
                 * vertical axis. Note that geographic and projected
View Full Code Here

        for( CoordinateVariable<?> cv : reader.coordinatesVariables.values() ) {
            if(!cv.isNumeric()){
                continue;
            }
            final AxisType axisType = cv.getAxisType();
            switch (axisType) {
            case Lon: case GeoX:
                // raster space
                low[0] = 0;
                high[0] = (int) cv.getSize();
View Full Code Here

                if (dimVariable == null) {
                    return false;
                }
                if (dimVariable instanceof CoordinateAxis1D) {
                    CoordinateAxis1D axis = (CoordinateAxis1D) dimVariable;
                    AxisType axisType = axis.getAxisType();
                    if (axisType == null) {
                        return false;
                    }
                    switch (axisType) {
                    case GeoX:
View Full Code Here

    @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();
View Full Code Here

    private final static Logger LOGGER = Logging.getLogger(CoordinateVariable.class);

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

        switch (axisType) {
        case GeoX:
        case GeoY:
        case GeoZ:
View Full Code Here

        }

        // INITIALIZATION

        // AxisType?
        final AxisType axisType = coordinateAxis.getAxisType();
        switch (axisType) {
        case GeoX:
        case GeoY:
        case GeoZ:
        case Height:
View Full Code Here

  private static void mergeOverwriteDataType( ThreddsMetadataBuilder first,
                                              ThreddsMetadataBuilder second,
                                              ThreddsMetadataBuilder mergedThreddsMetadata )
  {
    FeatureType dataType = second.getDataType() != null ? second.getDataType() : first.getDataType();
    if ( dataType != null )
      mergedThreddsMetadata.setDataType( dataType );
  }
View Full Code Here

TOP

Related Classes of ucar.nc2.constants.AxisType

Copyright © 2018 www.massapicom. 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.