move predict to src folder

This commit is contained in:
HB9HIL
2024-08-10 20:09:01 +02:00
parent e7c80ed2c9
commit 54fbafccbb
25 changed files with 32 additions and 296 deletions

View File

@@ -211,11 +211,11 @@ class Satellite extends CI_Controller {
}
function calcpass($sat_tle) {
require_once realpath(__DIR__ . "/../../predict/Predict.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Sat.php");
require_once realpath(__DIR__ . "/../../predict/Predict/QTH.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Time.php");
require_once realpath(__DIR__ . "/../../predict/Predict/TLE.php");
require_once "./src/predict/Predict.php";
require_once "./src/predict/Predict/Sat.php";
require_once "./src/predict/Predict/QTH.php";
require_once "./src/predict/Predict/Time.php";
require_once "./src/predict/Predict/TLE.php";
// The observer or groundstation is called QTH in ham radio terms
$predict = new Predict();

View File

@@ -1,19 +0,0 @@
{
"name": "predict/predict",
"type": "library",
"description": "Predict PHP",
"keywords": [
"sgp",
"sgp4",
"sdp4",
"satellite",
"iss"
],
"homepage": "https://github.com/shupp/Predict",
"authors": [
{
"name": "Bill Shupp",
"email": "bill@shupp.org"
}
]
}

View File

@@ -1,63 +0,0 @@
<?php
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
require_once('PEAR/PackageFileManager2.php');
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$packagexml = new PEAR_PackageFileManager2;
$packagexml->setOptions(array(
'baseinstalldir' => '/',
'simpleoutput' => true,
'packagedirectory' => './',
'filelistgenerator' => 'file',
'ignore' => array('generatePackage.php', 'xhprof_lib/*'),
'dir_roles' => array(
'tests' => 'test',
'examples' => 'doc'
),
'exceptions' => array('README.md' => 'doc'),
));
$packagexml->setPackage('Predict');
$packagexml->setSummary('A partial port of the Gpredict program for satellite tracking');
$packagexml->setDescription(
'Predict is a partial PHP port of the Gpredict (http://gpredict.oz9aec.net/) program that '
. 'allows real-time tracking and orbit prediction of satellites from two line element sets. '
. 'It supports the SGP4 and SDP4 models for prediction.'
);
$packagexml->setChannel('shupp.github.com/pirum');
$packagexml->setAPIVersion('0.2.2');
$packagexml->setReleaseVersion('0.2.2');
$packagexml->setReleaseStability('alpha');
$packagexml->setAPIStability('alpha');
$packagexml->setNotes('
* Addec Predict_TLE::createChecksum()
* Updates to examples
');
$packagexml->setPackageType('php');
$packagexml->addRelease();
$packagexml->detectDependencies();
$packagexml->addMaintainer('lead',
'shupp',
'Bill Shupp',
'shupp@php.net');
$packagexml->setLicense('GPL v2.1',
'http://www.opensource.org/licenses/gpl-license.php');
$packagexml->setPhpDep('5.2.0');
$packagexml->setPearinstallerDep('1.4.0b1');
$packagexml->addExtensionDep('required', 'date');
$packagexml->generateContents();
$packagexml->writePackageFile();
?>

View File

@@ -1,182 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
http://pear.php.net/dtd/tasks-1.0.xsd
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd">
<name>Predict</name>
<channel>shupp.github.com/pirum</channel>
<summary>A partial port of the Gpredict program for satellite tracking</summary>
<description>Predict is a partial PHP port of the Gpredict (http://gpredict.oz9aec.net/) program that allows real-time tracking and orbit prediction of satellites from two line element sets. It supports the SGP4 and SDP4 models for prediction.</description>
<lead>
<name>Bill Shupp</name>
<user>shupp</user>
<email>shupp@php.net</email>
<active>yes</active>
</lead>
<date>2014-03-06</date>
<time>13:28:41</time>
<version>
<release>0.2.2</release>
<api>0.2.2</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.1</license>
<notes>
* Addec Predict_TLE::createChecksum()
* Updates to examples
</notes>
<contents>
<dir baseinstalldir="/" name="/">
<dir name="examples">
<file name="benchmark.php" role="doc" />
<file name="findsun.php" role="doc" />
<file name="google_maps_iss.png" role="doc" />
<file name="iss.tle" role="doc" />
<file name="pass_polar_plot.png" role="doc" />
<file name="solar_position.php" role="doc" />
<file name="update_iss_tle.php" role="doc" />
<file name="visible_passes.php" role="doc" />
</dir> <!-- /examples -->
<dir name="Predict">
<file name="DeepArg.php" role="php" />
<file name="DeepStatic.php" role="php" />
<file name="Exception.php" role="php" />
<file name="Geodetic.php" role="php" />
<file name="Math.php" role="php" />
<file name="ObsSet.php" role="php" />
<file name="Pass.php" role="php" />
<file name="PassDetail.php" role="php" />
<file name="QTH.php" role="php" />
<file name="Sat.php" role="php" />
<file name="SGPObs.php" role="php" />
<file name="SGPSDP.php" role="php" />
<file name="SGSDPStatic.php" role="php" />
<file name="Solar.php" role="php" />
<file name="Time.php" role="php" />
<file name="TLE.php" role="php" />
<file name="Vector.php" role="php" />
</dir> <!-- /Predict -->
<dir name="tests">
<file name="Table.php" role="test" />
<file name="test-001.php" role="test" />
<file name="test-001.tle" role="test" />
<file name="test-002.php" role="test" />
<file name="test-002.tle" role="test" />
</dir> <!-- /tests -->
<file name="Predict.php" role="php" />
<file name="README.md" role="doc" />
</dir> <!-- / -->
</contents>
<dependencies>
<required>
<php>
<min>5.2.0</min>
</php>
<pearinstaller>
<min>1.4.0b1</min>
</pearinstaller>
<extension>
<name>date</name>
</extension>
</required>
</dependencies>
<phprelease />
<changelog>
<release>
<version>
<release>0.1.0</release>
<api>0.1.0</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2011-08-22</date>
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.1</license>
<notes>
* Initial release
</notes>
</release>
<release>
<version>
<release>0.1.1</release>
<api>0.1.1</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2011-09-05</date>
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.1</license>
<notes>
* Fixed minimum elevation bug in visible pass detection
* Updated precision of Pogson&apos;s Ratio, refactored calculate magnitude to be more readble, as well as added comments
</notes>
</release>
<release>
<version>
<release>0.1.2</release>
<api>0.1.2</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2011-09-25</date>
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.1</license>
<notes>
* Added Predict_Time::getEpochTimeStamp()
</notes>
</release>
<release>
<version>
<release>0.2.0</release>
<api>0.2.0</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2012-05-21</date>
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.1</license>
<notes>
* Fixed bug in Predict_Time::unix2daynum()
* Updated example iss.tle file
</notes>
</release>
<release>
<version>
<release>0.2.1</release>
<api>0.2.1</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2012-07-04</date>
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.1</license>
<notes>
* Corrected role of README.md
</notes>
</release>
<release>
<version>
<release>0.2.2</release>
<api>0.2.2</api>
</version>
<stability>
<release>alpha</release>
<api>alpha</api>
</stability>
<date>2014-03-06</date>
<license uri="http://www.opensource.org/licenses/gpl-license.php">GPL v2.1</license>
<notes>
* Addec Predict_TLE::createChecksum()
* Updates to examples
</notes>
</release>
</changelog>
</package>

View File

@@ -35,16 +35,16 @@
along with this program; if not, visit http://www.fsf.org/
*/
require_once realpath(__DIR__ . "/../predict/Predict/Time.php");
require_once realpath(__DIR__ . "/../predict/Predict/Math.php");
require_once realpath(__DIR__ . "/../predict/Predict/Pass.php");
require_once realpath(__DIR__ . "/../predict/Predict/PassDetail.php");
require_once realpath(__DIR__ . "/../predict/Predict/Vector.php");
require_once realpath(__DIR__ . "/../predict/Predict/Geodetic.php");
require_once realpath(__DIR__ . "/../predict/Predict/ObsSet.php");
require_once realpath(__DIR__ . "/../predict/Predict/Solar.php");
require_once realpath(__DIR__ . "/../predict/Predict/SGPSDP.php");
require_once realpath(__DIR__ . "/../predict/Predict/SGPSDP.php");
require_once "Predict/Time.php";
require_once "Predict/Math.php";
require_once "Predict/Pass.php";
require_once "Predict/PassDetail.php";
require_once "Predict/Vector.php";
require_once "Predict/Geodetic.php";
require_once "Predict/ObsSet.php";
require_once "Predict/Solar.php";
require_once "Predict/SGPSDP.php";
require_once "Predict/SGPSDP.php";
/**
* The main Predict class. Contains constants for use by other classes, as well as

View File

@@ -5,7 +5,7 @@
* Ported to PHP by Bill Shupp. Original comments below
*/
require_once realpath(__DIR__ . "/../../predict/Predict.php");
require_once realpath(__DIR__ . "/../Predict.php");
/*
* Unit SGP_Math

View File

@@ -1,6 +1,6 @@
<?php
require_once realpath(__DIR__ . "/../../predict/Predict/Vector.php");
require_once realpath(__DIR__ . "/../Predict/Vector.php");
/** Pass detail entry.

View File

@@ -6,11 +6,11 @@
* Ported to PHP by Bill Shupp. Original comments below
*/
require_once realpath(__DIR__ . "/../../predict/Predict/Math.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Time.php");
require_once realpath(__DIR__ . "/../../predict/Predict.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Vector.php");
require_once realpath(__DIR__ . "/../../predict/Predict/ObsSet.php");
require_once realpath(__DIR__ . "/../Predict/Math.php");
require_once realpath(__DIR__ . "/../Predict/Time.php");
require_once realpath(__DIR__ . "/../Predict.php");
require_once realpath(__DIR__ . "/../Predict/Vector.php");
require_once realpath(__DIR__ . "/../Predict/ObsSet.php");
/*

View File

@@ -5,9 +5,9 @@
* Original comments below
*/
require_once realpath(__DIR__ . "/../../predict/Predict.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Time.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Math.php");
require_once realpath(__DIR__ . "/../Predict.php");
require_once realpath(__DIR__ . "/../Predict/Time.php");
require_once realpath(__DIR__ . "/../Predict/Math.php");

View File

@@ -4,13 +4,13 @@
* Ported from gpredict to PHP by Bill Shupp
*/
require_once realpath(__DIR__ . "/../../predict/Predict.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Math.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Time.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Vector.php");
require_once realpath(__DIR__ . "/../../predict/Predict/Geodetic.php");
require_once realpath(__DIR__ . "/../../predict/Predict/ObsSet.php");
require_once realpath(__DIR__ . "/../../predict/Predict/SGPObs.php");
require_once realpath(__DIR__ . "/../Predict.php");
require_once realpath(__DIR__ . "/../Predict/Math.php");
require_once realpath(__DIR__ . "/../Predict/Time.php");
require_once realpath(__DIR__ . "/../Predict/Vector.php");
require_once realpath(__DIR__ . "/../Predict/Geodetic.php");
require_once realpath(__DIR__ . "/../Predict/ObsSet.php");
require_once realpath(__DIR__ . "/../Predict/SGPObs.php");
/*