ppxf-sew 0.1.0__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.
ppxf_sew-0.1.0/LICENSE ADDED
@@ -0,0 +1,10 @@
1
+ Other/Proprietary License
2
+
3
+ Copyright (c) 2024 Jiafeng Lu
4
+
5
+ This software is provided as is with no warranty. You may use it for
6
+ non-commercial purposes and modify it for personal or internal use, as long
7
+ as you include this copyright and disclaimer in all copies. You may not
8
+ redistribute the code.
9
+
10
+ ###########################################################################
@@ -0,0 +1,75 @@
1
+ Metadata-Version: 2.1
2
+ Name: ppxf-sew
3
+ Version: 0.1.0
4
+ Summary: A method of stellar population synthesis based on ''Equivalent Widths spectrum'', utilizing pPXF for full-spectrum fitting
5
+ Author-email: Jiafeng Lu <jefferslu@live.com>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: License :: Other/Proprietary License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.11
11
+ Description-Content-Type: text/x-rst
12
+ License-File: LICENSE
13
+ Requires-Dist: ppxf==9.2.1
14
+ Requires-Dist: numpy>=1.26.4
15
+ Requires-Dist: scipy>=1.12.0
16
+
17
+
18
+ **pPXF-SEW: A full-spectrum fitting method of stellar population Synthesis based on ''Equivalent Widths spectrum'' without attenuation curve prior based on pPXF**
19
+
20
+ Description
21
+ ===========
22
+
23
+ This ``pPXF-SEW`` package contains a Python implementation of the stellar
24
+ population Synthesis based on ``Equivalent Widths spectrum`` (``SEW``)
25
+ method and the Penalized PiXel-Fitting (``pPXF``) method. It uses
26
+ full-spectrum fitting with SED to extract stellar and gas kinematics,
27
+ the stellar population, as well as the dust attenuation curve of stars
28
+ and galaxies, without a prior attenuation curve. The kinematics are derived
29
+ from the ``pPXF`` method, while the stellar population and attenuation curve
30
+ are derived from the ``SEW`` method.
31
+
32
+ The ``SEW`` method was described in Lu (2025) (in prep.).
33
+
34
+ The ``pPXF`` method was originally described in `Cappellari & Emsellem (2004)
35
+ <https://ui.adsabs.harvard.edu/abs/2004PASP..116..138C>`_
36
+ and was substantially upgraded in subsequent years, particularly in
37
+ `Cappellari (2017) <https://ui.adsabs.harvard.edu/abs/2017MNRAS.466..798C>`_.
38
+
39
+ Installation
40
+ ------------
41
+
42
+ Install with::
43
+
44
+ pip install ppxf-sew
45
+
46
+ Without write access to the global ``site-packages`` directory, use::
47
+
48
+ pip install --user ppxf-sew
49
+
50
+ To upgrade to the latest version, use::
51
+
52
+ pip install --upgrade ppxf-sew
53
+
54
+ Usage Examples
55
+ --------------
56
+
57
+ To learn how to use the ``pPXF-SEW`` package, run the examples as
58
+ Jupyter Notebooks in the ``ppxf-sew/example`` directory.
59
+ It can be found within the main ``pPXF-SEW`` package installation folder
60
+ inside `site-packages <https://stackoverflow.com/a/46071447>`_.
61
+
62
+ ###########################################################################
63
+
64
+ License
65
+ -------
66
+
67
+ Other/Proprietary License
68
+
69
+ Copyright (c) 2024 Jiafeng Lu
70
+
71
+ This software is provided as is with no warranty. You may use it for
72
+ non-commercial purposes and modify it for personal or internal use, as long
73
+ as you include this copyright and disclaimer in all copies. You may not
74
+ redistribute the code.
75
+
@@ -0,0 +1,59 @@
1
+
2
+ **pPXF-SEW: A full-spectrum fitting method of stellar population Synthesis based on ''Equivalent Widths spectrum'' without attenuation curve prior based on pPXF**
3
+
4
+ Description
5
+ ===========
6
+
7
+ This ``pPXF-SEW`` package contains a Python implementation of the stellar
8
+ population Synthesis based on ``Equivalent Widths spectrum`` (``SEW``)
9
+ method and the Penalized PiXel-Fitting (``pPXF``) method. It uses
10
+ full-spectrum fitting with SED to extract stellar and gas kinematics,
11
+ the stellar population, as well as the dust attenuation curve of stars
12
+ and galaxies, without a prior attenuation curve. The kinematics are derived
13
+ from the ``pPXF`` method, while the stellar population and attenuation curve
14
+ are derived from the ``SEW`` method.
15
+
16
+ The ``SEW`` method was described in Lu (2025) (in prep.).
17
+
18
+ The ``pPXF`` method was originally described in `Cappellari & Emsellem (2004)
19
+ <https://ui.adsabs.harvard.edu/abs/2004PASP..116..138C>`_
20
+ and was substantially upgraded in subsequent years, particularly in
21
+ `Cappellari (2017) <https://ui.adsabs.harvard.edu/abs/2017MNRAS.466..798C>`_.
22
+
23
+ Installation
24
+ ------------
25
+
26
+ Install with::
27
+
28
+ pip install ppxf-sew
29
+
30
+ Without write access to the global ``site-packages`` directory, use::
31
+
32
+ pip install --user ppxf-sew
33
+
34
+ To upgrade to the latest version, use::
35
+
36
+ pip install --upgrade ppxf-sew
37
+
38
+ Usage Examples
39
+ --------------
40
+
41
+ To learn how to use the ``pPXF-SEW`` package, run the examples as
42
+ Jupyter Notebooks in the ``ppxf-sew/example`` directory.
43
+ It can be found within the main ``pPXF-SEW`` package installation folder
44
+ inside `site-packages <https://stackoverflow.com/a/46071447>`_.
45
+
46
+ ###########################################################################
47
+
48
+ License
49
+ -------
50
+
51
+ Other/Proprietary License
52
+
53
+ Copyright (c) 2024 Jiafeng Lu
54
+
55
+ This software is provided as is with no warranty. You may use it for
56
+ non-commercial purposes and modify it for personal or internal use, as long
57
+ as you include this copyright and disclaimer in all copies. You may not
58
+ redistribute the code.
59
+
@@ -0,0 +1,27 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ppxf-sew"
7
+ version = "0.1.0"
8
+ description = "A method of stellar population synthesis based on ''Equivalent Widths spectrum'', utilizing pPXF for full-spectrum fitting"
9
+ authors = [
10
+ { name="Jiafeng Lu", email="jefferslu@live.com" }
11
+ ]
12
+ readme = "README.rst"
13
+ dependencies = [
14
+ "ppxf==9.2.1",
15
+ "numpy>=1.26.4",
16
+ "scipy>=1.12.0"
17
+ ]
18
+ requires-python = ">=3.11"
19
+ classifiers = [
20
+ "Programming Language :: Python :: 3",
21
+ "Development Status :: 4 - Beta",
22
+ "License :: Other/Proprietary License",
23
+ "Operating System :: OS Independent",
24
+ ]
25
+
26
+
27
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,22 @@
1
+ # __init__.py
2
+ """
3
+ Identifier: sew/__init__.py
4
+ Name: __init__.py
5
+ Description: __init__ of ewsps
6
+ Author: Jiafeng Lu
7
+ Created: 2024-06-01
8
+ Modified-History:
9
+ 2024-06-01, Jiafeng Lu, created
10
+ """
11
+ import os
12
+ from .ew_fit import ewfit,temp_l_make,galaxy_l_make
13
+ from .ew_util import all_temp_make
14
+
15
+
16
+ __version__ = "0.1.0"
17
+
18
+ __all__ = ["ewfit",
19
+ "temp_l_make",
20
+ "all_temp_make",
21
+ "galaxy_l_make"
22
+ ]