From 8fa76b836ddc651ff3ca3637af27a5c977af367d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 7 Feb 2021 23:38:58 +0000 Subject: gnu: Add python-skyfield. * gnu/packages/astronomy.scm (python-skyfield): New variable. Signed-off-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 07dee4b462..c239a02f3b 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -48,6 +48,8 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) + #:use-module (gnu packages python-crypto) + #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages version-control) @@ -726,3 +728,30 @@ more.") "The package is a Python implementation of the mathematics that standard JPL ephemerides use to predict raw (x,y,z) planetary positions.") (license license:expat))) + +(define-public python-skyfield + (package + (name "python-skyfield") + (version "1.36") + (source + (origin + (method url-fetch) + (uri (pypi-uri "skyfield" version)) + (sha256 + (base32 "1dm1327a4qv3klj9blrvddbhl72v1fqz52ym9km8qjj9vdkpywh6")))) + (build-system python-build-system) + (arguments + ;; NOTE: (Sharlatan-20210207T163305+0000): tests depend on custom test + ;; framework https://github.com/brandon-rhodes/assay + `(#:tests? #f)) + (inputs + `(("certifi" ,python-certifi) + ("jplephem" ,python-jplephem) + ("numpy" ,python-numpy) + ("sgp4" ,python-sgp4))) + (home-page "https://rhodesmill.org/skyfield/") + (synopsis "Astronomy for Python") + (description + "Skyfield computes positions for the stars, planets, and satellites in +orbit around the Earth.") + (license license:expat))) -- cgit v1.2.3 From c1563fc116584cec517c9f5c866c661d3e7cec4e Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 13 Feb 2021 14:30:01 +0000 Subject: gnu: Add qfits. * gnu/packages/astronomy.scm (qfits): New variable. Signed-off-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index c239a02f3b..9f6b102af7 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -94,6 +94,25 @@ in FITS files.") (license (license:non-copyleft "file://License.txt" "See License.txt in the distribution.")))) +(define-public qfits + (package + (name "qfits") + (version "6.2.0") + (source + (origin + (method url-fetch) + (uri + (string-append "ftp://ftp.eso.org/pub/qfits/qfits-" version ".tar.gz")) + (sha256 + (base32 "0m2b21mim3a7wgfg3ph2w5hv7mdvr03jmmhzipc0wcahijglcw9j")))) + (build-system gnu-build-system) + (home-page "https://www.eso.org/sci/software/eclipse/qfits/") + (synopsis "C library offering access to astronomical FITS files") + (description + "@code{qfits} is a C library giving access to FITS file internals, both +for reading and writing.") + (license license:gpl2+))) + (define-public eye (package (name "eye") -- cgit v1.2.3 From 4fac8b8f9bcc6742ea148ffcd52bd3cdbc746e16 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Feb 2021 10:00:56 +0100 Subject: gnu: Add erfa. * gnu/packages/astronomy.scm (erfa): New variable. Signed-off-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 9f6b102af7..09ac9e0157 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -113,6 +113,32 @@ in FITS files.") for reading and writing.") (license license:gpl2+))) +(define-public erfa + (package + (name "erfa") + (version "1.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/liberfa/erfa") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vsqwvzlk7r8q7nwyb7i710blcfdl5kwcm2va9km07a820nsp84a")))) + (build-system gnu-build-system) + (native-inputs + `(("automake" ,automake) + ("autoreconf" ,autoconf) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/liberfa/erfa") + (synopsis "Essential Routines for Fundamental Astronomy") + (description + "ERFA is a C library containing key algorithms for astronomy, and is based +on the SOFA library published by the International Astronomical Union (IAU).") + (license license:bsd-3))) + (define-public eye (package (name "eye") -- cgit v1.2.3 From 56ec8d6281b072e14d0442b6a55b1c315f9015cb Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Feb 2021 10:07:28 +0100 Subject: gnu: Add python-pyerfa. * gnu/packages/astronomy.scm (python-pyerfa): New variable. Signed-off-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 09ac9e0157..3d12a87f8a 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -48,6 +48,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) @@ -774,6 +775,47 @@ more.") JPL ephemerides use to predict raw (x,y,z) planetary positions.") (license license:expat))) +(define-public python-pyerfa + (package + (name "python-pyerfa") + (version "1.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyerfa" version)) + (sha256 + (base32 "1s78mdyrxha2jcckfs0wg5ynkf0pwh1bw9mmh99vprinxh9n4xri")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove bundled submodule library. + (delete-file-recursively "liberfa") + #t)))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'use-system-liberfa + (lambda _ + (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1") + #t))))) + (native-inputs + `(("pytest" ,python-pytest) + ("setuptools-scm" ,python-setuptools-scm) + ("pytest-doctestplus" ,python-pytest-doctestplus))) + (inputs + `(("liberfa" ,erfa) + ("numpy" ,python-numpy))) + (home-page "https://github.com/liberfa/pyerfa") + (synopsis "Python bindings for ERFA") + (description + "PyERFA is the Python wrapper for the ERFA library (Essential +Routines for Fundamental Astronomy), a C library containing key algorithms for +astronomy, which is based on the SOFA library published by the International +Astronomical Union (IAU). All C routines are wrapped as Numpy universal +functions, so that they can be called with scalar or array inputs.") + (license license:bsd-3))) + (define-public python-skyfield (package (name "python-skyfield") -- cgit v1.2.3 From d1bd22b9fb17e94931b7ebe23c6d9735b195442a Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Feb 2021 10:13:02 +0100 Subject: gnu: Add python-sep. * gnu/packages/astronomy.scm (python-sep): New variable. Signed-off-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 3d12a87f8a..98ef7b3a7e 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -816,6 +816,31 @@ Astronomical Union (IAU). All C routines are wrapped as Numpy universal functions, so that they can be called with scalar or array inputs.") (license license:bsd-3))) +(define-public python-sep + (package + (name "python-sep") + (version "1.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sep" version)) + (sha256 + (base32 "0wxdqn92q1grv8k7xi7h88ac6wnznw4xh5bdlz1vz6za2dgsyj4m")))) + (build-system python-build-system) + (native-inputs + `(("cython" ,python-cython) + ("pytest" ,python-pytest))) + (inputs + `(("numpy" ,python-numpy))) + (home-page "https://github.com/kbarbary/sep") + (synopsis "Astronomical source extraction and photometry library") + (description + "SEP makes the core algorithms of Source Extractor available as a library +of stand-alone functions and classes.") + (license (list license:bsd-3 + license:expat + license:lgpl3+)))) + (define-public python-skyfield (package (name "python-skyfield") -- cgit v1.2.3 From d6996fa05277f240b70b18c227419c371cfc737f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Feb 2021 10:18:45 +0100 Subject: gnu: Add python-astroalign. * gnu/packages/astronomy.scm (python-astroalign): New variable. Signed-off-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 98ef7b3a7e..b10b8013cb 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -841,6 +841,32 @@ of stand-alone functions and classes.") license:expat license:lgpl3+)))) +(define-public python-astroalign + (package + (name "python-astroalign") + (version "2.3.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "astroalign" version)) + (sha256 + (base32 "19qzv3552lgrd9qmj0rxs51wmx485hw04cbf76ds5pin85kfaiy1")))) + (build-system python-build-system) + (arguments + ;; TODO: (Sharlatan-20210213T162940+0000): I could not make tests run + `(#:tests? #f)) + (inputs + `(("numpy" ,python-numpy) + ("scikit-image" ,python-scikit-image) + ("scipy" ,python-scipy) + ("sep" ,python-sep))) + (home-page "https://astroalign.readthedocs.io/") + (synopsis "Astrometric Alignment of Images") + (description + "ASTROALIGN is a python module that will try to align two stellar +astronomical images, especially when there is no WCS information available.") + (license license:expat))) + (define-public python-skyfield (package (name "python-skyfield") -- cgit v1.2.3 From 87530f7b4d4ec26a648e71df0592dbf9987417e3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 16 Feb 2021 22:44:03 +0000 Subject: gnu: Add libskry. * gnu/packages/astronomy.scm (libskry): New variable. Signed-off-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index b10b8013cb..5e5a9a2634 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -54,6 +54,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages version-control) + #:use-module (gnu packages video) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) @@ -514,6 +515,48 @@ Mechanics, Astrometry and Astrodynamics library.") (license (list license:lgpl2.0+ license:gpl2+)))) ; examples/transforms.c & lntest/*.c +(define-public libskry + (package + (name "libskry") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/GreatAttractor/libskry") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14kwng0j8wqzlb0gqg3ayq36l15dpz7kvxc56fa47j55b376bwh6")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list + (string-append + "LIBAV_INCLUDE_PATH=" (assoc-ref %build-inputs "ffmpeg") "/include")) + #:phases + (modify-phases %standard-phases + (delete 'configure) ;; no configure provided + (delete 'check) ;; no tests provided + (replace 'install + ;; The Makefile lacks an ‘install’ target. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib")) + (include (string-append out "/include"))) + (copy-recursively "bin" lib) + (copy-recursively "include" include)) + #t))))) + (inputs + `(("ffmpeg" ,ffmpeg))) + (home-page "https://github.com/GreatAttractor/libskry") + (synopsis "Astronimical lucky imaging library") + (description + "@code{libskry} implements the lucky imaging principle of astronomical +imaging: creating a high-quality still image out of a series of many thousands) +low quality ones") + (license license:gpl3+))) + (define-public libpasastro ;; NOTE: (Sharlatan-20210122T215921+0000): the version tag has a build ;; error on spice which is resolved with the latest commit. -- cgit v1.2.3 From 19e081138b43b50e505f86c7e1321d8fa064980d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 16 Feb 2021 22:51:19 +0000 Subject: gnu: Add stackistry. * gnu/packages/astronomy.scm (stackistry): New variable. Co-authored-by: Guillaume Le Vaillant --- gnu/packages/astronomy.scm | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 5e5a9a2634..f617d7b361 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -332,6 +332,70 @@ astronomical fields. SkyMaker is part of the EFIGI (@url{https://www.astromatic.net/projects/efigi}) development project.") (license license:gpl3+))) +(define-public stackistry + (package + (name "stackistry") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/GreatAttractor/stackistry") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0rz29v33n0x0k40hv3v79ym5ylch1v0pbph4i21809gz2al5p7dq")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list + (string-append + "SKRY_INCLUDE_PATH=" (assoc-ref %build-inputs "libskry") "/include") + (string-append + "SKRY_LIB_PATH=-L" (assoc-ref %build-inputs "libskry") "/lib") + (string-append + "LIBAV_INCLUDE_PATH=" (assoc-ref %build-inputs "ffmpeg") "/include")) + #:phases + (modify-phases %standard-phases + ;; no configure and tests are provided + (delete 'configure) + (delete 'check) + (add-after 'unpack 'fix-paths + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "src/main.cpp" + (("\"\\.\\.\", \"lang\"") + "\"../share/stackistry\", \"lang\"")) + (substitute* "src/utils.cpp" + (("\"\\.\\.\", \"icons\"") + "\"../share/stackistry\", \"icons\"")) + #t)) + (replace 'install + ;; The Makefile lacks an ‘install’ target. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (icons (string-append out "/share/stackistry/icons")) + (lang (string-append out "/share/stackistry/lang"))) + (copy-recursively "bin" bin) + (copy-recursively "icons" icons) + (copy-recursively "lang" lang)) + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("gtkmm" ,gtkmm) + ("libskry" ,libskry) + ("ffmpeg" ,ffmpeg))) + (home-page "https://github.com/GreatAttractor/stackistry") + (synopsis "Astronomical lucky imaging/image stacking tool") + (description + "Stackistry implements the lucky imaging principle of astronomical +imaging: creating a high-quality still image out of a series of many (possibly +thousands) low quality ones (blurred, deformed, noisy). The resulting image +stack typically requires post-processing, including sharpening (e.g. via +deconvolution). Such post-processing is not performed by Stackistry.") + (license license:gpl3+))) + (define-public stellarium (package (name "stellarium") -- cgit v1.2.3 From 5afcd25464c7bf25888b8f0047910c0c1fcffec9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Feb 2021 22:34:24 +0000 Subject: gnu: wcslib: Update to 7.4 * gnu/packages/astronomy.scm (wcslib): Update to 7.4 Signed-off-by: Nicolas Goaziou --- gnu/packages/astronomy.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index f617d7b361..d1022ee5da 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -167,7 +167,7 @@ feature detection and cosmetic corrections.") (define-public wcslib (package (name "wcslib") - (version "6.4") + (version "7.4") (source (origin (method url-fetch) @@ -175,7 +175,7 @@ feature detection and cosmetic corrections.") "ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib-" version ".tar.bz2")) (sha256 - (base32 "003h23m6d5wcs29v2vbnl63f3z35k5x70lpsqlz5c9bp1bvizh8k")))) + (base32 "072i1id4zk08mwi2c1zpy8zxrabl8dqyklx9ikbd2nh56r0rc752")))) (inputs `(("cfitsio" ,cfitsio))) (build-system gnu-build-system) -- cgit v1.2.3 From f498823e7843379499d35ae397c38dc879fb9844 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 19 Feb 2021 22:41:42 +0000 Subject: gnu: Add asdf (Advanced Scientific Data Format) * gnu/packages/astronomy.scm (python-asdf): New variable Signed-off-by: Nicolas Goaziou --- gnu/packages/astronomy.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index d1022ee5da..4ee7cd7fec 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -948,6 +948,38 @@ of stand-alone functions and classes.") license:expat license:lgpl3+)))) +(define-public python-asdf + (package + (name "python-asdf") + (version "2.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "asdf" version)) + (sha256 + (base32 "1y47zhkd90i8wmm2i35amfl0rvjqlb3fcx90xp7n9kr2z0byzyzg")))) + (build-system python-build-system) + (arguments + ;; TODO: (Sharlatan-20210207T165820+0000): Tests depend on astropy, astropy + ;; depends on asdf. Disable circular dependence. + `(#:tests? #f)) + (native-inputs + `(("packaging" ,python-packaging) + ("semantic-version" ,python-semantic-version) + ("setuptools-scm" ,python-setuptools-scm))) + (inputs + `(("importlib-resources" ,python-importlib-resources) + ("jsonschema" ,python-jsonschema) + ("numpy" ,python-numpy) + ("pyyaml" ,python-pyyaml))) + (home-page "http://github.com/asdf-format/asdf") + (synopsis "Python tools to handle ASDF files") + (description + "The Advanced Scientific Data Format (ASDF) is a next-generation +interchange format for scientific data. This package contains the Python +implementation of the ASDF Standard.") + (license license:bsd-3))) + (define-public python-astroalign (package (name "python-astroalign") -- cgit v1.2.3 From f63b3eae42261f7b4814b71cc6dc41db2ed15741 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 28 Feb 2021 11:23:00 +0100 Subject: gnu: python-asdf: Use HTTPS home page URI. * gnu/packages/astronomy.scm (python-asdf)[home-page]: Use HTTPS URI. --- gnu/packages/astronomy.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 4ee7cd7fec..feb22eb592 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -972,7 +972,7 @@ of stand-alone functions and classes.") ("jsonschema" ,python-jsonschema) ("numpy" ,python-numpy) ("pyyaml" ,python-pyyaml))) - (home-page "http://github.com/asdf-format/asdf") + (home-page "https://github.com/asdf-format/asdf") (synopsis "Python tools to handle ASDF files") (description "The Advanced Scientific Data Format (ASDF) is a next-generation -- cgit v1.2.3 From b94d4e6a1d8bd5bbae5656429f0f62d7ee4c24f8 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 4 Mar 2021 16:22:57 +0100 Subject: gnu: indi: Update to 1.8.9. * gnu/packages/astronomy.scm (indi): Update to 1.8.9. --- gnu/packages/astronomy.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/astronomy.scm') diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index feb22eb592..f623274136 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -793,7 +793,7 @@ provide you with detailed information about each pass.") (define-public indi (package (name "indi") - (version "1.8.8") + (version "1.8.9") (source (origin (method git-fetch) @@ -802,7 +802,7 @@ provide you with detailed information about each pass.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "19gm7rbnm3295g2i8mdzfslpz0vrcgfmbl59311qpszvlxbmyd2r")))) + (base32 "0nw4b2cdsg244slcm3yf1v11jlxbbjrpvi6ax90svs7rlandz8jv")))) (build-system cmake-build-system) (arguments `(#:configure-flags -- cgit v1.2.3