Codota Logo
FlatEarth.addParameter
Code IndexAdd Codota to your IDE (free)

How to use
addParameter
method
in
ucar.unidata.geoloc.projection.FlatEarth

Best Java code snippets using ucar.unidata.geoloc.projection.FlatEarth.addParameter (Showing top 5 results out of 315)

  • Common ways to obtain FlatEarth
private void myMethod () {
FlatEarth f =
  • Codota Iconnew FlatEarth()
  • Codota Iconnew FlatEarth(double1, -100, double2)
  • Codota Iconnew ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rotAngle, radius)
  • Smart code suggestions by Codota
}
origin: edu.ucar/cdm

/**
 * Construct a FlatEarth Projection, two standard parellels.
 * For the one standard parellel case, set them both to the same value.
 *
 * @param lat0     lat origin of the coord. system on the projection plane
 * @param lon0     lon origin of the coord. system on the projection plane
 * @param rotAngle angle of rotation, in degrees
 * @param radius  earth radius in km
 * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg
 */
public FlatEarth(double lat0, double lon0, double rotAngle, double radius) {
 super("FlatEarth", false);
 this.lat0 = Math.toRadians(lat0);
 this.lon0 = Math.toRadians(lon0);
 this.rotAngle = Math.toRadians(rotAngle);
 this.radius = radius;
 precalculate();
 addParameter(CF.GRID_MAPPING_NAME, "flat_earth");
 addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0);
 addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0);
 addParameter(ROTATIONANGLE, rotAngle);
 addParameter(CF.EARTH_RADIUS, radius * 1000);
}
origin: edu.ucar/netcdf

/**
 * Construct a FlatEarth Projection, two standard parellels.
 * For the one standard parellel case, set them both to the same value.
 *
 * @param lat0     lat origin of the coord. system on the projection plane
 * @param lon0     lon origin of the coord. system on the projection plane
 * @param rotAngle angle of rotation, in degrees
 * @param radius  earth radius in km
 * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg
 */
public FlatEarth(double lat0, double lon0, double rotAngle, double radius) {
 super("FlatEarth", false);
 this.lat0 = Math.toRadians(lat0);
 this.lon0 = Math.toRadians(lon0);
 this.rotAngle = Math.toRadians(rotAngle);
 this.radius = radius;
 precalculate();
 addParameter(CF.GRID_MAPPING_NAME, "flat_earth");
 addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0);
 addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0);
 addParameter(ROTATIONANGLE, rotAngle);
 addParameter(CF.EARTH_RADIUS, radius * 1000);
}
origin: Unidata/thredds

/**
 * Construct a FlatEarth Projection, two standard parellels.
 * For the one standard parellel case, set them both to the same value.
 *
 * @param lat0     lat origin of the coord. system on the projection plane
 * @param lon0     lon origin of the coord. system on the projection plane
 * @param rotAngle angle of rotation, in degrees
 * @param radius  earth radius in km
 * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg
 */
public FlatEarth(double lat0, double lon0, double rotAngle, double radius) {
 super("FlatEarth", false);
 this.lat0 = Math.toRadians(lat0);
 this.lon0 = Math.toRadians(lon0);
 this.rotAngle = Math.toRadians(rotAngle);
 this.radius = radius;
 precalculate();
 addParameter(CF.GRID_MAPPING_NAME, "flat_earth");
 addParameter(CF.LATITUDE_OF_PROJECTION_ORIGIN, lat0);
 addParameter(CF.LONGITUDE_OF_PROJECTION_ORIGIN, lon0);
 addParameter(ROTATIONANGLE, rotAngle);
 addParameter(CF.EARTH_RADIUS, radius * 1000);
}
origin: edu.ucar/unidataCommon

/**
 * Construct a FlatEarth Projection, two standard parellels.
 * For the one standard parellel case, set them both to the same value.
 *
 * @param lat0   lat origin of the coord. system on the projection plane
 * @param lon0   lon origin of the coord. system on the projection plane
 * @param rotAngle   angle of rotation, in degrees
 * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg
 */
public FlatEarth(double lat0, double lon0, double rotAngle) {
  this.lat0     = Math.toRadians(lat0);
  this.lon0     = Math.toRadians(lon0);
  this.rotAngle = Math.toRadians(rotAngle);
  origin        = new LatLonPointImpl(lat0, lon0);
  precalculate();
  addParameter(ATTR_NAME, "flat_earth");
  addParameter("latitude_of_projection_origin", lat0);
  addParameter("longitude_of_projection_origin", lon0);
  addParameter("rotationAngle", rotAngle);
}
origin: edu.ucar/unidataCommon

/**
 * Construct a FlatEarth Projection, two standard parellels.
 * For the one standard parellel case, set them both to the same value.
 *
 * @param lat0   lat origin of the coord. system on the projection plane
 * @param lon0   lon origin of the coord. system on the projection plane
 *  rotAngle angle of rotation is default to 0.0
 * @throws IllegalArgumentException if lat0, par1, par2 = +/-90 deg
 */
public FlatEarth(double lat0, double lon0) {
  this.lat0     = Math.toRadians(lat0);
  this.lon0     = Math.toRadians(lon0);
  this.rotAngle = Math.toRadians(0.0);
  origin        = new LatLonPointImpl(lat0, lon0);
  precalculate();
  addParameter(ATTR_NAME, "flat_earth");
  addParameter("latitude_of_projection_origin", lat0);
  addParameter("longitude_of_projection_origin", lon0);
  addParameter("rotationAngle", rotAngle);
  // addParameter("units", "km");
}
// move this to ucar.unit or ucar.unidata.util
ucar.unidata.geoloc.projectionFlatEarthaddParameter

Popular methods of FlatEarth

  • <init>
    Construct a FlatEarth Projection, two standard parellels. For the one standard parellel case, set th
  • getOriginLat
    Get the origin latitude.
  • getOriginLon
    Get the origin longitude.
  • getRotationAngle
    Get the rotation angle.
  • latLonToProj
    Convert lat/lon coordinates to projection coordinates.
  • precalculate
    Precalculate some stuff
  • projToLatLon
    Convert lat/lon coordinates to projection coordinates.
  • toString
  • constructCopy
    origin
  • equals
    Check for equality with the Object in question

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • JFileChooser (javax.swing)
  • JList (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now