1 |
commit: e4549f46fb0d5abac1b87ee0ba3c98d8ddd55ed0 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 18 16:40:01 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 19 17:00:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4549f46 |
7 |
|
8 |
dev-python/pymoc: initial import |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-python/pymoc/Manifest | 1 + |
13 |
dev-python/pymoc/metadata.xml | 32 ++++++++++++++++++++++++++++++++ |
14 |
dev-python/pymoc/pymoc-0.5.0.ebuild | 28 ++++++++++++++++++++++++++++ |
15 |
3 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pymoc/Manifest b/dev-python/pymoc/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..aa3ac835426 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pymoc/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pymoc-0.5.0.tar.gz 33843 SHA256 08fd88df8c4013803c8c26b2183816e087c500e1d3b6172fed4d98a48269a8ba SHA512 cb327bed6fffa6eb4354c06f9b7e056baa9df1010d722b4fade6873fb862c4b27ea0a11647a510ce4007f7b8158e13eee7e146258d4c58ecee82adddf33bf89c WHIRLPOOL 17d56de5ddc63279d597f3a436a8f3a030cc696fb1495ce3cc9ee93c10a7a60aef1dcf77888514308c64945ec76ef7b38f11715606b512c80f3106b16897e0c1 |
24 |
|
25 |
diff --git a/dev-python/pymoc/metadata.xml b/dev-python/pymoc/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..0539850fc0b |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pymoc/metadata.xml |
30 |
@@ -0,0 +1,32 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>sci-astronomy@g.o</email> |
36 |
+ <name>Gentoo Astronomy Project</name> |
37 |
+ </maintainer> |
38 |
+ <longdescription lang="en"> |
39 |
+ Frequently astronomical survey catalogues or images are sparse and |
40 |
+ cover only a small part of the sky. In a Multi-Order Coverage map |
41 |
+ the extent of data in a particular dataset is cached as a |
42 |
+ pre-calculated mask image. The hierarchical nature enables fast |
43 |
+ boolean operations in image space, without needing to perform complex |
44 |
+ geometrical calculations. Services such as VizieR generally offer the |
45 |
+ MOC masks, allowing a faster experience in graphical applications |
46 |
+ such as Aladin, or for researchers quickly needing to locate which |
47 |
+ datasets may contain overlapping coverage. |
48 |
+ |
49 |
+ The MOC mask image itself is tessellated and stored in NASA HealPix |
50 |
+ format, encoded inside a FITS image container. Using the HealPix |
51 |
+ (Hierarchical Equal Area isoLatitude Pixelization) tessellation |
52 |
+ method ensures that more precision (pixels) in the mask are available |
53 |
+ when describing complex shapes such as approximating survey or |
54 |
+ polygon edges, while only needing to store a single big cell/pixel |
55 |
+ when an coverage is either completely inside, or outside of the mask. |
56 |
+ Catalogues can be rendered on the mask as circles. |
57 |
+ </longdescription> |
58 |
+ <upstream> |
59 |
+ <remote-id type="pypi">pymoc</remote-id> |
60 |
+ <remote-id type="github">grahambell/pymoc</remote-id> |
61 |
+ </upstream> |
62 |
+</pkgmetadata> |
63 |
|
64 |
diff --git a/dev-python/pymoc/pymoc-0.5.0.ebuild b/dev-python/pymoc/pymoc-0.5.0.ebuild |
65 |
new file mode 100644 |
66 |
index 00000000000..98bed1677f2 |
67 |
--- /dev/null |
68 |
+++ b/dev-python/pymoc/pymoc-0.5.0.ebuild |
69 |
@@ -0,0 +1,28 @@ |
70 |
+# Copyright 1999-2017 Gentoo Foundation |
71 |
+# Distributed under the terms of the GNU General Public License v2 |
72 |
+ |
73 |
+EAPI=6 |
74 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
75 |
+ |
76 |
+inherit distutils-r1 virtualx xdg-utils |
77 |
+ |
78 |
+DESCRIPTION="Python Multi-Order Coverage maps for Virtual Observatory" |
79 |
+HOMEPAGE="https://pymoc.readthedocs.org/" |
80 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
81 |
+ |
82 |
+LICENSE="GPL-3" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
85 |
+IUSE="" |
86 |
+ |
87 |
+RDEPEND=" |
88 |
+ dev-python/astropy[${PYTHON_USEDEP}] |
89 |
+ dev-python/healpy[${PYTHON_USEDEP}] |
90 |
+" |
91 |
+DEPEND="${RDEPEND} |
92 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
93 |
+" |
94 |
+ |
95 |
+python_test() { |
96 |
+ PYTHONPATH=lib "${PYTHON}" -m unittest discover -s test || die |
97 |
+} |