Tabnine Logo
FlatEarth.precalculate
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Reference (javax.naming)
  • JFrame (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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