Package ucar.nc2.dataset

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


    } 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

      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

      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

                != 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

      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

    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

      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

    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

  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.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0);
    return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
  }
View Full Code Here

TOP

Related Classes of ucar.nc2.dataset.ProjectionCT

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.