Examples of ProjectionCT


Examples of ucar.nc2.dataset.ProjectionCT

    if (null != (a = ctv.findAttribute( "inverse_flattening")))
      f = a.getNumericValue().doubleValue();

    // double a, double f, int zone, boolean isNorth
    UtmProjection proj = (axis != 0.0) ? new UtmProjection(axis, f, zone, isNorth) : new UtmProjection(zone, isNorth);
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

  public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) {
    double lon0 = readAttributeDouble( ctv, "longitude_of_projection_origin", Double.NaN);
    double lat0 = readAttributeDouble( ctv, "latitude_of_projection_origin", Double.NaN);

    ucar.unidata.geoloc.projection.Orthographic proj = new ucar.unidata.geoloc.projection.Orthographic(lat0, lon0);
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

    } else {
      proj = new ucar.unidata.geoloc.projection.AlbersEqualArea(lat0, lon0, pars[0], pars[1], false_easting, false_northing, earth_radius);
    }

    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

      Earth earth = new Earth(semi_major_axis, semi_minor_axis, inverse_flattening);
      proj = new ucar.unidata.geoloc.projection.proj4.StereographicAzimuthalProjection(lat0, lon0, scale, 90., false_easting, false_northing, earth);
    } else {
      proj = new ucar.unidata.geoloc.projection.Stereographic( lat0, lon0, scale, false_easting, false_northing);
    }
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

      Earth earth = new Earth(semi_major_axis, semi_minor_axis, inverse_flattening);
      proj = new ucar.unidata.geoloc.projection.proj4.StereographicAzimuthalProjection(lat0, lon0, scale, 90., false_easting, false_northing, earth);
    } else {
      proj = new ucar.unidata.geoloc.projection.Stereographic( lat0, lon0, scale, false_easting, false_northing);
    }
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

                != null) {
            aux = getIntArray(ctv, McIDASAreaProjection.ATTR_AUXBLOCK);
        }

        McIDASAreaProjection proj = new McIDASAreaProjection(area, nav, aux);
        return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
    }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

      false_northing *= scalef;
    }

    ucar.unidata.geoloc.projection.Mercator proj =
            new ucar.unidata.geoloc.projection.Mercator( lon0, par, false_easting, false_northing);
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

    double earth_radius = readAttributeDouble(ctv, "earth_radius", Earth.getRadius()) * .001;

    ucar.unidata.geoloc.projection.VerticalPerspectiveView proj =
            new ucar.unidata.geoloc.projection.VerticalPerspectiveView(lat0, lon0, earth_radius, distance, false_easting, false_northing);

    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

      Earth earth = new Earth(semi_major_axis, semi_minor_axis, inverse_flattening);
      proj = new ucar.unidata.geoloc.projection.proj4.TransverseMercatorProjection(earth, lon0, lat0, scale, false_easting, false_northing);
    } else {
      proj = new ucar.unidata.geoloc.projection.TransverseMercator(lat0, lon0, scale, false_easting, false_northing);
    }
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

Examples of ucar.nc2.dataset.ProjectionCT

    double lon = readAttributeDouble( ctv, "grid_south_pole_longitude", Double.NaN);
    double lat = readAttributeDouble( ctv, "grid_south_pole_latitude", Double.NaN);
    double angle = readAttributeDouble( ctv, "grid_south_pole_angle", Double.NaN);

    ucar.unidata.geoloc.projection.RotatedLatLon proj = new ucar.unidata.geoloc.projection.RotatedLatLon( lat, lon, angle);
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
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.