congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MSGnavigation.getLon0
Code IndexAdd Tabnine to your IDE (free)

How to use
getLon0
method
in
ucar.unidata.geoloc.projection.sat.MSGnavigation

Best Java code snippets using ucar.unidata.geoloc.projection.sat.MSGnavigation.getLon0 (Showing top 1 results out of 315)

origin: Unidata/thredds

  @Test
  public void testConstructCopy() throws Exception {
    // These are the same as the values used in MSGnavigation() except for the 2nd, lon0. For the purposes of
    // this test, that's the only argument I care about.
    MSGnavigation msgNav =
        new MSGnavigation(0.0, 180, R_EQ, R_POL, SAT_HEIGHT, SAT_HEIGHT - R_EQ, SAT_HEIGHT - R_EQ);

    Assert.assertEquals(Math.PI, msgNav.getLon0(), 1e-6);  // 180° = π radians.

    // The 2 tests below failed prior to TDS-575 being fixed.

    MSGnavigation msgNavCopy1 = (MSGnavigation) msgNav.constructCopy();
    Assert.assertEquals(Math.PI, msgNavCopy1.getLon0(), 1e-6);  // 180° = π radians.

    MSGnavigation msgNavCopy2 = (MSGnavigation) msgNavCopy1.constructCopy();
    Assert.assertEquals(Math.PI, msgNavCopy2.getLon0(), 1e-6);  // 180° = π radians.
  }
}
ucar.unidata.geoloc.projection.satMSGnavigationgetLon0

Popular methods of MSGnavigation

  • <init>
    Constructor
  • addParameter
  • geocoord2pixcoord
  • pixcoord2geocoord
  • addGoodPts
  • getLimitCoord
  • latLonToProj
  • makeRect
  • constructCopy
    copy constructor - avoid clone !!

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Top PhpStorm plugins
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