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

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

Best Java code snippets using ucar.unidata.geoloc.projection.FlatEarth.precalculate (Showing top 7 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/unidataCommon

/**
 * Set the origin longitude.
 * @param lon   the origin longitude.
 */
public void setOriginLon(double lon) {
  origin.setLongitude(lon);
  lon0 = Math.toRadians(lon);
  precalculate();
}
origin: edu.ucar/unidataCommon

/**
* Set the origin latitude.
*
* @param lat   the origin latitude.
*/
public void setOriginLat(double lat) {
  origin.setLatitude(lat);
  lat0 = Math.toRadians(lat);
  precalculate();
}
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/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
 *  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.projectionFlatEarthprecalculate

Javadoc

Precalculate some stuff

Popular methods of FlatEarth

  • <init>
    Construct a FlatEarth Projection, two standard parellels. For the one standard parellel case, set th
  • addParameter
  • getOriginLat
    Get the origin latitude.
  • getOriginLon
    Get the origin longitude.
  • getRotationAngle
    Get the rotation angle.
  • latLonToProj
    Convert lat/lon coordinates to projection coordinates.
  • 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
  • getContentResolver (Context)
  • putExtra (Intent)
  • getSystemService (Context)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Join (org.hibernate.mapping)
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