EllipSect 3.4.2__tar.gz → 3.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ellipsect-3.4.2 → ellipsect-3.4.4}/PKG-INFO +21 -9
- {ellipsect-3.4.2 → ellipsect-3.4.4}/README.rst +19 -8
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/conf.py +1 -1
- ellipsect-3.4.4/img/A85.def.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/setup.cfg +2 -1
- {ellipsect-3.4.2 → ellipsect-3.4.4}/setup.py +1 -1
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/EllipSect.egg-info/PKG-INFO +21 -9
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/EllipSect.egg-info/SOURCES.txt +0 -1
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/EllipSect.egg-info/requires.txt +3 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/__init__.py +0 -3
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/inout/plots.py +5 -5
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/inout/read.py +14 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/phot/ned.py +2 -2
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/sectors/comp.py +5 -5
- ellipsect-3.4.2/img/A85.comp.png +0 -0
- ellipsect-3.4.2/img/A85.def.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/AUTHORS.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/CHANGELOG.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/CONTRIBUTING.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/LICENSE.txt +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/Makefile +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/_static/.gitignore +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/api.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/authors.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/changelog.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/contributing.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/howto.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/index.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/license.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/readme.rst +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/docs/requirements.txt +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/example/README +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/example/gal.fits +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/example/galfit.feedme +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/example/psf.fits +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A2029.ring.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.con-cub.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.cub.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.ell-cub.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.grid.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.log.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.pix.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.ranx1.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.ranx2.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/img/A85.rany1.png +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/pyproject.toml +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/EllipSect.egg-info/dependency_links.txt +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/EllipSect.egg-info/entry_points.txt +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/EllipSect.egg-info/not-zip-safe +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/EllipSect.egg-info/top_level.txt +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/ellipsectors.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/inout/__init__.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/inout/galfit.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/inout/gfits.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/inout/prt.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/lib/__init__.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/lib/clas.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/lib/libs.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/phot/__init__.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/phot/phot.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/phot/tidal.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/sectors/__init__.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/sectors/ellip.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/sectors/num.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/sectors/sect.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/sky/__init__.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/src/ellipsect/sky/sky.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/tests/conftest.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/tests/gal.fits +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/tests/galfit.01 +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/tests/imgblock.fits +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/tests/psf.fits +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/tests/test_ellipsect.py +0 -0
- {ellipsect-3.4.2 → ellipsect-3.4.4}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: EllipSect
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.4
|
|
4
4
|
Summary: A surface brightness analysis tool for GALFIT output.
|
|
5
5
|
Home-page: https://github.com/canorve/EllipSect
|
|
6
6
|
Author: Christopher Añorve
|
|
@@ -20,6 +20,7 @@ Classifier: Natural Language :: English
|
|
|
20
20
|
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
21
21
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
22
22
|
License-File: LICENSE.txt
|
|
23
|
+
Requires-Dist: importlib-metadata; python_version < "3.8"
|
|
23
24
|
Requires-Dist: importlib-metadata
|
|
24
25
|
Requires-Dist: sphinx>=3.2.1
|
|
25
26
|
Requires-Dist: numpy>=1.20.3
|
|
@@ -36,12 +37,25 @@ Requires-Dist: pytest-cov; extra == "testing"
|
|
|
36
37
|
:depth: 3
|
|
37
38
|
..
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
|
|
41
|
+
=============
|
|
42
|
+
|
|
43
|
+
.. image:: https://img.shields.io/pypi/v/EllipSect.svg
|
|
44
|
+
:alt: PyPI-Server
|
|
45
|
+
:target: https://pypi.org/project/EllipSect/
|
|
46
|
+
|
|
47
|
+
.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
|
|
48
|
+
:alt: Project generated with PyScaffold
|
|
49
|
+
:target: https://pyscaffold.org/
|
|
50
|
+
|
|
51
|
+
.. image:: https://zenodo.org/badge/282223217.svg
|
|
52
|
+
:target: https://zenodo.org/badge/latestdoi/282223217
|
|
53
|
+
|
|
40
54
|
|
|
41
55
|
**EllipSect**
|
|
42
56
|
=============
|
|
43
57
|
|
|
44
|
-
|
|
58
|
+
|
|
45
59
|
|
|
46
60
|
EllipSect creates surface brightness profiles and extracts other
|
|
47
61
|
photometric data from the GALFIT output peng et al. (2002).
|
|
@@ -207,9 +221,9 @@ The code is under the license of **GNU**
|
|
|
207
221
|
|
|
208
222
|
If you find this code useful, please cite as:
|
|
209
223
|
|
|
210
|
-
Añorve,
|
|
211
|
-
|
|
212
|
-
|
|
224
|
+
Añorve, C., Reyes-Amador, U., Ríos-López, E., & López-Cruz, O. (2024).
|
|
225
|
+
canorve/EllipSect: v3.4.3 (v3.4.3). Zenodo. https://doi.org/10.5281/zenodo.13994369
|
|
226
|
+
|
|
213
227
|
|
|
214
228
|
|
|
215
229
|
--------------
|
|
@@ -267,12 +281,10 @@ PYTHON, 409(4), 1379–1392. doi:10.1111/j.1365-2966.2010.17426.x \__\_
|
|
|
267
281
|
**Other Stuff**
|
|
268
282
|
---------------
|
|
269
283
|
|
|
270
|
-
Check my
|
|
284
|
+
Check my other project GALFITtools
|
|
271
285
|
`here <https://github.com/canorve/GALFITools>`__
|
|
272
286
|
|
|
273
287
|
--------------
|
|
274
288
|
|
|
275
|
-
.. |DOI| image:: https://zenodo.org/badge/282223217.svg
|
|
276
|
-
:target: https://zenodo.org/badge/latestdoi/282223217
|
|
277
289
|
.. |A85a| image:: img/A85.cub.png
|
|
278
290
|
.. |A85b| image:: img/A85.def.png
|
|
@@ -2,12 +2,25 @@
|
|
|
2
2
|
:depth: 3
|
|
3
3
|
..
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
=============
|
|
7
|
+
|
|
8
|
+
.. image:: https://img.shields.io/pypi/v/EllipSect.svg
|
|
9
|
+
:alt: PyPI-Server
|
|
10
|
+
:target: https://pypi.org/project/EllipSect/
|
|
11
|
+
|
|
12
|
+
.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
|
|
13
|
+
:alt: Project generated with PyScaffold
|
|
14
|
+
:target: https://pyscaffold.org/
|
|
15
|
+
|
|
16
|
+
.. image:: https://zenodo.org/badge/282223217.svg
|
|
17
|
+
:target: https://zenodo.org/badge/latestdoi/282223217
|
|
18
|
+
|
|
6
19
|
|
|
7
20
|
**EllipSect**
|
|
8
21
|
=============
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
|
|
11
24
|
|
|
12
25
|
EllipSect creates surface brightness profiles and extracts other
|
|
13
26
|
photometric data from the GALFIT output peng et al. (2002).
|
|
@@ -173,9 +186,9 @@ The code is under the license of **GNU**
|
|
|
173
186
|
|
|
174
187
|
If you find this code useful, please cite as:
|
|
175
188
|
|
|
176
|
-
Añorve,
|
|
177
|
-
|
|
178
|
-
|
|
189
|
+
Añorve, C., Reyes-Amador, U., Ríos-López, E., & López-Cruz, O. (2024).
|
|
190
|
+
canorve/EllipSect: v3.4.3 (v3.4.3). Zenodo. https://doi.org/10.5281/zenodo.13994369
|
|
191
|
+
|
|
179
192
|
|
|
180
193
|
|
|
181
194
|
--------------
|
|
@@ -233,12 +246,10 @@ PYTHON, 409(4), 1379–1392. doi:10.1111/j.1365-2966.2010.17426.x \__\_
|
|
|
233
246
|
**Other Stuff**
|
|
234
247
|
---------------
|
|
235
248
|
|
|
236
|
-
Check my
|
|
249
|
+
Check my other project GALFITtools
|
|
237
250
|
`here <https://github.com/canorve/GALFITools>`__
|
|
238
251
|
|
|
239
252
|
--------------
|
|
240
253
|
|
|
241
|
-
.. |DOI| image:: https://zenodo.org/badge/282223217.svg
|
|
242
|
-
:target: https://zenodo.org/badge/latestdoi/282223217
|
|
243
254
|
.. |A85a| image:: img/A85.cub.png
|
|
244
255
|
.. |A85b| image:: img/A85.def.png
|
|
@@ -88,7 +88,7 @@ master_doc = "index"
|
|
|
88
88
|
|
|
89
89
|
# General information about the project.
|
|
90
90
|
project = "EllipSect"
|
|
91
|
-
copyright = "
|
|
91
|
+
copyright = "2024, Christopher Añorve"
|
|
92
92
|
|
|
93
93
|
# The version info for the project you're documenting, acts as replacement for
|
|
94
94
|
# |version| and |release|, also used in various other places throughout the
|
|
Binary file
|
|
@@ -31,6 +31,7 @@ package_dir =
|
|
|
31
31
|
|
|
32
32
|
python_requires = >=3.8
|
|
33
33
|
install_requires =
|
|
34
|
+
importlib-metadata; python_version<"3.8"
|
|
34
35
|
importlib-metadata #; python_version<"3.8"
|
|
35
36
|
sphinx>=3.2.1
|
|
36
37
|
numpy>=1.20.3
|
|
@@ -79,7 +80,7 @@ exclude =
|
|
|
79
80
|
docs/conf.py
|
|
80
81
|
|
|
81
82
|
[pyscaffold]
|
|
82
|
-
version = 4.
|
|
83
|
+
version = 4.5
|
|
83
84
|
package = ellipsect
|
|
84
85
|
extensions =
|
|
85
86
|
no_skeleton
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Setup file for EllipSect.
|
|
3
3
|
Use setup.cfg to configure your project.
|
|
4
4
|
|
|
5
|
-
This file was generated with PyScaffold 4.
|
|
5
|
+
This file was generated with PyScaffold 4.5.
|
|
6
6
|
PyScaffold helps you to put up the scaffold of your new Python project.
|
|
7
7
|
Learn more under: https://pyscaffold.org/
|
|
8
8
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: EllipSect
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.4
|
|
4
4
|
Summary: A surface brightness analysis tool for GALFIT output.
|
|
5
5
|
Home-page: https://github.com/canorve/EllipSect
|
|
6
6
|
Author: Christopher Añorve
|
|
@@ -20,6 +20,7 @@ Classifier: Natural Language :: English
|
|
|
20
20
|
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
21
21
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
22
22
|
License-File: LICENSE.txt
|
|
23
|
+
Requires-Dist: importlib-metadata; python_version < "3.8"
|
|
23
24
|
Requires-Dist: importlib-metadata
|
|
24
25
|
Requires-Dist: sphinx>=3.2.1
|
|
25
26
|
Requires-Dist: numpy>=1.20.3
|
|
@@ -36,12 +37,25 @@ Requires-Dist: pytest-cov; extra == "testing"
|
|
|
36
37
|
:depth: 3
|
|
37
38
|
..
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
|
|
41
|
+
=============
|
|
42
|
+
|
|
43
|
+
.. image:: https://img.shields.io/pypi/v/EllipSect.svg
|
|
44
|
+
:alt: PyPI-Server
|
|
45
|
+
:target: https://pypi.org/project/EllipSect/
|
|
46
|
+
|
|
47
|
+
.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
|
|
48
|
+
:alt: Project generated with PyScaffold
|
|
49
|
+
:target: https://pyscaffold.org/
|
|
50
|
+
|
|
51
|
+
.. image:: https://zenodo.org/badge/282223217.svg
|
|
52
|
+
:target: https://zenodo.org/badge/latestdoi/282223217
|
|
53
|
+
|
|
40
54
|
|
|
41
55
|
**EllipSect**
|
|
42
56
|
=============
|
|
43
57
|
|
|
44
|
-
|
|
58
|
+
|
|
45
59
|
|
|
46
60
|
EllipSect creates surface brightness profiles and extracts other
|
|
47
61
|
photometric data from the GALFIT output peng et al. (2002).
|
|
@@ -207,9 +221,9 @@ The code is under the license of **GNU**
|
|
|
207
221
|
|
|
208
222
|
If you find this code useful, please cite as:
|
|
209
223
|
|
|
210
|
-
Añorve,
|
|
211
|
-
|
|
212
|
-
|
|
224
|
+
Añorve, C., Reyes-Amador, U., Ríos-López, E., & López-Cruz, O. (2024).
|
|
225
|
+
canorve/EllipSect: v3.4.3 (v3.4.3). Zenodo. https://doi.org/10.5281/zenodo.13994369
|
|
226
|
+
|
|
213
227
|
|
|
214
228
|
|
|
215
229
|
--------------
|
|
@@ -267,12 +281,10 @@ PYTHON, 409(4), 1379–1392. doi:10.1111/j.1365-2966.2010.17426.x \__\_
|
|
|
267
281
|
**Other Stuff**
|
|
268
282
|
---------------
|
|
269
283
|
|
|
270
|
-
Check my
|
|
284
|
+
Check my other project GALFITtools
|
|
271
285
|
`here <https://github.com/canorve/GALFITools>`__
|
|
272
286
|
|
|
273
287
|
--------------
|
|
274
288
|
|
|
275
|
-
.. |DOI| image:: https://zenodo.org/badge/282223217.svg
|
|
276
|
-
:target: https://zenodo.org/badge/latestdoi/282223217
|
|
277
289
|
.. |A85a| image:: img/A85.cub.png
|
|
278
290
|
.. |A85b| image:: img/A85.def.png
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
|
|
3
|
-
from ellipsect.inout.read import ArgParsing
|
|
4
|
-
from ellipsect.sectors.sect import SectorsGalfit
|
|
5
|
-
|
|
6
3
|
if sys.version_info[:2] >= (3, 8):
|
|
7
4
|
# TODO: Import directly (no need for conditional) when `python_requires = >= 3.8`
|
|
8
5
|
from importlib.metadata import PackageNotFoundError, version # pragma: no cover
|
|
@@ -287,12 +287,13 @@ def Comp2Ellip(galhead, galcomps, N, lw=1):
|
|
|
287
287
|
ellipses = []
|
|
288
288
|
|
|
289
289
|
#color value
|
|
290
|
-
values =
|
|
290
|
+
values = np.arange(N)
|
|
291
291
|
jet = cm = plt.get_cmap('jet')
|
|
292
292
|
cNorm = colors.Normalize(vmin=0, vmax=values[-1])
|
|
293
293
|
scalarMap = cmx.ScalarMappable(norm=cNorm, cmap=jet)
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
|
|
296
|
+
idxcol=0
|
|
296
297
|
for idx, item in enumerate(galcomps.N):
|
|
297
298
|
|
|
298
299
|
if galcomps.Active[idx] == True:
|
|
@@ -306,8 +307,7 @@ def Comp2Ellip(galhead, galcomps, N, lw=1):
|
|
|
306
307
|
w = galcomps.Rad[idx]
|
|
307
308
|
h = galcomps.Rad[idx]*galcomps.AxRat[idx]
|
|
308
309
|
|
|
309
|
-
|
|
310
|
-
colorVal = scalarMap.to_rgba(values[idx])
|
|
310
|
+
colorVal = scalarMap.to_rgba(values[idxcol])
|
|
311
311
|
|
|
312
312
|
|
|
313
313
|
ell=Ellipse((xc, yc), width = w, height = h, angle = pa,
|
|
@@ -316,7 +316,7 @@ def Comp2Ellip(galhead, galcomps, N, lw=1):
|
|
|
316
316
|
linewidth = lw)
|
|
317
317
|
|
|
318
318
|
ellipses.append(ell)
|
|
319
|
-
|
|
319
|
+
idxcol+=1
|
|
320
320
|
|
|
321
321
|
return ellipses
|
|
322
322
|
|
|
@@ -167,6 +167,20 @@ def ReadGALFITout(ellconf,galhead,galcomps):
|
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
galcomps = SelectGal(galcomps,ellconf.distmax,ellconf.numcomp)
|
|
170
|
+
|
|
171
|
+
#removes blank files created by galfit
|
|
172
|
+
if os.path.isfile("none"):
|
|
173
|
+
print("Blank file none detected")
|
|
174
|
+
print("Removing...")
|
|
175
|
+
os.remove("none")
|
|
176
|
+
print("Removed")
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
if os.path.isfile("None"):
|
|
180
|
+
print("Blank file None detected")
|
|
181
|
+
print("Removing...")
|
|
182
|
+
os.remove("None")
|
|
183
|
+
print("Removed")
|
|
170
184
|
|
|
171
185
|
|
|
172
186
|
errmsg="file {} does not exist".format(galhead.inputimage)
|
|
@@ -71,7 +71,7 @@ def NED(ellconf):
|
|
|
71
71
|
#https://ned.ipac.caltech.edu/cgi-bin/nph-objsearch?extend=no&of=xml_all&objname=ngc+6166&hconst=67.8&omegam=0.308&omegav=0.692
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
wgetcmd = 'wget -O {} "{}{}&hconst={:.1f}
|
|
74
|
+
wgetcmd = 'wget -O {} "{}{}&hconst={:.1f}\\&omegam={:.3f}\\&omegav={:.3f}"'.format(
|
|
75
75
|
filened,nedweb,objname,ellconf.hconst,ellconf.omegam,ellconf.omegav)
|
|
76
76
|
|
|
77
77
|
print("Running: ",wgetcmd)
|
|
@@ -94,7 +94,7 @@ def NED(ellconf):
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
print("reading ",filened)
|
|
97
|
-
votable=parse(filened,
|
|
97
|
+
votable=parse(filened,verify='ignore')
|
|
98
98
|
|
|
99
99
|
try:
|
|
100
100
|
table=votable.get_table_by_index(0)
|
|
@@ -28,7 +28,7 @@ def SubComp(ellconf, galhead, galcomps, sectcomps, axsec, n_sectors=19):
|
|
|
28
28
|
N=len(galcomps.N)
|
|
29
29
|
|
|
30
30
|
#color value
|
|
31
|
-
values =
|
|
31
|
+
values = np.arange(N)
|
|
32
32
|
jet = cm = plt.get_cmap('jet')
|
|
33
33
|
cNorm = colors.Normalize(vmin=0, vmax=values[-1])
|
|
34
34
|
scalarMap = cmx.ScalarMappable(norm=cNorm, cmap=jet)
|
|
@@ -37,21 +37,21 @@ def SubComp(ellconf, galhead, galcomps, sectcomps, axsec, n_sectors=19):
|
|
|
37
37
|
ab=ellconf.qarg
|
|
38
38
|
n=0
|
|
39
39
|
|
|
40
|
+
idxcol=0
|
|
40
41
|
maskcomp = galcomps.Active == True
|
|
41
42
|
while(n<N):
|
|
42
43
|
|
|
43
|
-
|
|
44
44
|
if galcomps.Active[n] == True:
|
|
45
45
|
namec = galcomps.NameComp[n] #check if name coincide, it must be
|
|
46
46
|
|
|
47
|
-
scmp = sectcomps[
|
|
47
|
+
scmp = sectcomps[idxcol]
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
###################################################
|
|
51
51
|
|
|
52
52
|
xradq, ysbq, ysberrq = ellip.sect2xy(scmp, ellconf, galhead, n_sectors)
|
|
53
53
|
|
|
54
|
-
colorVal = scalarMap.to_rgba(values[
|
|
54
|
+
colorVal = scalarMap.to_rgba(values[idxcol])
|
|
55
55
|
|
|
56
56
|
PlotSub(xradq, ysbq, n, axsec, namec, colorVal)
|
|
57
57
|
|
|
@@ -62,7 +62,7 @@ def SubComp(ellconf, galhead, galcomps, sectcomps, axsec, n_sectors=19):
|
|
|
62
62
|
|
|
63
63
|
PrintEllFilesComps(ellconf, galhead, namec, ncomp, xradq, ysbq, ysberrq)
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
idxcol+=1
|
|
66
66
|
n=n+1
|
|
67
67
|
|
|
68
68
|
|
ellipsect-3.4.2/img/A85.comp.png
DELETED
|
Binary file
|
ellipsect-3.4.2/img/A85.def.png
DELETED
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|