EllipSect 3.4.0__tar.gz → 3.4.2__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.0 → ellipsect-3.4.2}/PKG-INFO +1 -1
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/EllipSect.egg-info/PKG-INFO +1 -1
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/inout/plots.py +9 -7
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/inout/read.py +1 -1
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/lib/clas.py +1 -1
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/sectors/sect.py +2 -2
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/sky/sky.py +3 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/AUTHORS.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/CHANGELOG.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/CONTRIBUTING.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/LICENSE.txt +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/README.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/Makefile +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/_static/.gitignore +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/api.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/authors.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/changelog.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/conf.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/contributing.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/howto.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/index.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/license.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/readme.rst +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/docs/requirements.txt +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/example/README +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/example/gal.fits +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/example/galfit.feedme +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/example/psf.fits +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A2029.ring.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.comp.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.con-cub.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.cub.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.def.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.ell-cub.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.grid.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.log.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.pix.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.ranx1.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.ranx2.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/img/A85.rany1.png +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/pyproject.toml +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/setup.cfg +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/setup.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/EllipSect.egg-info/SOURCES.txt +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/EllipSect.egg-info/dependency_links.txt +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/EllipSect.egg-info/entry_points.txt +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/EllipSect.egg-info/not-zip-safe +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/EllipSect.egg-info/requires.txt +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/EllipSect.egg-info/top_level.txt +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/__init__.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/ellipsectors.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/inout/__init__.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/inout/galfit.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/inout/gfits.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/inout/prt.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/lib/__init__.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/lib/libs.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/phot/__init__.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/phot/ned.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/phot/phot.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/phot/tidal.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/sectors/__init__.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/sectors/comp.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/sectors/ellip.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/sectors/num.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/src/ellipsect/sky/__init__.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/tests/conftest.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/tests/gal.fits +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/tests/galfit.01 +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/tests/imgblock.fits +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/tests/psf.fits +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/tests/test_ellipsect.py +0 -0
- {EllipSect-3.4.0 → ellipsect-3.4.2}/tox.ini +0 -0
|
@@ -26,15 +26,16 @@ from ellipsect.inout.prt import PrintFilesComps
|
|
|
26
26
|
from ellipsect.inout.galfit import conver2Sersic
|
|
27
27
|
from ellipsect.inout.galfit import GetReff
|
|
28
28
|
|
|
29
|
-
def PlotSB(xradq,ysbq,ysberrq,xradm,ysbm,ysberrm,ellconf,scale):
|
|
29
|
+
def PlotSB(xradq, ysbq, ysberrq, xradm, ysbm, ysberrm, ellconf, scale):
|
|
30
30
|
""" Produces final best-fitting plot """
|
|
31
31
|
|
|
32
32
|
# subplot for arc sec axis
|
|
33
33
|
plt.close('all')
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
|
|
36
37
|
#ULISES begin
|
|
37
|
-
fig, (axsec,axred) = plt.subplots(2, sharex=True, sharey=False)
|
|
38
|
+
#fig, (axsec, axred) = plt.subplots(2, sharex=True, sharey=False)
|
|
38
39
|
gs = gridspec.GridSpec(2, 1,height_ratios=[3,1])
|
|
39
40
|
gs.update(hspace=0.07)
|
|
40
41
|
#ULISES end
|
|
@@ -62,11 +63,12 @@ def PlotSB(xradq,ysbq,ysberrq,xradm,ysbm,ysberrm,ellconf,scale):
|
|
|
62
63
|
axsec.set_ylabel(r"Surface Brightness $(mag\; arcsec^{-2})$")
|
|
63
64
|
# ULISES end
|
|
64
65
|
|
|
65
|
-
axsec.errorbar(xradq, ysbq,yerr=ysberrq,fmt='o-',capsize=2,color='red',markersize=0.7,label="galaxy",linewidth=2)
|
|
66
|
+
axsec.errorbar(xradq, ysbq, yerr=ysberrq,fmt='o-',capsize=2,color='red',markersize=0.7,label="galaxy",linewidth=2)
|
|
67
|
+
#axsec.plot(r, mgegal.sb[angal], 'C3-',linewidth=2)
|
|
66
68
|
|
|
67
69
|
|
|
68
70
|
if ellconf.flagalax == False:
|
|
69
|
-
axsec.errorbar(xradm, ysbm,yerr=ysberrm,fmt='o-',capsize=2,color='blue',markersize=0.7,label="Model",linewidth=2)
|
|
71
|
+
axsec.errorbar(xradm, ysbm, yerr=ysberrm,fmt='o-',capsize=2,color='blue',markersize=0.7,label="Model",linewidth=2)
|
|
70
72
|
|
|
71
73
|
|
|
72
74
|
if ellconf.flagrany == True:
|
|
@@ -94,7 +96,6 @@ def PlotSB(xradq,ysbq,ysberrq,xradm,ysbm,ysberrm,ellconf,scale):
|
|
|
94
96
|
axsec.tick_params(which='major', length=7)
|
|
95
97
|
axsec.tick_params(which='minor', length=4, color='r')
|
|
96
98
|
|
|
97
|
-
|
|
98
99
|
#begin psf fwhm
|
|
99
100
|
if ellconf.flagfwhm:
|
|
100
101
|
xpos = ellconf.fwhm*scale
|
|
@@ -146,6 +147,7 @@ def PlotSB(xradq,ysbq,ysberrq,xradm,ysbm,ysberrm,ellconf,scale):
|
|
|
146
147
|
|
|
147
148
|
err = ((ysbm/ysbq**2)**2) * ysberrq**2 + ((1/ysbq)**2) * ysberrm**2
|
|
148
149
|
err = np.sqrt(err)*100
|
|
150
|
+
|
|
149
151
|
axred = plt.subplot(gs[1])
|
|
150
152
|
|
|
151
153
|
if len(xradq) != len(residual):
|
|
@@ -159,7 +161,6 @@ def PlotSB(xradq,ysbq,ysberrq,xradm,ysbm,ysberrm,ellconf,scale):
|
|
|
159
161
|
axred.set_ylim(-2,2)
|
|
160
162
|
# ULISES end
|
|
161
163
|
|
|
162
|
-
|
|
163
164
|
if ellconf.flaglogx == True:
|
|
164
165
|
|
|
165
166
|
axred.set_xscale("log")
|
|
@@ -235,7 +236,8 @@ def PlotSB(xradq,ysbq,ysberrq,xradm,ysbm,ysberrm,ellconf,scale):
|
|
|
235
236
|
axred.spines[axis].set_linewidth(1.5)
|
|
236
237
|
|
|
237
238
|
|
|
238
|
-
|
|
239
|
+
|
|
240
|
+
return xran, yran, axret
|
|
239
241
|
|
|
240
242
|
#io/plot.py
|
|
241
243
|
def PlotSub(xradq,ysbq,nsub,axsec,namec,colorval):
|
|
@@ -78,7 +78,7 @@ def InitParsing():
|
|
|
78
78
|
parser.add_argument("-r95","--rad95", action="store_true", help="Draw a vertical line indicating the 95%% of total light")
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
parser.add_argument("-
|
|
81
|
+
parser.add_argument("-rc","--remcomp", action="store_true", help="remove file of subcomponents")
|
|
82
82
|
parser.add_argument("-gx","--galax", action="store_true", help="only the galaxy surface brightness is shown in the plot")
|
|
83
83
|
|
|
84
84
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|