@Override protected RotatedPole createProjection(final ParameterValueGroup p) { if (p == null) return new RotatedPole(); return new RotatedPole(value(p, CF.GRID_NORTH_POLE_LATITUDE), value(p, CF.GRID_NORTH_POLE_LONGITUDE)); } }
/** * copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new RotatedPole(northPole.getY(), northPole.getX()); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new RotatedPole(northPole.getY(), northPole.getX()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) { double lon = readAttributeDouble( ctv, CF.GRID_NORTH_POLE_LONGITUDE, Double.NaN); double lat = readAttributeDouble( ctv, CF.GRID_NORTH_POLE_LATITUDE, Double.NaN); ucar.unidata.geoloc.projection.RotatedPole proj = new ucar.unidata.geoloc.projection.RotatedPole( lat, lon); return new ProjectionCT(ctv.getShortName(), "FGDC", proj); }
public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String geoCoordinateUnits) { double lon = readAttributeDouble( ctv, CF.GRID_NORTH_POLE_LONGITUDE, Double.NaN); double lat = readAttributeDouble( ctv, CF.GRID_NORTH_POLE_LATITUDE, Double.NaN); ucar.unidata.geoloc.projection.RotatedPole proj = new ucar.unidata.geoloc.projection.RotatedPole( lat, lon); return new ProjectionCT(ctv.getName(), "FGDC", proj); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new RotatedPole(northPole.getY(), northPole.getX()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) { double lon = readAttributeDouble( ctv, CF.GRID_NORTH_POLE_LONGITUDE, Double.NaN); double lat = readAttributeDouble( ctv, CF.GRID_NORTH_POLE_LATITUDE, Double.NaN); ucar.unidata.geoloc.projection.RotatedPole proj = new ucar.unidata.geoloc.projection.RotatedPole( lat, lon); return new ProjectionCT(ctv.getShortName(), "FGDC", proj); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new RotatedPole(northPole.getY(), northPole.getX()); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Test public void testRotatedPole() { testProjectionLonMax(new RotatedPole(37, 177), 360, 88); RotatedPole p = new RotatedPole(); RotatedPole p2 = (RotatedPole) p.constructCopy(); assert p.equals(p2); }
public GdsHorizCoordSys makeHorizCoordSys() { RotatedPole proj = new RotatedPole(latNorthPole, lonNorthPole); // LOOK dont transform - works for grib1 Q:/cdmUnitTest/transforms/HIRLAMhybrid.grib // LatLonPoint startLL = proj.projToLatLon(new ProjectionPointImpl(lo1, la1)); //double startx = startLL.getLongitude(); //double starty = startLL.getLatitude(); return new GdsHorizCoordSys(getNameShort(), template, getOctet4(7), scanMode, proj, lo1, deltaLon, la1, deltaLat, getNxRaw(), getNyRaw(), getNptsInLine()); }
lonNorthPole = LatLonPointImpl.lonNormal(lonCentre); RotatedPole proj = new RotatedPole(latNorthPole, lonNorthPole);