Tabnine Logo
EquidistantAzimuthalProjection
Code IndexAdd Tabnine to your IDE (free)

How to use
EquidistantAzimuthalProjection
in
ucar.unidata.geoloc.projection.proj4

Best Java code snippets using ucar.unidata.geoloc.projection.proj4.EquidistantAzimuthalProjection (Showing top 10 results out of 315)

origin: edu.ucar/netcdf

@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new EquidistantAzimuthalProjection(lat0, lon0, falseEasting, falseNorthing, earth);
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: edu.ucar/netcdf

public EquidistantAzimuthalProjection(double lat0, double lon0, double falseEasting, double falseNorthing, Earth earth) {
 super("EquidistantAzimuthalProjection", false);
 this.lat0 = lat0;
 this.lon0 = lon0;
 this.projectionLatitude = Math.toRadians(lat0);
 this.projectionLongitude = Math.toRadians(lon0);
 this.falseEasting = falseEasting;
 this.falseNorthing = falseNorthing;
 this.earth = earth;
 this.e = earth.getEccentricity();
 this.es = earth.getEccentricitySquared();
 this.one_es = 1 - es;
 this.totalScale = earth.getMajor() * .001; // scale factor for cartesion coords in km.
 addParameter(CF.GRID_MAPPING_NAME, CF.AZIMUTHAL_EQUIDISTANT);
 addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0);
 addParameter(CF.LONGITUDE_OF_CENTRAL_MERIDIAN, lon0);
 if ((falseEasting != 0.0) || (falseNorthing != 0.0)) {
  addParameter(CF.FALSE_EASTING, falseEasting);
  addParameter(CF.FALSE_NORTHING, falseNorthing);
  addParameter(CDM.UNITS, "km");
 }
 addParameter(CF.SEMI_MAJOR_AXIS, earth.getMajor());
 addParameter(CF.INVERSE_FLATTENING, 1.0/earth.getFlattening());
 initialize();
}
origin: Unidata/thredds

@Test
public void testEAP() {
 testProjection(new EquidistantAzimuthalProjection());
 EquidistantAzimuthalProjection p = new EquidistantAzimuthalProjection();
 EquidistantAzimuthalProjection p2 = (EquidistantAzimuthalProjection) p.constructCopy();
 assert p.equals(p2);
}
origin: edu.ucar/cdm

public EquidistantAzimuthalProjection(double lat0, double lon0, double falseEasting, double falseNorthing, Earth earth) {
 super("EquidistantAzimuthalProjection", false);
 this.lat0 = lat0;
 this.lon0 = lon0;
 this.projectionLatitude = Math.toRadians(lat0);
 this.projectionLongitude = Math.toRadians(lon0);
 this.falseEasting = falseEasting;
 this.falseNorthing = falseNorthing;
 this.earth = earth;
 this.e = earth.getEccentricity();
 this.es = earth.getEccentricitySquared();
 this.one_es = 1 - es;
 this.totalScale = earth.getMajor() * .001; // scale factor for cartesion coords in km.
 addParameter(CF.GRID_MAPPING_NAME, CF.AZIMUTHAL_EQUIDISTANT);
 addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0);
 addParameter(CF.LONGITUDE_OF_CENTRAL_MERIDIAN, lon0);
 if ((falseEasting != 0.0) || (falseNorthing != 0.0)) {
  addParameter(CF.FALSE_EASTING, falseEasting);
  addParameter(CF.FALSE_NORTHING, falseNorthing);
  addParameter(CDM.UNITS, "km");
 }
 addParameter(CF.SEMI_MAJOR_AXIS, earth.getMajor());
 addParameter(CF.INVERSE_FLATTENING, 1.0 / earth.getFlattening());
 initialize();
}
origin: Unidata/thredds

@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new EquidistantAzimuthalProjection(lat0, lon0, falseEasting, falseNorthing, earth);
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: Unidata/thredds

public EquidistantAzimuthalProjection(double lat0, double lon0, double falseEasting, double falseNorthing, Earth earth) {
 super("EquidistantAzimuthalProjection", false);
 Objects.requireNonNull(earth, "Azimuthal equidistant constructor requires non-null Earth");
 this.lat0 = lat0;
 this.lon0 = lon0;
 this.projectionLatitude = Math.toRadians(lat0);
 this.projectionLongitude = Math.toRadians(lon0);
 this.falseEasting = falseEasting;
 this.falseNorthing = falseNorthing;
 this.earth = earth;
 this.e = earth.getEccentricity();
 this.es = earth.getEccentricitySquared();
 this.one_es = 1 - es;
 this.totalScale = earth.getMajor() * .001; // scale factor for cartesion coords in km.
 addParameter(CF.GRID_MAPPING_NAME, CF.AZIMUTHAL_EQUIDISTANT);
 addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0);
 addParameter(CF.LONGITUDE_OF_CENTRAL_MERIDIAN, lon0);
 if ((falseEasting != 0.0) || (falseNorthing != 0.0)) {
  addParameter(CF.FALSE_EASTING, falseEasting);
  addParameter(CF.FALSE_NORTHING, falseNorthing);
  addParameter(CDM.UNITS, "km");
 }
 addParameter(CF.SEMI_MAJOR_AXIS, earth.getMajor());
 addParameter(CF.INVERSE_FLATTENING, 1.0 / earth.getFlattening());
 initialize();
}
origin: edu.ucar/cdm

@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new EquidistantAzimuthalProjection(lat0, lon0, falseEasting, falseNorthing, earth);
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: edu.ucar/netcdf

 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);
 }
}
origin: edu.ucar/cdm

 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);
 }
}
origin: Unidata/thredds

 public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String geoCoordinateUnits) {
  readStandardParams(ctv, geoCoordinateUnits);

  // create spherical Earth obj if not created by readStandardParams w radii, flattening
  if (earth == null) {
    if (earth_radius > 0.) {
      // Earth radius obtained in readStandardParams is in km, but Earth object wants m
      earth = new Earth(earth_radius * 1000.);
    }
    else {
      earth = new Earth();
    }
  }

  ProjectionImpl proj = new EquidistantAzimuthalProjection(lat0, lon0, false_easting, false_northing, earth);

  return new ProjectionCT(ctv.getName(), "FGDC", proj);
 }
}
ucar.unidata.geoloc.projection.proj4EquidistantAzimuthalProjection

Javadoc

AzimuthalEquidistant Projection. Port from proj4.

Most used methods

  • <init>
  • addParameter
  • initialize
  • constructCopy
  • equals

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • String (java.lang)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ImageIO (javax.imageio)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now