Esempio n. 1
0
 /**
  * Creates a new JPL DE ephemeris reader
  *
  * @param DE    $de  JPL DE version to load
  * @param float $jde Optional initial JDE in TDB
  */
 public function __construct(DE $de = null, $jde = 2451545.5)
 {
     // Set DE version if provided otherwise load default
     $this->de = $de ? $de : DE::parse(static::DE_DEFAULT);
     // Get the DE storage path
     $this->path = $this->getStoragePath();
     // Parse DE header file
     $this->header = new Header($this->selectHeaderFile());
     // Set initial JDE of instance
     $this->jde($jde);
 }