class TSAGeoMag {

    public double decimalYear(GregorianCalendar cal)
    {
        int year = cal.get(Calendar.YEAR);
        double daysInYear;
        if(cal.isLeapYear(year))
        {
            daysInYear = 366.0;
        }
        else
        {
            daysInYear = 365.0;
        }

        return year + cal.get(Calendar.DAY_OF_YEAR)/daysInYear;
    }

    public  TSAGeoMag();

}