public String azimuth2compassPoint(double azimuth) {

        String cp;
        double slice = 360.0 / 16;
        if (azimuth < slice) {
            cp = "N";
        } else if (azimuth < slice * 3) {
            cp = "NE";
        } else if (azimuth < slice * 5) {
            cp = "E";
        } else if (azimuth < slice * 7) {
            cp = "SE";
        } else if (azimuth < slice * 9) {
            cp = "S";
        } else if (azimuth < slice * 11) {
            cp = "SW";
        } else if (azimuth < slice * 13) {
            cp = "W";
        } else if (azimuth < slice * 15) {
            cp = "NW";
        } else {
            cp = "N";
        }
        return cp;
    }
@Test
    public void testAzimuthCompassPoint() {
        assertEquals("S", AC.azimuth2compassPoint(199));
    }