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

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

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

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: 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

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();
}
ucar.unidata.geoloc.projection.proj4EquidistantAzimuthalProjectionaddParameter

Popular methods of EquidistantAzimuthalProjection

  • <init>
  • 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)
  • From CI to AI: The AI layer in your organization
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