public static void testEphemeris(JPLEphemeris ephemeris) {
		if (ephemeris == null) {
			System.out.println("EPHEMERIS OBJECT IS NULL");
			return;
		}

		double tEarliest = ephemeris.getEarliestDate();
		double tLatest = ephemeris.getLatestDate();
		System.out.println("Ephemeris has number "
				+ ephemeris.getEphemerisNumber());
		System.out.println("Date range is " + tEarliest + " to " + tLatest);

		System.out.println("The ephemeris has "
				+ ephemeris.getNumberOfDataRecords()
				+ " records, each of length "
				+ ephemeris.getLengthOfDataRecord());

		System.out.println();

		System.out.println("The ephemeris has the following components:");
		for (int i = 0; i < planetNames.length; i++)
			if (ephemeris.hasComponent(i))
				System.out.println("[" + i + "] " + planetNames[i]);

		System.out.println();

		System.out.println("AU    = " + ephemeris.getAU());
		System.out.println("EMRAT = " + ephemeris.getEMRAT());

		if (Boolean.getBoolean("showConstants")) {
			System.out.println();
			System.out.println("CONSTANTS");

			Set<Map.Entry<String, Double>> consts = ephemeris.getConstantsEntrySet();

			for (Iterator<Map.Entry<String, Double>> iter = consts.iterator(); iter.hasNext();) {
				Map.Entry<String, Double> entry = iter.next();
				System.out.println(entry.getKey() + " = " + entry.getValue());
			}
		}
		
		System.out.println("================================================================================");
	}