From 94dbf3b119a7fc3832364cfb53f3cdad777aa0b6 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sat, 27 Feb 2021 18:27:26 +0000 Subject: [PATCH] Adding spktype01 and spktype21, two supporting modules for jplephem to handle data type 1 and 21. --- astro/Makefile | 2 ++ astro/py-spktype01/Makefile | 33 +++++++++++++++++++++++++++++++++ astro/py-spktype01/distinfo | 3 +++ astro/py-spktype01/pkg-descr | 15 +++++++++++++++ astro/py-spktype21/Makefile | 35 +++++++++++++++++++++++++++++++++++ astro/py-spktype21/distinfo | 3 +++ astro/py-spktype21/pkg-descr | 17 +++++++++++++++++ 7 files changed, 108 insertions(+) create mode 100644 astro/py-spktype01/Makefile create mode 100644 astro/py-spktype01/distinfo create mode 100644 astro/py-spktype01/pkg-descr create mode 100644 astro/py-spktype21/Makefile create mode 100644 astro/py-spktype21/distinfo create mode 100644 astro/py-spktype21/pkg-descr diff --git a/astro/Makefile b/astro/Makefile index d1de621b96a1..3280350de3d8 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -93,6 +93,8 @@ SUBDIR += py-ro SUBDIR += py-sgp4 SUBDIR += py-spacetrack + SUBDIR += py-spktype01 + SUBDIR += py-spktype21 SUBDIR += pyweather SUBDIR += qmapshack SUBDIR += readosm diff --git a/astro/py-spktype01/Makefile b/astro/py-spktype01/Makefile new file mode 100644 index 000000000000..06e0f2c3b543 --- /dev/null +++ b/astro/py-spktype01/Makefile @@ -0,0 +1,33 @@ +# Created by: thierry@pompo.net +# $FreeBSD$ + +PORTNAME= spktype01 +PORTVERSION= 1.0.0 +CATEGORIES= astro python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Supporting module for jplephem to handle data type 1 + +LICENSE= MIT + +BUILD_DEPENDS= ${NUMPY} +RUN_DEPENDS= ${NUMPY} \ + ${PYTHON_PKGNAMEPREFIX}jplephem>0:astro/py-jplephem@${PY_FLAVOR} + +USE_GITHUB= yes +GH_ACCOUNT= whiskie14142 +GH_TAGNAME= 964cc70 + +USES= python:3.7+ +USE_PYTHON= distutils + +WRKSRC_SUBDIR= package/${PORTNAME} +TEST_WRKSRC= ${WRKSRC}/../../test +NO_ARCH= yes + +PLIST_FILES= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/__pycache__/spktype01.cpython-${PYTHON_SUFFIX}.opt-1.pyc \ + ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/__pycache__/spktype01.cpython-${PYTHON_SUFFIX}.pyc \ + ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/spktype01.py + +.include diff --git a/astro/py-spktype01/distinfo b/astro/py-spktype01/distinfo new file mode 100644 index 000000000000..70325e58fa44 --- /dev/null +++ b/astro/py-spktype01/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1613725418 +SHA256 (whiskie14142-spktype01-1.0.0-964cc70_GH0.tar.gz) = 4ca5ad6e18be4bd6558c33cda3685d9fb135c3a25de2a32ccfd67755c4972c8a +SIZE (whiskie14142-spktype01-1.0.0-964cc70_GH0.tar.gz) = 2401389 diff --git a/astro/py-spktype01/pkg-descr b/astro/py-spktype01/pkg-descr new file mode 100644 index 000000000000..c171f94369b8 --- /dev/null +++ b/astro/py-spktype01/pkg-descr @@ -0,0 +1,15 @@ +This module computes positions and velocities of a celestial small body, from a +NASA SPICE SPK ephemeris kernel file of data type 1 (Modified Difference +Arrays). +See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/req/spk.html + +You can get SPK files for many solar system small bodies from HORIZONS system of +NASA/JPL. +See https://ssd.jpl.nasa.gov/?horizons + +This module reads SPK files of data type 1, one of the types of binary SPK file. +At the point of Oct. 2018, HORIZONS system provides files of type 21 as binary +SPK files by default. You can get type 1 binary SPK file for celestial small +bodies through TELNET interface by answering back '1' for 'SPK file format'. + +WWW: https://github.com/whiskie14142/spktype01 diff --git a/astro/py-spktype21/Makefile b/astro/py-spktype21/Makefile new file mode 100644 index 000000000000..486e47ae52e3 --- /dev/null +++ b/astro/py-spktype21/Makefile @@ -0,0 +1,35 @@ +# Created by: thierry@pompo.net +# $FreeBSD$ + +PORTNAME= spktype21 +PORTVERSION= 0.1.0 +CATEGORIES= astro python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Supporting module for jplephem to handle data type 21 + +LICENSE= MIT + +BUILD_DEPENDS= ${NUMPY} +RUN_DEPENDS= ${NUMPY} \ + ${PYTHON_PKGNAMEPREFIX}jplephem>0:astro/py-jplephem@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}spktype01>0:astro/py-spktype01@${PY_FLAVOR} \ + py.test:devel/py-pytest@${PY_FLAVOR} + +USE_GITHUB= yes +GH_ACCOUNT= whiskie14142 +GH_TAGNAME= 7ed2236 + +USES= python:3.7+ +USE_PYTHON= distutils + +WRKSRC_SUBDIR= package/${PORTNAME} +TEST_WRKSRC= ${WRKSRC}/../../test +NO_ARCH= yes + +PLIST_FILES= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/__pycache__/spktype21.cpython-${PYTHON_SUFFIX}.opt-1.pyc \ + ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/__pycache__/spktype21.cpython-${PYTHON_SUFFIX}.pyc \ + ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}/spktype21.py + +.include diff --git a/astro/py-spktype21/distinfo b/astro/py-spktype21/distinfo new file mode 100644 index 000000000000..7413887f4ace --- /dev/null +++ b/astro/py-spktype21/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1613682458 +SHA256 (whiskie14142-spktype21-0.1.0-7ed2236_GH0.tar.gz) = 100dc47a9902ab2313bf9bb670f504866ba2824fb424398c01ddfca600bba077 +SIZE (whiskie14142-spktype21-0.1.0-7ed2236_GH0.tar.gz) = 2801513 diff --git a/astro/py-spktype21/pkg-descr b/astro/py-spktype21/pkg-descr new file mode 100644 index 000000000000..03516dbc2590 --- /dev/null +++ b/astro/py-spktype21/pkg-descr @@ -0,0 +1,17 @@ +This module computes positions and velocities of a celestial small body, from a +NASA SPICE SPK ephemeris kernel file of data type 21 (Extended Modified +Difference Arrays). +See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/req/spk.html + +You can get SPK files for many solar system small bodies from HORIZONS system of +NASA/JPL. +See https://ssd.jpl.nasa.gov/?horizons + +This module reads SPK files of data type 21, one of the types of binary SPK +file. At the point of Oct. 2018, HORIZONS system provides files of type 21 as +binary SPK files by default. You can get type 21 binary SPK file for celestial +small bodies through TELNET interface by answering back 'B' for 'SPK file +format'. Also you can get type 21 binary SPK file from: +https://ssd.jpl.nasa.gov/x/spk.html + +WWW: https://github.com/whiskie14142/spktype21