* [bug#66454] [PATCH 1/5] gnu: Add python-radio-beam.
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
@ 2023-10-11 1:39 ` Sharlatan Hellseher
2023-10-11 1:39 ` [bug#66454] [PATCH 2/5] gnu: Add python-pyavm Sharlatan Hellseher
` (6 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-11 1:39 UTC (permalink / raw)
To: 66454; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier
* gnu/packages/astronomy.scm (python-radio-beam): New variable.
---
gnu/packages/astronomy.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 7c665cba4a..726d4b8a5b 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3910,6 +3910,40 @@ (define-public python-rad
Grace Roman Space Telescope.")
(license license:bsd-3)))
+(define-public python-radio-beam
+ (package
+ (name "python-radio-beam")
+ (version "0.3.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "radio-beam" version))
+ (sha256
+ (base32 "0293hlbxb61h8js7yrvrbiw8108qn5s0rh2iy9rkhc012mzjacp0"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-astropy
+ python-matplotlib
+ python-numpy
+ python-scipy
+ python-six))
+ (native-inputs (list python-pytest-astropy))
+ (home-page "https://radio-beam.readthedocs.io/en/latest/")
+ (synopsis "Operations for radio astronomy beams with Astropy")
+ (description
+ "Radio Beam is a simple toolkit for reading beam information from FITS
+headers and manipulating beams.
+Some example applications include:
+@itemize
+@item Convolution and deconvolution
+@item Unit conversion (Jy to/from K)
+@item Handle sets of beams for spectral cubes with varying resolution between
+channels
+@item Find the smallest common beam from a set of beams
+@item Add the beam shape to a matplotlib plot
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-roman-datamodels
(package
(name "python-roman-datamodels")
--
2.41.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#66454] [PATCH 2/5] gnu: Add python-pyavm.
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
2023-10-11 1:39 ` [bug#66454] [PATCH 1/5] gnu: Add python-radio-beam Sharlatan Hellseher
@ 2023-10-11 1:39 ` Sharlatan Hellseher
2023-10-11 1:39 ` [bug#66454] [PATCH 3/5] gnu: Add python-pyregion Sharlatan Hellseher
` (5 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-11 1:39 UTC (permalink / raw)
To: 66454; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier
* gnu/packages/astronomy.scm (python-pyavm): New variable.
---
gnu/packages/astronomy.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 726d4b8a5b..2f059236b9 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2161,6 +2161,29 @@ (define-public python-poppy
interest, and which require portability between platforms or ease of scripting.")
(license license:bsd-3)))
+(define-public python-pyavm
+ (package
+ (name "python-pyavm")
+ (version "0.9.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyAVM" version))
+ (sha256
+ (base32 "0vgjqvddq4a5lnmg8msm7fwqs3r6fc748xzvnhyvc387h0z8pdxk"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-astropy python-numpy))
+ (native-inputs
+ (list python-pillow python-pytest python-setuptools-scm))
+ (home-page "https://astrofrog.github.io/pyavm/")
+ (synopsis "Simple pure-python AVM meta-data handling")
+ (description
+ "PyAVM is a module to represent, read, and write metadata following the
+@acronym{AVM, Astronomy Visualization Metadata} standard provided by
+@url{https://www.virtualastronomy.org/avm_metadata.php, vamp} project.")
+ (license license:expat)))
+
(define-public python-pyvo
(package
(name "python-pyvo")
--
2.41.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#66454] [PATCH 3/5] gnu: Add python-pyregion.
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
2023-10-11 1:39 ` [bug#66454] [PATCH 1/5] gnu: Add python-radio-beam Sharlatan Hellseher
2023-10-11 1:39 ` [bug#66454] [PATCH 2/5] gnu: Add python-pyavm Sharlatan Hellseher
@ 2023-10-11 1:39 ` Sharlatan Hellseher
2023-10-11 1:39 ` [bug#66454] [PATCH 4/5] gnu: Add python-aplpy Sharlatan Hellseher
` (4 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-11 1:39 UTC (permalink / raw)
To: 66454; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier
* gnu/packages/astronomy.scm (python-pyregion): New variable.
---
gnu/packages/astronomy.scm | 40 ++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 2f059236b9..684324c589 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3449,6 +3449,46 @@ (define-public python-pynbody
N-Chilada and RAMSES AMR outputs.")
(license license:gpl3+)))
+(define-public python-pyregion
+ (package
+ (name "python-pyregion")
+ (version "2.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyregion" version))
+ (sha256
+ (base32 "0l7qb7r8fnv46mdih4m5b8jaxixgpw6m7v37dpikjkblgh0vigaw"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'build-extensions
+ (lambda _
+ ;; Cython extensions have to be built before running the tests.
+ (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ (propagated-inputs
+ (list python-astropy python-numpy python-pyparsing))
+ (native-inputs
+ (list python-cython
+ python-pytest
+ python-pytest-astropy-header
+ python-setuptools-scm))
+ (home-page "https://github.com/astropy/pyregion")
+ (synopsis "Python parser for ds9 region files")
+ (description
+ "@code{pyregion} is a python module to parse ds9 region files. It also
+supports ciao region files.
+Features:
+@itemize
+@item ds9 and ciao region files.
+@item (physical, WCS) coordinate conversion to the image coordinate.
+@item convert regions to matplotlib patches.
+@item convert regions to spatial filter (i.e., generate mask images)
+@end itemize")
+ (license license:expat)))
+
(define-public python-pysynphot
(package
(name "python-pysynphot")
--
2.41.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#66454] [PATCH 4/5] gnu: Add python-aplpy.
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
` (2 preceding siblings ...)
2023-10-11 1:39 ` [bug#66454] [PATCH 3/5] gnu: Add python-pyregion Sharlatan Hellseher
@ 2023-10-11 1:39 ` Sharlatan Hellseher
2023-10-11 1:39 ` [bug#66454] [PATCH 5/5] gnu: Add python-spectral-cube Sharlatan Hellseher
` (3 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-11 1:39 UTC (permalink / raw)
To: 66454; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier
* gnu/packages/astronomy.scm (python-aplpy): New variable.
---
gnu/packages/astronomy.scm | 54 ++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 684324c589..15ab071ed7 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -493,6 +493,60 @@ (define-public cfitsio
(license (license:non-copyleft "file://License.txt"
"See License.txt in the distribution."))))
+(define-public python-aplpy
+ (package
+ (name "python-aplpy")
+ (version "2.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "aplpy" version))
+ (sha256
+ (base32 "0ph9jhv4q4i4z6nkqr6hjw9148kdlnayxsn83qgv5dqn0h3nc9r8"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-astropy
+ python-matplotlib
+ python-numpy
+ python-pillow
+ python-pyavm
+ python-pyregion
+ python-reproject
+ python-scikit-image
+ python-shapely))
+ (native-inputs
+ (list python-pytest-astropy
+ python-pytest-mpl
+ python-semantic-version))
+ (home-page "http://aplpy.github.io")
+ (synopsis "Astronomical Plotting Library in Python")
+ (description
+ "@acronym{APLpy, the Astronomical Plotting Library in Python} is a Python
+module aimed at producing publication-quality plots of astronomical imaging data
+in FITS format. The module uses @code{matplotlib}, a powerful and interactive
+plotting package. It is capable of creating output files in several graphical
+formats, including EPS, PDF, PS, PNG, and SVG.
+
+Main features:
+@itemize
+@item Make plots interactively or using scripts
+@item Show grayscale, colorscale, and 3-color RGB images of FITS files
+@item Generate co-aligned FITS cubes to make 3-color RGB images
+@item Make plots from FITS files with arbitrary WCS (e.g. position-velocity)
+@item Slice multi-dimensional FITS cubes
+@item Overlay any number of contour sets
+@item Overlay markers with fully customizable symbols
+@item Plot customizable shapes like circles, ellipses, and rectangles
+@item Overlay ds9 region files
+@item Overlay coordinate grids
+@item Show colorbars, scalebars, and beams
+@item Customize the appearance of labels and ticks
+@item Hide, show, and remove different contour and marker layers
+@item Pan, zoom, and save any view as a full publication-quality plot
+@item Save plots as EPS, PDF, PS, PNG, and SVG
+@end itemize")
+ (license license:expat)))
+
(define-public python-astroml
(package
(name "python-astroml")
--
2.41.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#66454] [PATCH 5/5] gnu: Add python-spectral-cube.
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
` (3 preceding siblings ...)
2023-10-11 1:39 ` [bug#66454] [PATCH 4/5] gnu: Add python-aplpy Sharlatan Hellseher
@ 2023-10-11 1:39 ` Sharlatan Hellseher
2023-10-15 18:17 ` [bug#66454] Sharlatan Hellseher
` (2 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-11 1:39 UTC (permalink / raw)
To: 66454; +Cc: Sharlatan Hellseher, Andreas Enge, Efraim Flashner, Eric Bavier
* gnu/packages/astronomy.scm (python-spectral-cube): New variable.
---
gnu/packages/astronomy.scm | 53 ++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 15ab071ed7..e76e0b0952 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2524,6 +2524,59 @@ (define-public python-astral
elevation, solar azimuth, rahukaalam, and the phases of the moon.")
(license license:asl2.0)))
+(define-public python-spectral-cube
+ (package
+ (name "python-spectral-cube")
+ (version "0.6.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "spectral-cube" version))
+ (sha256
+ (base32 "1xyqdflnz084hdx1pbrqd1jrfyyc7f8v3564rww2v1hjylzgsnnh"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-astropy
+ python-aplpy
+ python-casa-formats-io
+ python-dask
+ python-distributed
+ python-fsspec
+ ;; python-glue-core ; Not packed http://glueviz.org/, optional.
+ python-joblib
+ python-matplotlib
+ python-numpy
+ python-radio-beam
+ python-reproject
+ python-scipy
+ python-six
+ ;; python-yt ; Not packed https://yt-project.org/, optional.
+ python-zarr))
+ (native-inputs
+ (list ;; XXX: Introduce cycle with pvextractor, listed as extra requiremnts
+ ;; in [noviz] option.
+ ;; python-pvextractor
+ python-pytest-astropy
+ python-regions
+ python-semantic-version))
+ (home-page "https://spectral-cube.readthedocs.io/en/latest/")
+ (synopsis "Library for reading and analyzing astrophysical spectral data cubes")
+ (description
+ "The spectral-cube package provides an easy way to read, manipulate,
+analyze, and write data cubes with two positional dimensions and one spectral
+dimension, optionally with Stokes parameters.
+
+It provides the following main features:
+@itemize
+@item A uniform interface to spectral cubes, robust to the wide range of conventions
+of axis order, spatial projections, and spectral units that exist in the wild.
+@item Easy extraction of cube sub-regions using physical coordinates.
+@item Ability to easily create, combine, and apply masks to datasets.
+@item Basic summary statistic methods like moments and array aggregates.
+@item Designed to work with datasets too large to load into memory.
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-spherical-geometry
(package
(name "python-spherical-geometry")
--
2.41.0
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#66454]
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
` (4 preceding siblings ...)
2023-10-11 1:39 ` [bug#66454] [PATCH 5/5] gnu: Add python-spectral-cube Sharlatan Hellseher
@ 2023-10-15 18:17 ` Sharlatan Hellseher
2023-10-15 18:21 ` [bug#66454] Christopher Baines
2023-10-21 23:00 ` [bug#66454] Sharlatan Hellseher
2023-10-27 17:41 ` [bug#66454] Sharlatan Hellseher
7 siblings, 1 reply; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-15 18:17 UTC (permalink / raw)
To: 66454; +Cc: Christopher Baines, Maxim Cournoyer
[-- Attachment #1: Type: text/plain, Size: 69 bytes --]
Hi,
It looks like QA ignored this patch series of can't process it.
[-- Attachment #2: Type: text/html, Size: 163 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#66454]
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
` (5 preceding siblings ...)
2023-10-15 18:17 ` [bug#66454] Sharlatan Hellseher
@ 2023-10-21 23:00 ` Sharlatan Hellseher
2023-10-27 17:41 ` [bug#66454] Sharlatan Hellseher
7 siblings, 0 replies; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-21 23:00 UTC (permalink / raw)
To: 66454; +Cc: Christopher Baines
Hi Guix!
Looks like QA has a green light on this patch series!
Thanks,
Oleg
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#66454]
2023-10-11 1:34 [bug#66454] [PATCH 0/5] gnu: Add python-spectral-cube Sharlatan Hellseher
` (6 preceding siblings ...)
2023-10-21 23:00 ` [bug#66454] Sharlatan Hellseher
@ 2023-10-27 17:41 ` Sharlatan Hellseher
2023-10-31 17:19 ` bug#66454: none Maxim Cournoyer
7 siblings, 1 reply; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-27 17:41 UTC (permalink / raw)
To: 66454; +Cc: Maxim Cournoyer
Hi,
A gentle ping on this issue. Let me know if it needs any modification.
Regards,
Oleg
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#66454: none
2023-10-27 17:41 ` [bug#66454] Sharlatan Hellseher
@ 2023-10-31 17:19 ` Maxim Cournoyer
2023-10-31 20:26 ` [bug#66454] none Sharlatan Hellseher
0 siblings, 1 reply; 13+ messages in thread
From: Maxim Cournoyer @ 2023-10-31 17:19 UTC (permalink / raw)
To: Sharlatan Hellseher; +Cc: 66454-done
Hi!
Sharlatan Hellseher <sharlatanus@gmail.com> writes:
> Hi,
>
> A gentle ping on this issue. Let me know if it needs any modification.
Nice series! Since you sent it, radio-beam and spectral-cube had a new
version, so I've updated them. I've also added 'python-setuptools-scm'
to their native inputs, otherwise the version metadata was missing from
their outputs and their version was incorrectly reported as '0.0.0'.
You have cumulated 579 commits thus far; I think you should apply to
become a committer; this way you could keep the various astrology
packages updated more easily.
I'd be happy to vouch for you; you clearly put a lot of efforts toward
producing high-quality packages.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#66454] none
2023-10-31 17:19 ` bug#66454: none Maxim Cournoyer
@ 2023-10-31 20:26 ` Sharlatan Hellseher
2023-11-01 3:02 ` Maxim Cournoyer
0 siblings, 1 reply; 13+ messages in thread
From: Sharlatan Hellseher @ 2023-10-31 20:26 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 66454-done
[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]
Hi Maxim,
I've sent October Astronomy updates in separate issue
https://issues.guix.gnu.org/66778
Is there any formal process for commit access and do I need to apply? This
sounds like I can accelerate review process of astro soft an keep them
refreshed.
Regards,
Oleg
On Tue, 31 Oct 2023, 17:19 Maxim Cournoyer, <maxim.cournoyer@gmail.com>
wrote:
> Hi!
>
> Sharlatan Hellseher <sharlatanus@gmail.com> writes:
>
> > Hi,
> >
> > A gentle ping on this issue. Let me know if it needs any modification.
>
> Nice series! Since you sent it, radio-beam and spectral-cube had a new
> version, so I've updated them. I've also added 'python-setuptools-scm'
> to their native inputs, otherwise the version metadata was missing from
> their outputs and their version was incorrectly reported as '0.0.0'.
>
> You have cumulated 579 commits thus far; I think you should apply to
> become a committer; this way you could keep the various astrology
> packages updated more easily.
>
> I'd be happy to vouch for you; you clearly put a lot of efforts toward
> producing high-quality packages.
>
> --
> Thanks,
> Maxim
>
[-- Attachment #2: Type: text/html, Size: 1783 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#66454] none
2023-10-31 20:26 ` [bug#66454] none Sharlatan Hellseher
@ 2023-11-01 3:02 ` Maxim Cournoyer
0 siblings, 0 replies; 13+ messages in thread
From: Maxim Cournoyer @ 2023-11-01 3:02 UTC (permalink / raw)
To: Sharlatan Hellseher; +Cc: 66454-done
Hi,
Sharlatan Hellseher <sharlatanus@gmail.com> writes:
> Hi Maxim,
>
> I've sent October Astronomy updates in separate issue
> https://issues.guix.gnu.org/66778
Thanks for the heads-up.
> Is there any formal process for commit access and do I need to apply? This
> sounds like I can accelerate review process of astro soft an keep them
> refreshed.
See (info "(guix) Commit Access"). In a nutshell, you need to find 3
committers to vouch for you. The list of current committers is kept in
.guix-authorizations at the root of the project.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 13+ messages in thread