Package org.apache.sis.internal.netcdf

Examples of org.apache.sis.internal.netcdf.Axis


    private GridSpatialRepresentation createSpatialRepresentationInfo(final GridGeometry cs) throws IOException {
        final DefaultGridSpatialRepresentation grid = new DefaultGridSpatialRepresentation();
        grid.setNumberOfDimensions(cs.getTargetDimensions());
        final Axis[] axes = cs.getAxes();
        for (int i=axes.length; --i>=0;) {
            final Axis axis = axes[i];
            if (axis.sourceDimensions.length != 0) {
                final DefaultDimension dimension = new DefaultDimension();
                dimension.setDimensionSize(axis.sourceSizes[0]);
                final AttributeNames.Dimension attributeNames = axis.attributeNames;
                if (attributeNames != null) {
View Full Code Here


                 * then there is maybe a problem with the NetCDF file. However for the purpose of this
                 * package, we can proceed as if the dimension does not exist.
                 */
            }
            axis2D = (axis instanceof CoordinateAxis2D) ? (CoordinateAxis2D) axis : null;
            axes[targetDim] = new Axis(this, attributeNames,
                    ArraysExt.resize(indices, i),
                    ArraysExt.resize(sizes, i));
        }
        axis2D = null;
        return axes;
View Full Code Here

                        sizes[i++] = dimension.length;
                        break;
                    }
                }
            }
            axes[targetDim] = new Axis(this, attributeNames,
                    ArraysExt.resize(indices, i),
                    ArraysExt.resize(sizes, i));
        }
        return axes;
    }
View Full Code Here

    private GridSpatialRepresentation createSpatialRepresentationInfo(final GridGeometry cs) throws IOException {
        final DefaultGridSpatialRepresentation grid = new DefaultGridSpatialRepresentation();
        grid.setNumberOfDimensions(cs.getTargetDimensions());
        final Axis[] axes = cs.getAxes();
        for (int i=axes.length; --i>=0;) {
            final Axis axis = axes[i];
            if (axis.sourceDimensions.length != 0) {
                final DefaultDimension dimension = new DefaultDimension();
                dimension.setDimensionSize(axis.sourceSizes[0]);
                final AttributeNames.Dimension attributeNames = axis.attributeNames;
                if (attributeNames != null) {
View Full Code Here

TOP

Related Classes of org.apache.sis.internal.netcdf.Axis

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.