Tabnine Logo
FlatEarth.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
ucar.unidata.geoloc.projection.FlatEarth
constructor

Best Java code snippets using ucar.unidata.geoloc.projection.FlatEarth.<init> (Showing top 20 results out of 315)

origin: edu.ucar/cdm

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
 FlatEarth a = new FlatEarth(90, -100, 0.0);
 ProjectionPoint p = a.latLonToProj(89, -101);
 System.out.println("proj point = " + p);
 LatLonPoint ll = a.projToLatLon(p);
 System.out.println("ll = " + ll);
}
origin: Unidata/thredds

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
 FlatEarth a = new FlatEarth(90, -100, 0.0);
 ProjectionPoint p = a.latLonToProj(89, -101);
 System.out.println("proj point = " + p);
 LatLonPoint ll = a.projToLatLon(p);
 System.out.println("ll = " + ll);
}
origin: edu.ucar/unidataCommon

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
  FlatEarth           a = new FlatEarth(90, -100, 0.0);
  ProjectionPointImpl p = a.latLonToProj(89, -101);
  System.out.println("proj point = " + p);
  LatLonPoint ll = a.projToLatLon(p);
  System.out.println("ll = " + ll);
}
origin: edu.ucar/netcdf

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
 FlatEarth a = new FlatEarth(90, -100, 0.0);
 ProjectionPointImpl p = a.latLonToProj(89, -101);
 System.out.println("proj point = " + p);
 LatLonPoint ll = a.projToLatLon(p);
 System.out.println("ll = " + ll);
}
origin: opengeospatial/geoapi

  @Override protected FlatEarth createProjection(final ParameterValueGroup p) {
    if (p == null) return new FlatEarth();
    return new FlatEarth(value(p, CF.LATITUDE_OF_PROJECTION_ORIGIN),
               value(p, CF.LONGITUDE_OF_PROJECTION_ORIGIN),
               value(p, FlatEarth.ROTATIONANGLE),
               earthRadius(p) / KILOMETRE);
  }
}
origin: edu.ucar/unidataCommon

 /** copy constructor - avoid clone !! */
public ProjectionImpl constructCopy() {
 return new FlatEarth( getOriginLat(), getOriginLon(), getRotationAngle());     
}
origin: edu.ucar/netcdf

/**
 * origin
 */
//private LatLonPointImpl origin;  // why are we keeping this?
@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle());
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: Unidata/thredds

@Test
public void testFlatEarth() {
 testProjectionProjMax(new FlatEarth(), 5000, 5000);
 FlatEarth p = new FlatEarth();
 FlatEarth p2 = (FlatEarth) p.constructCopy();
 assert p.equals(p2);
}
origin: edu.ucar/cdm

/**
 * origin
 */
//private LatLonPointImpl origin;  // why are we keeping this?
@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle());
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: Unidata/thredds

/**
 * origin
 */
//private LatLonPointImpl origin;  // why are we keeping this?
@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle());
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: edu.ucar/cdm

 public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) {
  double lon0 = readAttributeDouble( ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double lat0 = readAttributeDouble( ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0);
  double earth_radius = getEarthRadiusInKm(ctv);

  ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius);
  return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
 }
}
origin: edu.ucar/netcdf

 public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) {
  double lon0 = readAttributeDouble( ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double lat0 = readAttributeDouble( ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0);
  double earth_radius = getEarthRadiusInKm(ctv);

  ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius);
  return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
 }
}
origin: Unidata/thredds

 public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String geoCoordinateUnits) {
  double lon0 = readAttributeDouble( ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double lat0 = readAttributeDouble( ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0);
  double earth_radius = getEarthRadiusInKm(ctv);

  ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius);
  return new ProjectionCT(ctv.getName(), "FGDC", proj);
 }
}
origin: Unidata/thredds

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/cdm

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/netcdf

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: Unidata/thredds

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/cdm

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/netcdf

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: Unidata/thredds

switch (projType) {
 case 0: // for diagnostic runs with no georeferencing
  proj = new FlatEarth();
  projCT = new ProjectionCT("flat_earth", "FGDC", proj);
ucar.unidata.geoloc.projectionFlatEarth<init>

Javadoc

Constructor with default parameters

Popular methods of FlatEarth

  • addParameter
  • 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

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JTextField (javax.swing)
  • 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