protected void makeCoordinateTransforms(NetcdfDataset ds) { if (projCT != null) { VarProcess vp = findVarProcess(projCT.getName()); if (vp != null) vp.ct = projCT; } super.makeCoordinateTransforms(ds); }
assert ct != null; return ct.getProjection();
private ProjectionCT makeSinusoidalProjection(String name, Attribute projParams) { double radius = projParams.getNumericValue(0).doubleValue(); double centMer = projParams.getNumericValue(4).doubleValue(); double falseEast = projParams.getNumericValue(6).doubleValue(); double falseNorth = projParams.getNumericValue(7).doubleValue(); Sinusoidal proj = new Sinusoidal(centMer, falseEast * .001, falseNorth * .001, radius * .001); return new ProjectionCT(name, "FGDC", proj); }
/** * Create a Projection Coordinate Transform. * @param name name of transform, must be unique within the NcML. * @param authority naming authority. * @param proj projection function. */ public ProjectionCT (String name, String authority, ProjectionImpl proj) { super( name, authority, TransformType.Projection); this.proj = proj; for (Parameter p : proj.getProjectionParameters()) { addParameter( p); } }
/** * Create a Projection Coordinate Transform. * @param name name of transform, must be unique within the NcML. * @param authority naming authority. * @param proj projection function. */ public ProjectionCT (String name, String authority, ProjectionImpl proj) { super( name, authority, TransformType.Projection); this.proj = proj; for (Parameter p : proj.getProjectionParameters()) { addParameter( p); } }
private ProjectionCT makeSinusoidalProjection(String name, Attribute projParams) { double radius = projParams.getNumericValue(0).doubleValue(); double centMer = projParams.getNumericValue(4).doubleValue(); double falseEast = projParams.getNumericValue(6).doubleValue(); double falseNorth = projParams.getNumericValue(7).doubleValue(); Sinusoidal proj = new Sinusoidal(centMer, falseEast * .001, falseNorth * .001, radius * .001); return new ProjectionCT(name, "FGDC", proj); }
protected void makeCoordinateTransforms(NetcdfDataset ds) { if (projCT != null) { VarProcess vp = findVarProcess(projCT.getName(), null); vp.isCoordinateTransform = true; vp.ct = projCT; } super.makeCoordinateTransforms(ds); }
/** Get the Projection for this coordinate system. * If isLatLon(), then returns a LatLonProjection. Otherwise, extracts the * projection from any ProjectionCT CoordinateTransform. * @return ProjectionImpl or null if none. */ public ProjectionImpl getProjection() { if (projection == null) { if (isLatLon()) projection = new LatLonProjection(); ProjectionCT projCT = getProjectionCT(); if (null != projCT) projection = projCT.getProjection(); } return projection; } private ProjectionImpl projection = null;
/** * Create a Projection Coordinate Transform. * @param name name of transform, must be unique within the NcML. * @param authority naming authority. * @param proj projection function. */ public ProjectionCT (String name, String authority, ProjectionImpl proj) { super( name, authority, TransformType.Projection); this.proj = proj; List list = proj.getProjectionParameters(); for (int i=0; i<list.size(); i++) { addParameter((Parameter) list.get(i)); } }
private ProjectionCT makeSinusoidalProjection(String name, Attribute projParams) { double radius = projParams.getNumericValue(0).doubleValue(); double centMer = projParams.getNumericValue(4).doubleValue(); double falseEast = projParams.getNumericValue(6).doubleValue(); double falseNorth = projParams.getNumericValue(7).doubleValue(); Sinusoidal proj = new Sinusoidal(centMer, falseEast * .001, falseNorth * .001, radius * .001); return new ProjectionCT(name, "FGDC", proj); }
protected void makeCoordinateTransforms( NetcdfDataset ds) { if (projCT != null) { VarProcess vp = findVarProcess(projCT.getName(), null); vp.isCoordinateTransform = true; vp.ct = projCT; } super.makeCoordinateTransforms( ds); }
/** Get the Projection for this coordinate system. * If isLatLon(), then returns a LatLonProjection. Otherwise, extracts the * projection from any ProjectionCT CoordinateTransform. * @return ProjectionImpl or null if none. */ public ProjectionImpl getProjection() { if (projection == null) { if (isLatLon()) projection = new LatLonProjection(); ProjectionCT projCT = getProjectionCT(); if (null != projCT) projection = projCT.getProjection(); } return projection; } private ProjectionImpl projection = null;
private CoordinateTransform makeLambertAzimuthalProjection(NetcdfDataset ds) { double lat0 = findAttributeDouble(ds, "YCENT"); double lon0 = findAttributeDouble(ds, "XCENT"); LambertAzimuthalEqualArea p = new LambertAzimuthalEqualArea(lat0, lon0, 0.0, 0.0, earthRadius); return new ProjectionCT("LambertAzimuthal", "FGDC", p); }
protected void makeCoordinateTransforms(NetcdfDataset ds) { if (projCT != null) { VarProcess vp = findVarProcess(projCT.getName()); if (vp != null) vp.ct = projCT; } super.makeCoordinateTransforms(ds); }
/** Get the Projection for this coordinate system. * If isLatLon(), then returns a LatLonProjection. Otherwise, extracts the * projection from any ProjectionCT CoordinateTransform. * @return ProjectionImpl or null if none. */ public ProjectionImpl getProjection() { if (projection == null) { if (isLatLon()) projection = new LatLonProjection(); ProjectionCT projCT = getProjectionCT(); if (null != projCT) projection = projCT.getProjection(); } return projection; } private ProjectionImpl projection = null;
private CoordinateTransform makeLambertAzimuthalProjection(NetcdfDataset ds) { double lat0 = findAttributeDouble(ds, "YCENT"); double lon0 = findAttributeDouble(ds, "XCENT"); LambertAzimuthalEqualArea p = new LambertAzimuthalEqualArea(lat0, lon0, 0.0, 0.0, earthRadius); return new ProjectionCT("LambertAzimuthal", "FGDC", p); }
protected void makeCoordinateTransforms(NetcdfDataset ds) { if (projCT != null) { VarProcess vp = findVarProcess(projCT.getName(), null); if (vp != null) vp.ct = projCT; } super.makeCoordinateTransforms(ds); }
Projection proj = vct.getProjection(); assert proj != null; assert projClass.isInstance(proj) : proj.getClass().getName();
public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) { readStandardParams(ds, ctv); ucar.unidata.geoloc.ProjectionImpl proj = new EquidistantAzimuthalProjection(lat0, lon0, false_easting, false_northing, earth); return new ProjectionCT(ctv.getShortName(), "FGDC", proj); } }
protected void makeCoordinateTransforms(NetcdfDataset ds) { if (projCT != null) { VarProcess vp = findVarProcess(projCT.getName(), null); if (vp != null) vp.ct = projCT; } super.makeCoordinateTransforms(ds); }