Examples of CelestialRaDec


Examples of net.ivoa.wcs.coordinates.CelestialRaDec

                        * Math.cos(phi - Math.PI)); // (2), p. 1079
        double dec = Math.asin(Math.sin(theta) * Math.sin(dec0)
                + Math.cos(theta) * Math.cos(dec0) * Math.cos(phi - Math.PI)); // (2),
        // p.
        // 1079
        return new CelestialRaDec(Math.toDegrees(ra), Math.toDegrees(dec));
    }
View Full Code Here

Examples of net.ivoa.wcs.coordinates.CelestialRaDec

                    .getCelestialCoordinates(pixelCoordinates);
            PixelCoordinates pc2 = ctan.getPixelCoordinates(celCol);
            assertEquals(pixelCoordinates.getX(), pc2.getX(), 1.0 / 36000);
            assertEquals(pixelCoordinates.getY(), pc2.getY(), 1.0 / 36000);
            // test coordinates 290, -66
            celCol = new CelestialRaDec(290, -66);
            pixelCoordinates = ctan.getPixelCoordinates(celCol);
            CelestialCoordinates cc2 = ctan
                    .getCelestialCoordinates(pixelCoordinates);
            assertEquals(celCol.getRA(), cc2.getRA(), 1.0 / 36000);
            assertEquals(celCol.getDEC(), cc2.getDEC(), 1.0 / 36000);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.