package orbit;

/**
 * This class corresponds to SGP4TEST.PAS
 *
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: </p>
 * @author unascribed
 * @version 1.0
 */

public class Main {

  public static void main(String[] args) {

    String[] iss_2Line = {"1 25544U 98067A   03007.53073344  .00041100  00000-0  34010-3 0  9019",
                         "2 25544  51.6346 107.2569 0004536   6.6073 353.5141 15.58656572 35940"};

/* 80275.98708465 -> "epoch" year is 1980; Julian day of epoch is 275.98708465 (essentially millisecond resolution)
*/
    String[] sat_data = {"1 88888U          80275.98708465  .00073094  13844-3  66816-4 0    8 ",
                         "2 88888  72.8435 115.9689 0086731  52.6988 110.5714 16.05824518  105 "};

    TwoLineElement tle = new TwoLineElement(iss_2Line);
//    TwoLineElement tle = new TwoLineElement(sat_data);
    Computations calc = new Computations(tle);

    int delta = 360;    // 360 minutes = 6 hours between predictions
    double elapsedTime = 0;

    for (int i = 0; i < 5;  i++) {
      calc.sgp4(elapsedTime, tle);
      elapsedTime += delta;
    }
  }
}