congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FlatEarth.addParameter
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Notification (javax.management)
  • 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