ppxf 9.2.2__py3-none-any.whl
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/CHANGELOG.rst +937 -0
- ppxf/LICENSE.txt +10 -0
- ppxf/README.rst +79 -0
- ppxf/__init__.py +1 -0
- ppxf/capfit.py +1004 -0
- ppxf/examples/FILTER.RES.info.txt +411 -0
- ppxf/examples/FILTER.RES.txt +97561 -0
- ppxf/examples/__init__.py +1 -0
- ppxf/examples/ppxf_example_gas_sdss_tied.py +271 -0
- ppxf/examples/ppxf_example_kinematics_sauron.py +222 -0
- ppxf/examples/ppxf_example_kinematics_sdss.py +205 -0
- ppxf/examples/ppxf_example_montecarlo_simulation.py +193 -0
- ppxf/examples/ppxf_example_population_gas_sdss.py +300 -0
- ppxf/examples/ppxf_example_population_photometry.py +241 -0
- ppxf/examples/ppxf_example_sky_and_symmetric_losvd.py +160 -0
- ppxf/examples/ppxf_example_two_components.py +172 -0
- ppxf/examples/ppxf_python_reference_output.txt +306 -0
- ppxf/ppxf.py +2765 -0
- ppxf/ppxf_util.py +1148 -0
- ppxf/spectra/NGC3073_SDSS_DR8.fits +265 -0
- ppxf/spectra/NGC3522_SDSS_DR8.fits +219 -0
- ppxf/spectra/NGC4550_SAURON.fits +0 -0
- ppxf/spectra/NGC4636_SDSS_DR12.fits +1047 -3
- ppxf/spectra/legac_M19_56670_v3.0.fits +786 -0
- ppxf/sps_models/Vazdekis2012_ssp_mass_Padova00_UN_baseFe_v10.0.txt +4210 -0
- ppxf/sps_models/Vazdekis2012_ssp_phot_Padova00_UN_v10.0.txt +4210 -0
- ppxf/sps_models/Vazdekis2012_ssp_sdss_miuscat_UN1.30_v9.txt +360 -0
- ppxf/sps_models/spectra_sun_vega.npz +0 -0
- ppxf/sps_util.py +313 -0
- ppxf-9.2.2.dist-info/METADATA +2425 -0
- ppxf-9.2.2.dist-info/RECORD +34 -0
- ppxf-9.2.2.dist-info/WHEEL +5 -0
- ppxf-9.2.2.dist-info/top_level.txt +1 -0
- ppxf-9.2.2.dist-info/zip-safe +1 -0
ppxf/CHANGELOG.rst
ADDED
|
@@ -0,0 +1,937 @@
|
|
|
1
|
+
|
|
2
|
+
Changelog
|
|
3
|
+
---------
|
|
4
|
+
|
|
5
|
+
V9.2.2: MC, Oxford, 20 May 2024
|
|
6
|
+
+++++++++++++++++++++++++++++++
|
|
7
|
+
|
|
8
|
+
- ``ppxf``: Fixed an issue where the absence of the ``reg_dim`` keyword could
|
|
9
|
+
halt the program (bug from V9.2.1). Thanks to Jesse van de Sande
|
|
10
|
+
(unsw.edu.au) and Luiz A. Silva-Lima (Univ. Sao Paulo, Brazil) for the
|
|
11
|
+
report.
|
|
12
|
+
|
|
13
|
+
- ``ppxf``: Avoid possible program stop when ``templates`` are shorter than
|
|
14
|
+
``galaxy`` (bug from V9.2.1).
|
|
15
|
+
|
|
16
|
+
- ``ppxf``: Avoid truncating ``templates`` to ``goodpixels`` in the final plot,
|
|
17
|
+
when both ``lam`` and ``lam_temp`` parameters are supplied. Instead, show the
|
|
18
|
+
``templates`` over the full ``galaxy`` spectral range.
|
|
19
|
+
|
|
20
|
+
- ``ppxf``: Corrected behaviour to only use the range between the first and
|
|
21
|
+
last ``goodpixels`` for determining the vertical plotting range. Thanks to
|
|
22
|
+
David Gooding (chch.ox.ac.uk) for illustrating the problem.
|
|
23
|
+
|
|
24
|
+
- ``ppxf_example_kinematics_sdss.py``: Modified the example to de-redshift the
|
|
25
|
+
spectrum by default, minimizing potential confusion.
|
|
26
|
+
|
|
27
|
+
V9.2.1: MC, Oxford, 18 April 2024
|
|
28
|
+
+++++++++++++++++++++++++++++++++
|
|
29
|
+
|
|
30
|
+
- ``sps_util.synthetic_photometry``: Accepts input wavelengths that are not
|
|
31
|
+
evenly spaced.
|
|
32
|
+
- ``ppxf_util.mag_spectrum``: A new function to get the apparent magnitude from
|
|
33
|
+
a spectrum in any photometric band, at any redshift, in either the AB or Vega
|
|
34
|
+
magnitude system.
|
|
35
|
+
- ``ppxf``: Now considers the given ``goodpixels`` when checking that the
|
|
36
|
+
``templates`` cover the full ``galaxy`` spectrum, if both ``lam`` and
|
|
37
|
+
``lam_temp`` are provided.
|
|
38
|
+
- ``ppxf``: Allow for variable step size across intervals and dimensions in the
|
|
39
|
+
numerical derivatives used for regularization, with the new keyword
|
|
40
|
+
``reg_step``.
|
|
41
|
+
- ``ppxf``: Avoids new ``SyntaxWarning`` in Matplotlib LaTeX string in the
|
|
42
|
+
latest Python 3.12.
|
|
43
|
+
- ``ppxf``: Avoid program stop when passing an input covariance matrix while
|
|
44
|
+
fitting for gas emission lines. Thanks to Jackson ODonnell (ucsc.edu) for the
|
|
45
|
+
report.
|
|
46
|
+
|
|
47
|
+
V9.1.1: MC, Oxford, 18 January 2024
|
|
48
|
+
+++++++++++++++++++++++++++++++++++
|
|
49
|
+
|
|
50
|
+
- ``sps_util.mass_to_light``: Now it can calculate the stellar mass-to-light
|
|
51
|
+
ratio (``M*/L``) for any stellar population synthesis (SPS) model, any
|
|
52
|
+
filter, and any redshift, using the output weights from ``pPXF``. No need for
|
|
53
|
+
pre-computed tables anymore.
|
|
54
|
+
- ``ppxf_util.mag_sun``: A new function to get the absolute solar magnitude in
|
|
55
|
+
any photometric band, at any redshift, in either the AB or Vega magnitude
|
|
56
|
+
system.
|
|
57
|
+
|
|
58
|
+
V9.0.2: MC, Oxford, 30 November 2023
|
|
59
|
+
++++++++++++++++++++++++++++++++++++
|
|
60
|
+
|
|
61
|
+
- ``ppxf``: Fixed bug in the automatic truncation of the template wavelength,
|
|
62
|
+
when using ``bounds`` together with ``lam`` and ``lam_temp``.
|
|
63
|
+
|
|
64
|
+
V9.0.1: MC, Oxford, 12 November 2023
|
|
65
|
+
++++++++++++++++++++++++++++++++++++
|
|
66
|
+
|
|
67
|
+
- Replaced ``miles_util`` with ``sps_util``, a versatile and flexible function
|
|
68
|
+
that supports various stellar population synthesis (SPS) models. Currently, I
|
|
69
|
+
distribute (with permission) the ``E-MILES`` (Vazdekis+2016), ``GALAXEV``
|
|
70
|
+
(Bruzual & Charlot 2003) and ``fsps`` (Conroy+2009,2010) stellar population
|
|
71
|
+
templates. One can now change SPS by just modifying the filename.
|
|
72
|
+
|
|
73
|
+
IMPORTANT: I no longer include the SPS models in the ``pPXF`` package, due to
|
|
74
|
+
file size constraints. One must download the SPS templates separately after
|
|
75
|
+
the ``pPXF`` installation, as demonstrated in all the ``pPXF`` examples.
|
|
76
|
+
- I adapted all examples included in the package to use the new ``sps_util``.
|
|
77
|
+
- ``ppxf.plot``: New keyword ``lam_flam`` to plot ``lam*f(lam) = nu*f(nu)``.
|
|
78
|
+
- ``ppxf_util.synthetic_photometry``: Converted from a function to a class.
|
|
79
|
+
Added ``.lam_piv`` attribute to compute the pivot wavelength of each filter.
|
|
80
|
+
- ``ppxf_util.varsmooth``: Specialized faster convolution if sigma is a scalar.
|
|
81
|
+
while using the analytic Fourier transform to deal with undersampling.
|
|
82
|
+
- ``ppxf``: Raised an error if ``phot`` input is not finite.
|
|
83
|
+
|
|
84
|
+
V8.2.6: MC, Oxford, 6 July 2023
|
|
85
|
+
+++++++++++++++++++++++++++++++
|
|
86
|
+
|
|
87
|
+
- ``capfit``: Relaxed tolerance when checking initial guess feasibility.
|
|
88
|
+
- ``ppxf_util``: Fixed program stop in ``gaussian_filter1d`` when ``sig=0``.
|
|
89
|
+
Thanks to Jesse Van de Sande (sydney.edu.au) for the report.
|
|
90
|
+
|
|
91
|
+
V8.2.4: MC, Oxford, 12 May 2023
|
|
92
|
+
+++++++++++++++++++++++++++++++
|
|
93
|
+
|
|
94
|
+
- ``ppxf``: Fixed incorrectly switching to ``method='linear'`` when requesting
|
|
95
|
+
to fit stellar reddening alone, while all other parameters are fixed. Thanks
|
|
96
|
+
to Jong Chul Lee (kasi.re.kr) for a clear example of reproducing the bug.
|
|
97
|
+
|
|
98
|
+
V8.2.3: MC, Oxford, 5 January 2023
|
|
99
|
+
++++++++++++++++++++++++++++++++++
|
|
100
|
+
|
|
101
|
+
- ``ppxf``: Fixed program stop when fitting both sky spectra and gas emission
|
|
102
|
+
lines. Many thanks to Adarsh Ranjan (kasi.re.kr) for a clear example
|
|
103
|
+
of reproducing the problem and for the bug fix.
|
|
104
|
+
- ``ppxf``: Raise an error if ``velscale`` is not a scalar. Updated example
|
|
105
|
+
procedures. This fixes a program stop due to a change in NumPy 1.24.
|
|
106
|
+
- ``ppxf_util``: Changed ``log_rebin`` to return ``velscale`` as a scalar.
|
|
107
|
+
- New example procedure ``ppxf_example_gas_sdss_tied.py`` to illustrate the
|
|
108
|
+
use of the ``tied`` and ``constr_kinem`` keywords.
|
|
109
|
+
|
|
110
|
+
V8.2.2: MC, Oxford, 11 October 2022
|
|
111
|
+
+++++++++++++++++++++++++++++++++++
|
|
112
|
+
|
|
113
|
+
- ``ppxf``: Fixed program stop with ``tied`` or ``fixed`` keywords and
|
|
114
|
+
nonlinear variables in addition to the kinematics. Thanks to Tobias Looser
|
|
115
|
+
(cam.ac.uk) for the report and fix.
|
|
116
|
+
|
|
117
|
+
V8.2.1: MC, Oxford, 3 September 2022
|
|
118
|
+
++++++++++++++++++++++++++++++++++++
|
|
119
|
+
|
|
120
|
+
- ``ppxf``: New keyword ``dust`` which allows one to associate different
|
|
121
|
+
general attenuation functions to different sets of templates. This is useful
|
|
122
|
+
for example to apply three different attenuation functions to the young and
|
|
123
|
+
old stellar templates and to the gas emission lines respectively.
|
|
124
|
+
- ``ppxf``: Uses ``A_V`` instead of ``E(B-V)`` to parametrize attenuation, when
|
|
125
|
+
using the now-obsolete keywords ``reddening`` and ``gas_reddening``.
|
|
126
|
+
- ``ppxf``: New default function ``attenuation()``. However, one can now use
|
|
127
|
+
general attenuation functions with an arbitrary number of bound or fixed
|
|
128
|
+
parameters.
|
|
129
|
+
- ``ppxf``: New internal functions ``set_lam_input``, ``set_gas_input``,
|
|
130
|
+
``set_dust_input``, ``set_phot_input`` to organize the code.
|
|
131
|
+
- ``ppxf``: Improved vertical scaling of default plots.
|
|
132
|
+
- ``ppxf``: New keywords ``pp.plot(spec=True, phot=True)`` to plot only the
|
|
133
|
+
photometric or spectroscopic best fits respectively.
|
|
134
|
+
- ``ppxf_util``: New function ``varsmooth`` for Gaussian convolution with a
|
|
135
|
+
variable sigma. Unlike the similar ``gaussian_filter1d``, this new function
|
|
136
|
+
uses FFT and the analytic Fourier Transform of a Gaussian, like ``ppxf``.
|
|
137
|
+
- ``ppxf_util``: Included additional gas emission lines in ``emission_lines()``.
|
|
138
|
+
- ``capfit``: Use ``scipy.optimize.linprog(method='highs')`` to find feasible
|
|
139
|
+
starting point in ``lsq_lin``. This eliminates possible program stops in
|
|
140
|
+
certain situations with linearly dependent constraints.
|
|
141
|
+
- ``capfit``: Set default ``linear_method='lsq_lin'``. This removes the need
|
|
142
|
+
to install ``cvxopt`` when using ``constr_kinem`` in ``pPXF``.
|
|
143
|
+
|
|
144
|
+
V8.1.0: MC, Oxford, 10 June 2022
|
|
145
|
+
++++++++++++++++++++++++++++++++
|
|
146
|
+
|
|
147
|
+
- ``ppxf``: More accurate determination of the range for truncating the
|
|
148
|
+
templates when passing both ``lam_temp`` and ``lam``.
|
|
149
|
+
- ``ppxf``: Check for ``lam`` or ``lam_temp`` consistency with ``velscale`` and
|
|
150
|
+
return an error if they do not match.
|
|
151
|
+
- ``ppxf``: Use micrometre units and denser tick labels for the logarithmic
|
|
152
|
+
wavelength axis.
|
|
153
|
+
- ``ppxf_util.synthetic_photometry``: moved from ``miles_util`` and made it
|
|
154
|
+
independent of the stellar library. Adopted the same filter file format as
|
|
155
|
+
EAZY, FAST, HyperZ... for interoperability.
|
|
156
|
+
Allow passing a file with user-defined filter response functions.
|
|
157
|
+
- ``ppxf_util.log_rebin``: Support irregularly sampled input wavelength.
|
|
158
|
+
- ``ppxf_util.gaussian_filter1d``: New keyword ``mode='constant'`` or
|
|
159
|
+
``mode='wrap'``.
|
|
160
|
+
- Updated ``ppxf_example_population_photometry.py``
|
|
161
|
+
|
|
162
|
+
V8.0.2: MC, Oxford, 28 March 2022
|
|
163
|
+
+++++++++++++++++++++++++++++++++
|
|
164
|
+
|
|
165
|
+
- ``ppxf``: Allow fitting photometric measurements (SED fitting) together with
|
|
166
|
+
a spectrum. This is implemented via the new keyword ``phot`` passing a
|
|
167
|
+
dictionary of parameters.
|
|
168
|
+
- ``ppxf``: plot photometric fit together with spectrum when fitting
|
|
169
|
+
photometry.
|
|
170
|
+
- ``ppxf``: New keyword ``lam_temp`` to input the templates wavelength. When
|
|
171
|
+
this is given, together with the galaxy wavelength ``lam``, the templates are
|
|
172
|
+
automatically truncated to an optimal wavelength range, and it becomes
|
|
173
|
+
unnecessary to use the keyword ``vsyst``.
|
|
174
|
+
- ``ppxf``: Warning if ``templates`` are ``> 2x`` longer than ``galaxy``.
|
|
175
|
+
- ``ppxf``: When fitting photometry one can input extended template spectra to
|
|
176
|
+
overplot the extrapolated best-fit spectrum together with the photometry.
|
|
177
|
+
- New demo file on photometric fitting
|
|
178
|
+
``ppxf_example_population_photometry.py``.
|
|
179
|
+
- ``miles_util.photometry_from_table``: New example function to illustrate the
|
|
180
|
+
generation of the input photometric templates for the ``phot`` keyword, using
|
|
181
|
+
tabulated SSP model magnitudes.
|
|
182
|
+
- ``miles_util.photometry_from_spectra``: New example function to illustrate
|
|
183
|
+
the generation of photometric templates from the spectra using filter
|
|
184
|
+
responses.
|
|
185
|
+
- Replaced MILES spectral models of Vazdekis et al. (2010) with E-MILES models
|
|
186
|
+
of Vazdekis et al. (2016). Thanks to Alexandre Vazdekis (iac.es) for the
|
|
187
|
+
permission.
|
|
188
|
+
- Adapted all ``pPXF`` examples to use the E-MILES templates.
|
|
189
|
+
- ``miles_util.miles``: changed names of output wavelength ``.ln_lam_temp`` to
|
|
190
|
+
make clear they represent natural logarithms.
|
|
191
|
+
- ``miles_util.miles``: set ``FWHM_gal=None`` to skip templates convolution.
|
|
192
|
+
- ``ppxf``: Optionally performs global optimization of the non-linear
|
|
193
|
+
parameters. This is implemented via the new keyword ``global_search``.
|
|
194
|
+
- ``ppxf``: Allow the use of multiplicative polynomials together with
|
|
195
|
+
reddening.
|
|
196
|
+
- ``ppxf``: Plot individual gas emission components in addition to their sum.
|
|
197
|
+
- ``ppxf``: Updated docstring documentation for the new features.
|
|
198
|
+
- ``capfit``: Completely removed tied/fixed variables from the optimization and
|
|
199
|
+
constraints. This improves the conditioning of the Jacobian and further
|
|
200
|
+
strengthens the robustness of the optimization.
|
|
201
|
+
- ``miles_util``: fixed ``flux`` array mismatch when using ``age_range`` or
|
|
202
|
+
``metal_range``. Thanks to Davide Bevacqua (inaf.it) for the report.
|
|
203
|
+
- ``ppxf``: Fixed program stop when fitting gas with a template length that is
|
|
204
|
+
not a multiple of ``velscale_ratio``.
|
|
205
|
+
|
|
206
|
+
V7.4.5: MC, Oxford, 16 July 2021
|
|
207
|
+
++++++++++++++++++++++++++++++++
|
|
208
|
+
|
|
209
|
+
- ``ppxf``: New keyword ``pp.plot(clip_gas=True)`` to ignore the gas emission
|
|
210
|
+
lines while determining the plotting ranges for the best-fitting model.
|
|
211
|
+
- ``miles_util``: New attribute ``.flux`` to convert between light-weighted
|
|
212
|
+
and mass-weighted stellar population quantities. Updated the corresponding
|
|
213
|
+
documentation in the docstring.
|
|
214
|
+
- ``ppxf_example_population_gas_sdss``: Show how to convert between light-weighted
|
|
215
|
+
and mass-weighted stellar population using the new ``miles.flux`` attribute.
|
|
216
|
+
- ``ppxf_util.log_rebin``: support fast log rebinning of all columns of 2-dim arrays.
|
|
217
|
+
|
|
218
|
+
V7.4.4: MC, Oxford, 10 February 2021
|
|
219
|
+
++++++++++++++++++++++++++++++++++++
|
|
220
|
+
|
|
221
|
+
- ``ppxf``: More robust matrix scaling when using linear equality constraints
|
|
222
|
+
in ``constr_templ`` with ``linear_method='lsq_box'``. Thanks to Shravan Shetty
|
|
223
|
+
(pku.edu.cn) for a detailed report and for testing my fix.
|
|
224
|
+
|
|
225
|
+
V7.4.3: MC, Oxford, 21 December 2020
|
|
226
|
+
++++++++++++++++++++++++++++++++++++
|
|
227
|
+
|
|
228
|
+
- ``capfit``: New ``linear_method`` keyword to select between ``cvxopt`` or
|
|
229
|
+
``lsq_lin``, when using linear constraints, for cases where the latter stops.
|
|
230
|
+
The ``cvxopt`` package must be installed when setting that option.
|
|
231
|
+
- ``ppxf``: Adapted to use ``capfit`` with ``linear_method='cvxopt'`` when
|
|
232
|
+
enforcing linear constraints on the kinematics with ``constr_kinem``.
|
|
233
|
+
- ``ppxf``: Included NOTE in the documentation of ``constr_kinem``.
|
|
234
|
+
All changes above were after detailed reports by Kyle Westfall (ucolick.org).
|
|
235
|
+
|
|
236
|
+
V7.4.2: MC, Oxford, 9 October 2020
|
|
237
|
+
++++++++++++++++++++++++++++++++++
|
|
238
|
+
|
|
239
|
+
- ``ppxf``: Corrected typo in example in the documentation of ``constr_templ``.
|
|
240
|
+
- ``ppxf``: Check that ``constr_templ`` and ``constr_kinem`` are dictionaries.
|
|
241
|
+
Thanks to Davide Bevacqua (unibo.it) for the feedback.
|
|
242
|
+
|
|
243
|
+
V7.4.1: MC, Oxford, 11 September 2020
|
|
244
|
+
+++++++++++++++++++++++++++++++++++++
|
|
245
|
+
|
|
246
|
+
- ``capfit``: Fixed possible infinite loop in ``lsq_box`` and ``lsq_lin``.
|
|
247
|
+
Thanks to Shravan Shetty (pku.edu.cn) for the detailed report and to both
|
|
248
|
+
him and Kyle Westfall (ucolick.org) for testing the fix.
|
|
249
|
+
- ``capfit``: Use NumPy rather than the SciPy version of ``linalg.lstsq`` to
|
|
250
|
+
avoid a current SciPy bug in the default criterion for rank deficiency.
|
|
251
|
+
- ``capfit``: Renamed ``cond`` keyword to ``rcond`` for consistency with NumPy.
|
|
252
|
+
- ``capfit``: Passed ``rcond`` keyword to ``cov_err`` function.
|
|
253
|
+
- ``ppxf``: removed ``rcond`` keyword in ``capfit`` call. Use default instead.
|
|
254
|
+
|
|
255
|
+
V7.4.0: MC, Oxford, 20 August 2020
|
|
256
|
+
++++++++++++++++++++++++++++++++++
|
|
257
|
+
|
|
258
|
+
- ``capfit``: New function ``lsq_lin`` implementing a linear least-squares
|
|
259
|
+
linearly constrained algorithm supporting rank-deficient matrices and allowing
|
|
260
|
+
for a starting guess.
|
|
261
|
+
- ``capfit``: Removed the ``lsqlin`` procedure which is superseded by ``lsq_lin``.
|
|
262
|
+
- ``capfit``: Renamed ``lsqbox`` to ``lsq_box`` and revised its interface.
|
|
263
|
+
- ``ppxf``: Modified to use the new ``lsq_lin`` and the updated ``lsq_box`` functions.
|
|
264
|
+
- ``ppxf``: More examples for the ``constr_templ`` and ``constr_kinem`` keywords.
|
|
265
|
+
- Set redshift ``z = 0`` when one uncomments the lines to bring the spectrum to
|
|
266
|
+
the rest-frame in ``ppxf_example_kinematics_sdss.py``. Thanks to
|
|
267
|
+
Vaidehi S. Paliya (desy.de) for pointing out the inconsistency in my example.
|
|
268
|
+
|
|
269
|
+
V7.3.0: MC, Oxford, 10 July 2020
|
|
270
|
+
++++++++++++++++++++++++++++++++
|
|
271
|
+
|
|
272
|
+
- ``capfit``: New function ``lsqbox`` implementing a fast linear least-squares
|
|
273
|
+
box-constrained (bounds) algorithm which allows for a starting guess.
|
|
274
|
+
While testing I also discovered a major mistake in the current implementation
|
|
275
|
+
of ``scipy.optimize.lsq_linear`` (my fix was later included in Scipy 1.6).
|
|
276
|
+
- ``ppxf``: The new ``linear_method='lsqbox'`` and ``linear_method='cvxopt'``
|
|
277
|
+
now use an initial guess for the solution, which significantly speeds up the
|
|
278
|
+
kinematic fit with multiple templates. As an example, my procedure
|
|
279
|
+
``ppxf_example_population_gas_sdss`` is now about 4 times faster with the new
|
|
280
|
+
``linear_method='lsqbox'`` than with the legacy ``linear_method='nnls'``.
|
|
281
|
+
- ``ppxf``: Added support for linear equality constraints on the templates
|
|
282
|
+
``constr_templ`` and for using the keyword ``fraction`` with both
|
|
283
|
+
``linear_method='lsqbox'`` and ``linear_method='nnls'``.
|
|
284
|
+
- Print ``degree`` and ``mdegree`` with the final results.
|
|
285
|
+
- Set ``linear=True`` automatically if the fit has no free non-linear parameters,
|
|
286
|
+
to avoid a program stop. Thanks to Shravan Shetty (pku.edu.cn) for the report.
|
|
287
|
+
|
|
288
|
+
V7.2.1: MC, Oxford, 12 June 2020
|
|
289
|
+
++++++++++++++++++++++++++++++++
|
|
290
|
+
|
|
291
|
+
- ``capfit``: New input keyword ``cond`` for Jacobian rank tolerance.
|
|
292
|
+
- ``capfit``: Use ``bvls`` to solve quadratic subproblem with only ``bounds``.
|
|
293
|
+
- ``ppxf``: Set ``cond=1e-7`` in ``capfit`` call, when using linear constraints.
|
|
294
|
+
The ``capfit`` related changes were due to detailed feedback by Kyle Westfall
|
|
295
|
+
(ucolick.org), to deal with situations with degenerate Jacobians, like when
|
|
296
|
+
there is no stellar continuum and one uses multiplicative polynomials.
|
|
297
|
+
- ``ppxf``: Clarified documentation for ``.gas_zero_template`` and the
|
|
298
|
+
corresponding warning message, after feedback by Laura Salo (umn.edu).
|
|
299
|
+
|
|
300
|
+
V7.2.0: MC, Oxford, 4 May 2020
|
|
301
|
+
++++++++++++++++++++++++++++++
|
|
302
|
+
|
|
303
|
+
- Allow for ``linear_method='cvxopt'`` when the optional ``cvxopt`` package
|
|
304
|
+
is installed.
|
|
305
|
+
|
|
306
|
+
V7.1.0: MC, Oxford, 30 April 2020
|
|
307
|
+
+++++++++++++++++++++++++++++++++
|
|
308
|
+
|
|
309
|
+
- Introduced new ``ppxf`` keyword ``linear_method``, and corresponding changes
|
|
310
|
+
in the code, to select between the old ('nnls') and the new ('lsqlin')
|
|
311
|
+
approach to the solution of the linear least-squares subproblem in ``ppxf``.
|
|
312
|
+
Thanks to Sam Vaughan (sydney.edu.au) for a convincing minimal example
|
|
313
|
+
illustrating the usefulness of this keyword.
|
|
314
|
+
|
|
315
|
+
V7.0.1: MC, Oxford, 8 April 2020
|
|
316
|
+
++++++++++++++++++++++++++++++++
|
|
317
|
+
|
|
318
|
+
- Support ``.gas_zero_template`` and ``fraction`` together with other
|
|
319
|
+
equality constraints.
|
|
320
|
+
- Included ``np.pad(...mode='constant')`` for backward compatibility with
|
|
321
|
+
Numpy 1.16. Thanks to Shravan Shetty (KIAA-PKU) for the suggestion.
|
|
322
|
+
- Fix ``rebin()`` not retaining the dimensionality of an input column-vector.
|
|
323
|
+
This resulted in a program stop with a single gas template and
|
|
324
|
+
``velscale_ratio > 1``. Thanks to Zhiyuan Ji (astro.umass.edu) for a clear
|
|
325
|
+
example reproducing the bug.
|
|
326
|
+
- ``capfit``: New keyword ``cond`` for ``lsqlin``.
|
|
327
|
+
- ``capfit``: Relaxed assertion for inconsistent inequalities in ``lsqlin``
|
|
328
|
+
to avoid false positives. Thanks to Kyle Westfall (UCO Lick) for a detailed
|
|
329
|
+
bug report.
|
|
330
|
+
|
|
331
|
+
V7.0.0: MC, Oxford, 10 January 2020
|
|
332
|
+
+++++++++++++++++++++++++++++++++++
|
|
333
|
+
|
|
334
|
+
- ``capfit``: New general linear least-squares optimization function
|
|
335
|
+
``lsqlin`` which is now used to solve the quadratic subproblem.
|
|
336
|
+
- ``capfit``: Allow for linear inequality/equality constraints
|
|
337
|
+
``A_ineq``, ``b_ineq`` and ``A_eq``, ``b_eq``.
|
|
338
|
+
- ``ppxf``: Use (faster) ``capfit.lsqlin`` for the linear fit.
|
|
339
|
+
- ``ppxf``: Use updated ``capfit.capfit`` for the non-linear optimization.
|
|
340
|
+
- ``ppxf``: Allow for linear equalities/inequalities for both the template
|
|
341
|
+
weights and the kinematic parameters with the ``constr_templ`` and
|
|
342
|
+
``constr_kinem`` optional keywords.
|
|
343
|
+
- ``ppxf``: New ``set_linear_constraints`` function.
|
|
344
|
+
- ``ppxf``: Updated documentation.
|
|
345
|
+
|
|
346
|
+
V6.7.17: MC, Oxford, 14 November 2019
|
|
347
|
+
+++++++++++++++++++++++++++++++++++++
|
|
348
|
+
|
|
349
|
+
- ``capfit``: Written complete documentation.
|
|
350
|
+
- ``capfit``: Improved print formatting.
|
|
351
|
+
- ``capfit``: Return ``.message`` attribute.
|
|
352
|
+
- ``capfit``: Improved ``xtol`` convergence test.
|
|
353
|
+
- ``capfit``: Only accept final move if ``chi2`` decreased.
|
|
354
|
+
- ``capfit``: Strictly satisfy bounds during Jacobian computation.
|
|
355
|
+
|
|
356
|
+
V6.7.16: MC, Oxford, 12 June 2019
|
|
357
|
+
+++++++++++++++++++++++++++++++++
|
|
358
|
+
|
|
359
|
+
- ``capfit``: Use only free parameters for ``xtol`` convergence test.
|
|
360
|
+
- ``capfit``: Describe in words convergence status with nonzero ``verbose``.
|
|
361
|
+
- ``capfit``: Fixed program stop when ``abs_step`` is undefined.
|
|
362
|
+
- ``capfit``: Fixed ignoring optional ``max_nfev``.
|
|
363
|
+
|
|
364
|
+
V6.7.15: MC, Oxford, 7 February 2019
|
|
365
|
+
++++++++++++++++++++++++++++++++++++
|
|
366
|
+
- Removed unused ``re`` import.
|
|
367
|
+
- Removed Scipy's ``next_fast_len`` usage due to an issue with odd padding size.
|
|
368
|
+
Thanks to Eric Emsellem (ESO) for a clear example illustrating this rare and
|
|
369
|
+
subtle bug.
|
|
370
|
+
|
|
371
|
+
V6.7.14: MC, Oxford, 27 November 2018
|
|
372
|
+
++++++++++++++++++++++++++++++++++++++
|
|
373
|
+
- Print the used ``tied`` parameters equalities, if any.
|
|
374
|
+
- Return ``.ndof`` attribute.
|
|
375
|
+
- Do not remove ``fixed`` or ``tied`` parameters from the DOF calculation.
|
|
376
|
+
Thanks to Joanna Woo (Univ. of Victoria) for the correction.
|
|
377
|
+
- Replaced ``normalize``, ``min_age``, ``max_age`` and ``metal`` keywords with
|
|
378
|
+
``norm_range``, ``age_range`` and ``metal_range`` in ``ppxf.miles_util.miles``.
|
|
379
|
+
- Fixed ``clock`` ``DeprecationWarning`` in Python 3.7.
|
|
380
|
+
|
|
381
|
+
V6.7.13: MC, Oxford, 20 September 2018
|
|
382
|
+
++++++++++++++++++++++++++++++++++++++
|
|
383
|
+
- Expanded documentation of ``reddening`` and ``gas_reddening``.
|
|
384
|
+
Thanks to Nick Boardman (Univ. Utah) for the feedback.
|
|
385
|
+
- ``capfit`` now raises an error if one tries to tie parameters to themselves.
|
|
386
|
+
Thanks to Kyle Westfall (Univ. Santa Cruz) for the suggestion.
|
|
387
|
+
- ``capfit`` uses Python 3.6 f-strings.
|
|
388
|
+
|
|
389
|
+
V6.7.12: MC, Oxford, 9 July 2018
|
|
390
|
+
++++++++++++++++++++++++++++++++
|
|
391
|
+
- Allow for ``velscale`` and ``vsyst`` to be Numpy arrays rather than scalars.
|
|
392
|
+
- Improved criterion for when the Balmer series is within the fitted wavelength
|
|
393
|
+
range in ``ppxf.ppxf_util.emission_lines``. Thanks to Sam Vaughan
|
|
394
|
+
(Univ. of Oxford) for the feedback.
|
|
395
|
+
- Included ``width`` keyword in ``ppxf.ppxf_util.determine_goodpixels``.
|
|
396
|
+
Thanks to George Privon (Univ. of Florida) for the suggestion.
|
|
397
|
+
- Expanded ``.gas_flux`` documentation.
|
|
398
|
+
|
|
399
|
+
V6.7.11: MC, Oxford, 5 June 2018
|
|
400
|
+
++++++++++++++++++++++++++++++++
|
|
401
|
+
|
|
402
|
+
- Formatted ``ppxf.py`` docstring in reStructuredText.
|
|
403
|
+
- Removed CHANGELOG from the code and placed it in a separate file.
|
|
404
|
+
- Modified ``setup.py`` to show help and CHANGELOG on PyPi page.
|
|
405
|
+
- Included ``ppxf.__version__``.
|
|
406
|
+
|
|
407
|
+
V6.7.8: MC, Oxford, 21 May 2018
|
|
408
|
+
+++++++++++++++++++++++++++++++
|
|
409
|
+
|
|
410
|
+
- Moved package to the Python Package Index (PyPi).
|
|
411
|
+
- Dropped legacy Python 2.7 support.
|
|
412
|
+
|
|
413
|
+
V6.7.6: MC, Oxford, 16 April 2018
|
|
414
|
+
+++++++++++++++++++++++++++++++++
|
|
415
|
+
|
|
416
|
+
- Changed imports for the conversion of pPXF to a package.
|
|
417
|
+
Thanks to Joe Burchett (Santa Cruz) for the suggestion.
|
|
418
|
+
|
|
419
|
+
V6.7.5: MC, Oxford, 10 April 2018
|
|
420
|
+
+++++++++++++++++++++++++++++++++
|
|
421
|
+
|
|
422
|
+
- Fixed syntax error under Python 2.7.
|
|
423
|
+
|
|
424
|
+
V6.7.4: MC, Oxford, 16 February 2018
|
|
425
|
+
++++++++++++++++++++++++++++++++++++
|
|
426
|
+
|
|
427
|
+
- Fixed bug in ``reddening_cal00()``. It only affected NIR lam > 1000 nm.
|
|
428
|
+
|
|
429
|
+
V6.7.3: MC, Oxford, 8 February 2018
|
|
430
|
+
+++++++++++++++++++++++++++++++++++
|
|
431
|
+
|
|
432
|
+
- Plot wavelength in nm instead of Angstrom, following IAU rules.
|
|
433
|
+
- Ensures each element of ``start`` is not longer than its ``moments``.
|
|
434
|
+
- Removed underscore from internal function names.
|
|
435
|
+
- Included ``ftol`` keyword.
|
|
436
|
+
|
|
437
|
+
V6.7.2: MC, Oxford, 30 January 2018
|
|
438
|
+
+++++++++++++++++++++++++++++++++++
|
|
439
|
+
|
|
440
|
+
- Included dunder names as suggested by Peter Weilbacher (Potsdam).
|
|
441
|
+
- Fixed wrong ``.gas_reddening`` when ``mdegree > 0``.
|
|
442
|
+
- Improved formatting of the documentation.
|
|
443
|
+
|
|
444
|
+
V6.7.1: MC, Oxford, 29 November 2017
|
|
445
|
+
++++++++++++++++++++++++++++++++++++
|
|
446
|
+
|
|
447
|
+
- Removed import of ``misc.factorial``, deprecated in Scipy 1.0.
|
|
448
|
+
|
|
449
|
+
V6.7.0: MC, Oxford, 6 November 2017
|
|
450
|
+
+++++++++++++++++++++++++++++++++++
|
|
451
|
+
|
|
452
|
+
- Allow users to input identically zero gas templates while still
|
|
453
|
+
producing a stable NNLS solution. In this case, warn the user and set
|
|
454
|
+
the .gas_zero_template attribute. This situation can indicate an input
|
|
455
|
+
bug or a gas line that entirely falls within a masked region.
|
|
456
|
+
- Corrected ``gas_flux_error`` normalization, when input not normalized.
|
|
457
|
+
- Return ``.gas_bestfit``, ``.gas_mpoly``, ``.mpoly`` and ``.apoly`` attributes.
|
|
458
|
+
- Do not multiply gas emission lines by polynomials, instead allow for
|
|
459
|
+
``gas_reddening`` (useful with tied Balmer emission lines).
|
|
460
|
+
- Use ``axvspan`` to visualize masked regions in the plot.
|
|
461
|
+
- Fixed program stop with ``linear`` keyword.
|
|
462
|
+
- Introduced ``reddening_func`` keyword.
|
|
463
|
+
|
|
464
|
+
V6.6.4: MC, Oxford, 5 October 2017
|
|
465
|
+
++++++++++++++++++++++++++++++++++
|
|
466
|
+
|
|
467
|
+
- Check for NaN in ``galaxy`` and check all ``bounds`` have two elements.
|
|
468
|
+
- Allow ``start`` to be either a list or an array or vectors.
|
|
469
|
+
|
|
470
|
+
V6.6.3: MC, Oxford, 25 September 2017
|
|
471
|
+
+++++++++++++++++++++++++++++++++++++
|
|
472
|
+
|
|
473
|
+
- Reduced bounds on multiplicative polynomials and clipped to positive
|
|
474
|
+
values. Thanks to Xihan Ji (Tsinghua University) for providing an
|
|
475
|
+
example of slightly negative gas emission lines, when the spectrum
|
|
476
|
+
contains essentially just noise.
|
|
477
|
+
- Improved visualization of masked pixels.
|
|
478
|
+
|
|
479
|
+
V6.6.2: MC, Oxford, 15 September 2017
|
|
480
|
+
+++++++++++++++++++++++++++++++++++++
|
|
481
|
+
|
|
482
|
+
- Fixed program stop with a 2-dim template array and regularization.
|
|
483
|
+
Thanks to Adriano Poci (Macquarie University) for the clear report and
|
|
484
|
+
the fix.
|
|
485
|
+
|
|
486
|
+
V6.6.1: MC, Oxford, 4 August 2017
|
|
487
|
+
+++++++++++++++++++++++++++++++++
|
|
488
|
+
|
|
489
|
+
- Included note on ``.gas_flux`` output units. Thanks to Xihan Ji
|
|
490
|
+
(Tsinghua University) for the feedback.
|
|
491
|
+
|
|
492
|
+
V6.6.0: MC, Oxford, 27 June 2017
|
|
493
|
+
++++++++++++++++++++++++++++++++
|
|
494
|
+
|
|
495
|
+
- Print and return gas fluxes and errors, if requested, with the new
|
|
496
|
+
``gas_component`` and ``gas_names`` keywords.
|
|
497
|
+
|
|
498
|
+
V6.5.0: MC, Oxford, 23 June 2017
|
|
499
|
+
++++++++++++++++++++++++++++++++
|
|
500
|
+
|
|
501
|
+
- Replaced ``MPFIT`` with ``capfit`` for a Levenberg-Marquardt method with
|
|
502
|
+
fixed or tied variables, which rigorously accounts for box constraints.
|
|
503
|
+
|
|
504
|
+
V6.4.2: MC, Oxford, 2 June 2017
|
|
505
|
+
+++++++++++++++++++++++++++++++
|
|
506
|
+
|
|
507
|
+
- Fixed removal of bounds in solution, introduced in V6.4.1.
|
|
508
|
+
Thanks to Kyle Westfall (Univ. Santa Cruz) for reporting this.
|
|
509
|
+
- Included ``method`` keyword to use Scipy's ``least_squares()``
|
|
510
|
+
as an alternative to MPFIT.
|
|
511
|
+
- Force float division in pixel conversion of ``start`` and ``bounds``.
|
|
512
|
+
|
|
513
|
+
V6.4.1: MC, Oxford, 25 May 2017
|
|
514
|
+
+++++++++++++++++++++++++++++++
|
|
515
|
+
|
|
516
|
+
- ``linear_fit()`` does not return unused status anymore, for
|
|
517
|
+
consistency with the corresponding change to ``cap_mpfit``.
|
|
518
|
+
|
|
519
|
+
V6.4.0: MC, Oxford, 12 May 2017
|
|
520
|
+
+++++++++++++++++++++++++++++++
|
|
521
|
+
|
|
522
|
+
- Introduced ``tied`` keyword to tie parameters during fitting.
|
|
523
|
+
- Included discussion of formal errors of ``.weights``.
|
|
524
|
+
|
|
525
|
+
V6.3.2: MC, Oxford, 4 May 2017
|
|
526
|
+
++++++++++++++++++++++++++++++
|
|
527
|
+
|
|
528
|
+
- Fixed possible program stop introduced in V6.0.7 and consequently
|
|
529
|
+
removed unnecessary function ``_templates_rfft()``. Many thanks to
|
|
530
|
+
Jesus Falcon-Barroso for a very clear and useful bug report!
|
|
531
|
+
|
|
532
|
+
V6.3.1: MC, Oxford, 13 April 2017
|
|
533
|
+
+++++++++++++++++++++++++++++++++
|
|
534
|
+
|
|
535
|
+
- Fixed program stop when fitting two galaxy spectra with
|
|
536
|
+
reflection-symmetric LOSVD.
|
|
537
|
+
|
|
538
|
+
V6.3.0: MC, Oxford, 30 March 2017
|
|
539
|
+
+++++++++++++++++++++++++++++++++
|
|
540
|
+
|
|
541
|
+
- Included ``reg_ord`` keyword to allow for both first and second-order
|
|
542
|
+
regularization.
|
|
543
|
+
|
|
544
|
+
V6.2.0: MC, Oxford, 27 March 2017
|
|
545
|
+
+++++++++++++++++++++++++++++++++
|
|
546
|
+
|
|
547
|
+
- Improved curvature criterion for regularization when ``dim > 1``.
|
|
548
|
+
|
|
549
|
+
V6.1.0: MC, Oxford, 15 March 2017
|
|
550
|
+
+++++++++++++++++++++++++++++++++
|
|
551
|
+
|
|
552
|
+
- Introduced ``trig`` keyword to use a trigonometric series as
|
|
553
|
+
alternative to Legendre polynomials.
|
|
554
|
+
|
|
555
|
+
V6.0.7: MC, Oxford, 13 March 2017
|
|
556
|
+
+++++++++++++++++++++++++++++++++
|
|
557
|
+
|
|
558
|
+
- Use ``next_fast_len()`` for optimal ``rfft()`` zero padding.
|
|
559
|
+
- Included keyword ``gas_component`` in the ``.plot()`` method, to
|
|
560
|
+
distinguish gas emission lines in best-fitting plots.
|
|
561
|
+
- Improved plot of residuals for noisy spectra.
|
|
562
|
+
- Simplified regularization implementation.
|
|
563
|
+
|
|
564
|
+
V6.0.6: MC, Oxford, 23 February 2017
|
|
565
|
+
++++++++++++++++++++++++++++++++++++
|
|
566
|
+
|
|
567
|
+
- Added ``linear_fit()`` and ``nonlinear_fit()`` functions to better
|
|
568
|
+
clarify the code structure. Included ``templates_rfft`` keyword.
|
|
569
|
+
- Updated documentation. Some code simplifications.
|
|
570
|
+
|
|
571
|
+
V6.0.5: MC, Oxford, 21 February 2017
|
|
572
|
+
++++++++++++++++++++++++++++++++++++
|
|
573
|
+
|
|
574
|
+
- Consistently use new format_output() function both with/without
|
|
575
|
+
the ``linear`` keyword. Added ``.status`` attribute. Changes suggested by
|
|
576
|
+
Kyle Westfall (Univ. Santa Cruz).
|
|
577
|
+
|
|
578
|
+
V6.0.4: MC, Oxford, 30 January 2017
|
|
579
|
+
+++++++++++++++++++++++++++++++++++
|
|
580
|
+
|
|
581
|
+
- Re-introduced ``linear`` keyword to only perform a linear fit and
|
|
582
|
+
skip the non-linear optimization.
|
|
583
|
+
|
|
584
|
+
V6.0.3: MC, Oxford, 1 December 2016
|
|
585
|
+
+++++++++++++++++++++++++++++++++++
|
|
586
|
+
|
|
587
|
+
- Return usual ``Chi**2/DOF`` instead of Biweight estimate.
|
|
588
|
+
|
|
589
|
+
V6.0.2: MC, Oxford, 15 August 2016
|
|
590
|
+
++++++++++++++++++++++++++++++++++
|
|
591
|
+
|
|
592
|
+
- Improved formatting of printed output.
|
|
593
|
+
|
|
594
|
+
V6.0.1: MC, Oxford, 10 August 2016
|
|
595
|
+
++++++++++++++++++++++++++++++++++
|
|
596
|
+
|
|
597
|
+
- Allow ``moments`` to be an arbitrary integer.
|
|
598
|
+
- Allow for scalar ``moments`` with multiple kinematic components.
|
|
599
|
+
|
|
600
|
+
V6.0.0: MC, Oxford, 28 July 2016
|
|
601
|
+
++++++++++++++++++++++++++++++++
|
|
602
|
+
|
|
603
|
+
- Compute the Fourier Transform of the LOSVD analytically:
|
|
604
|
+
- Major improvement in velocity accuracy when ``sigma < velscale``.
|
|
605
|
+
- Removed ``oversample`` keyword, which is now unnecessary.
|
|
606
|
+
- Removed limit on velocity shift of templates.
|
|
607
|
+
- Simplified FFT zero padding. Updated documentation.
|
|
608
|
+
|
|
609
|
+
V5.3.3: MC, Oxford 24 May 2016
|
|
610
|
+
++++++++++++++++++++++++++++++
|
|
611
|
+
|
|
612
|
+
- Fixed Python 2 compatibility. Thanks to Masato Onodera (NAOJ).
|
|
613
|
+
|
|
614
|
+
V5.3.2: MC, Oxford, 22 May 2016
|
|
615
|
+
+++++++++++++++++++++++++++++++
|
|
616
|
+
|
|
617
|
+
- Backward compatibility change: allow ``start`` to be smaller than
|
|
618
|
+
``moments``. After feedback by Masato Onodera (NAOJ).
|
|
619
|
+
- Updated documentation of ``bounds`` and ``fixed``.
|
|
620
|
+
|
|
621
|
+
V5.3.1: MC, Oxford, 18 May 2016
|
|
622
|
+
+++++++++++++++++++++++++++++++
|
|
623
|
+
|
|
624
|
+
- Use wavelength in the plot when available. Make ``plot()`` a class function.
|
|
625
|
+
Changes suggested and provided by Johann Cohen-Tanugi (LUPM).
|
|
626
|
+
|
|
627
|
+
V5.3.0: MC, Oxford, 9 May 2016
|
|
628
|
+
++++++++++++++++++++++++++++++
|
|
629
|
+
|
|
630
|
+
- Included ``velscale_ratio`` keyword to pass a set of templates with
|
|
631
|
+
higher resolution than the galaxy spectrum.
|
|
632
|
+
- Changed ``oversample`` keyword to require integers, not Booleans.
|
|
633
|
+
|
|
634
|
+
V5.2.0: MC, Baltimore, 26 April 2016
|
|
635
|
+
++++++++++++++++++++++++++++++++++++
|
|
636
|
+
|
|
637
|
+
- Included ``bounds``, ``fixed`` and ``fraction`` keywords.
|
|
638
|
+
|
|
639
|
+
V5.1.18: MC, Oxford, 20 April 2016
|
|
640
|
+
++++++++++++++++++++++++++++++++++
|
|
641
|
+
|
|
642
|
+
- Fixed deprecation warning in Numpy 1.11. Changed order from 1 to 3
|
|
643
|
+
during oversampling. Warn if sigma is under-sampled.
|
|
644
|
+
|
|
645
|
+
V5.1.17: MC, Oxford, 21 January 2016
|
|
646
|
+
++++++++++++++++++++++++++++++++++++
|
|
647
|
+
|
|
648
|
+
- Expanded explanation of the relationship between output velocity and redshift.
|
|
649
|
+
|
|
650
|
+
V5.1.16: MC, Oxford, 9 November 2015
|
|
651
|
+
++++++++++++++++++++++++++++++++++++
|
|
652
|
+
|
|
653
|
+
- Fixed potentially misleading typo in documentation of ``moments``.
|
|
654
|
+
|
|
655
|
+
V5.1.15: MC, Oxford, 22 October 2015
|
|
656
|
+
++++++++++++++++++++++++++++++++++++
|
|
657
|
+
|
|
658
|
+
- Updated documentation. Thanks to Peter Weilbacher (Potsdam) for
|
|
659
|
+
corrections.
|
|
660
|
+
|
|
661
|
+
V5.1.14: MC, Oxford, 19 October 2015
|
|
662
|
+
++++++++++++++++++++++++++++++++++++
|
|
663
|
+
|
|
664
|
+
- Fixed deprecation warning in Numpy 1.10.
|
|
665
|
+
|
|
666
|
+
V5.1.13: MC, Oxford, 24 April 2015
|
|
667
|
+
++++++++++++++++++++++++++++++++++
|
|
668
|
+
|
|
669
|
+
- Updated documentation.
|
|
670
|
+
|
|
671
|
+
V5.1.12: MC, Oxford, 25 February 2015
|
|
672
|
+
+++++++++++++++++++++++++++++++++++++
|
|
673
|
+
|
|
674
|
+
- Use ``color=`` instead of ``c=`` to avoid a new Matplotlib 1.4 bug.
|
|
675
|
+
|
|
676
|
+
V5.1.11: MC, Sydney, 5 February 2015
|
|
677
|
+
++++++++++++++++++++++++++++++++++++
|
|
678
|
+
|
|
679
|
+
- Reverted change introduced in V5.1.2. Thanks to Nora Lu"tzgendorf
|
|
680
|
+
for reporting problems with ``oversample``.
|
|
681
|
+
|
|
682
|
+
V5.1.10: MC, Oxford, 14 October 2014
|
|
683
|
+
++++++++++++++++++++++++++++++++++++
|
|
684
|
+
|
|
685
|
+
- Fixed bug in saving output introduced in the previous version.
|
|
686
|
+
|
|
687
|
+
V5.1.9: MC, Las Vegas Airport, 13 September 2014
|
|
688
|
+
++++++++++++++++++++++++++++++++++++++++++++++++
|
|
689
|
+
|
|
690
|
+
- Pre-compute FFT and oversampling of templates. This speeds up the
|
|
691
|
+
calculation for very long or highly oversampled spectra. Thanks to
|
|
692
|
+
Remco van den Bosch for reporting situations where this optimization
|
|
693
|
+
may be useful.
|
|
694
|
+
|
|
695
|
+
V5.1.8: MC, Utah, 10 September 2014
|
|
696
|
+
+++++++++++++++++++++++++++++++++++
|
|
697
|
+
|
|
698
|
+
- Fixed program stop with ``reddening`` keyword. Thanks to Masatao
|
|
699
|
+
Onodera for reporting the problem.
|
|
700
|
+
|
|
701
|
+
V5.1.7: MC, Oxford, 3 September 2014
|
|
702
|
+
++++++++++++++++++++++++++++++++++++
|
|
703
|
+
|
|
704
|
+
- Relaxed requirement on input maximum velocity shift.
|
|
705
|
+
- Minor reorganization of the code structure.
|
|
706
|
+
|
|
707
|
+
V5.1.6: MC, Oxford, 6 August 2014
|
|
708
|
+
+++++++++++++++++++++++++++++++++
|
|
709
|
+
|
|
710
|
+
- Catch an additional input error. Updated documentation for Python.
|
|
711
|
+
Included templates ``matrix`` in output. Modified plotting colours.
|
|
712
|
+
|
|
713
|
+
V5.1.5: MC, Oxford, 21 June 2014
|
|
714
|
+
++++++++++++++++++++++++++++++++
|
|
715
|
+
|
|
716
|
+
- Fixed deprecation warning.
|
|
717
|
+
|
|
718
|
+
V5.1.4: MC, Oxford, 25 May 2014
|
|
719
|
+
+++++++++++++++++++++++++++++++
|
|
720
|
+
|
|
721
|
+
- Support both Python 2.7 and Python 3.
|
|
722
|
+
|
|
723
|
+
V5.1.3: MC, Oxford, 7 May 2014
|
|
724
|
+
++++++++++++++++++++++++++++++
|
|
725
|
+
|
|
726
|
+
- Allow for an input covariance matrix instead of an error spectrum.
|
|
727
|
+
|
|
728
|
+
V5.1.2: MC, Oxford, 6 May 2014
|
|
729
|
+
++++++++++++++++++++++++++++++
|
|
730
|
+
|
|
731
|
+
- Replaced REBIN with INTERPOLATE + /OVERSAMPLE keyword. This is
|
|
732
|
+
to account for the fact that the Line Spread Function of the observed
|
|
733
|
+
galaxy spectrum already includes pixel convolution. Thanks to Mike
|
|
734
|
+
Blanton for the suggestion.
|
|
735
|
+
|
|
736
|
+
V5.1.1: MC, Dallas Airport, 9 February 2014
|
|
737
|
+
+++++++++++++++++++++++++++++++++++++++++++
|
|
738
|
+
|
|
739
|
+
- Fixed typo in the documentation of ``nnls_flags``.
|
|
740
|
+
|
|
741
|
+
V5.1.0: MC, Oxford, 9 January 2014
|
|
742
|
+
++++++++++++++++++++++++++++++++++
|
|
743
|
+
|
|
744
|
+
- Allow for a different LOSVD for each template. Templates can be stellar or
|
|
745
|
+
can be gas emission lines. A pPXF version adapted for multiple kinematic
|
|
746
|
+
components existed for years. It was updated in JAN/2012 for the paper by
|
|
747
|
+
Johnston et al. (2013, MNRAS). This version merges those changes with the
|
|
748
|
+
public pPXF version, making sure that all previous pPXF options are still
|
|
749
|
+
supported.
|
|
750
|
+
|
|
751
|
+
V5.0.1: MC, Oxford, 12 December 2013
|
|
752
|
+
++++++++++++++++++++++++++++++++++++
|
|
753
|
+
|
|
754
|
+
- Minor cleaning and corrections.
|
|
755
|
+
|
|
756
|
+
V5.0.0: MC, Oxford, 6 December 2013
|
|
757
|
+
+++++++++++++++++++++++++++++++++++
|
|
758
|
+
|
|
759
|
+
- Translated from IDL into Python and tested against the original version.
|
|
760
|
+
|
|
761
|
+
V4.6.6: MC, Paranal, 8 November 2013
|
|
762
|
+
++++++++++++++++++++++++++++++++++++
|
|
763
|
+
|
|
764
|
+
- Uses CAP_RANGE to avoid potential naming conflicts.
|
|
765
|
+
|
|
766
|
+
V4.6.5: MC, Oxford, 15 November 2012
|
|
767
|
+
++++++++++++++++++++++++++++++++++++
|
|
768
|
+
|
|
769
|
+
- Expanded documentation of REGUL keyword.
|
|
770
|
+
|
|
771
|
+
V4.6.4: MC, Oxford, 9 December 2011
|
|
772
|
+
+++++++++++++++++++++++++++++++++++
|
|
773
|
+
|
|
774
|
+
- Increased oversampling factor to 30x, when the /OVERSAMPLE keyword
|
|
775
|
+
is used. Updated corresponding documentation. Thanks to Nora
|
|
776
|
+
Lu"tzgendorf for test cases illustrating errors in the recovered
|
|
777
|
+
velocity when the sigma is severely undersampled.
|
|
778
|
+
|
|
779
|
+
V4.6.3: MC, Oxford 25 October 2011
|
|
780
|
+
++++++++++++++++++++++++++++++++++
|
|
781
|
+
|
|
782
|
+
- Do not change TEMPLATES array in output when REGUL is nonzero.
|
|
783
|
+
From the feedback of Richard McDermid.
|
|
784
|
+
|
|
785
|
+
V4.6.2: MC, Oxford, 17 October 2011
|
|
786
|
+
+++++++++++++++++++++++++++++++++++
|
|
787
|
+
|
|
788
|
+
- Included option for 3D regularization and updated documentation of
|
|
789
|
+
REGUL keyword.
|
|
790
|
+
|
|
791
|
+
V4.6.1: MC, Oxford, 29 July 2011
|
|
792
|
+
++++++++++++++++++++++++++++++++
|
|
793
|
+
|
|
794
|
+
- Use Coyote Graphics (http://www.idlcoyote.com/) by David W. Fanning.
|
|
795
|
+
The required routines are now included in NASA IDL Astronomy Library.
|
|
796
|
+
|
|
797
|
+
V4.6.0: MC, Oxford, 12 April 2011
|
|
798
|
+
+++++++++++++++++++++++++++++++++
|
|
799
|
+
|
|
800
|
+
- Important fix to /CLEAN procedure: bad pixels are now properly
|
|
801
|
+
updated during the 3sigma iterations.
|
|
802
|
+
|
|
803
|
+
V4.5.0: MC, Oxford, 13 April 2010
|
|
804
|
+
+++++++++++++++++++++++++++++++++
|
|
805
|
+
|
|
806
|
+
- Dramatic speed up in the convolution of long spectra.
|
|
807
|
+
|
|
808
|
+
V4.4.0: MC, Oxford, 18 September 2009
|
|
809
|
+
+++++++++++++++++++++++++++++++++++++
|
|
810
|
+
|
|
811
|
+
- Introduced Calzetti et al. (2000) ppxf_REDDENING_CURVE function to
|
|
812
|
+
estimate the reddening from the fit.
|
|
813
|
+
|
|
814
|
+
V4.3.0: MC, Oxford, 4 Mach 2009
|
|
815
|
+
+++++++++++++++++++++++++++++++
|
|
816
|
+
|
|
817
|
+
- Introduced REGUL keyword to perform linear regularization of WEIGHTS
|
|
818
|
+
in one or two dimensions.
|
|
819
|
+
|
|
820
|
+
V4.2.3: MC, Oxford, 27 November 2008
|
|
821
|
+
++++++++++++++++++++++++++++++++++++
|
|
822
|
+
|
|
823
|
+
- Corrected error message for too big velocity shift.
|
|
824
|
+
|
|
825
|
+
V4.2.2: MC, Windhoek, 3 July 2008
|
|
826
|
+
+++++++++++++++++++++++++++++++++
|
|
827
|
+
|
|
828
|
+
- Added keyword POLYWEIGHTS.
|
|
829
|
+
|
|
830
|
+
V4.2.1: MC, Oxford, 17 May 2008
|
|
831
|
+
+++++++++++++++++++++++++++++++
|
|
832
|
+
|
|
833
|
+
- Use LA_LEAST_SQUARES (IDL 5.6) instead of SVDC when fitting a single
|
|
834
|
+
template. Please let me know if you need to use pPXF with an older IDL
|
|
835
|
+
version.
|
|
836
|
+
|
|
837
|
+
V4.2.0: MC, Oxford, 15 March 2008
|
|
838
|
+
+++++++++++++++++++++++++++++++++
|
|
839
|
+
|
|
840
|
+
- Introduced optional fitting of SKY spectrum. Many thanks to
|
|
841
|
+
Anne-Marie Weijmans for testing.
|
|
842
|
+
|
|
843
|
+
V4.1.7: MC, Oxford, 6 October 2007
|
|
844
|
+
++++++++++++++++++++++++++++++++++
|
|
845
|
+
|
|
846
|
+
- Updated documentation with an important note on penalty determination.
|
|
847
|
+
|
|
848
|
+
V4.1.6: MC, Leiden, 20 January 2006
|
|
849
|
+
+++++++++++++++++++++++++++++++++++
|
|
850
|
+
|
|
851
|
+
- Print the number of nonzero templates. Do not print outliers in /QUIET mode.
|
|
852
|
+
|
|
853
|
+
V4.1.5: MC, Leiden, 10 February 2005
|
|
854
|
+
++++++++++++++++++++++++++++++++++++
|
|
855
|
+
|
|
856
|
+
- Verify that GOODPIXELS is monotonic and does not contain duplicated
|
|
857
|
+
values. After feedback from Richard McDermid.
|
|
858
|
+
|
|
859
|
+
V4.1.4: MC, Leiden, 12 January 2005
|
|
860
|
+
+++++++++++++++++++++++++++++++++++
|
|
861
|
+
|
|
862
|
+
- Make sure input NOISE is a positive vector.
|
|
863
|
+
|
|
864
|
+
V4.1.3: MC, Vicenza, 30 December 2004
|
|
865
|
+
+++++++++++++++++++++++++++++++++++++
|
|
866
|
+
|
|
867
|
+
- Updated documentation.
|
|
868
|
+
|
|
869
|
+
V4.1.2: MC, Leiden, 11 November 2004
|
|
870
|
+
++++++++++++++++++++++++++++++++++++
|
|
871
|
+
|
|
872
|
+
- Handle special case where a single template without additive
|
|
873
|
+
polynomials is fitted to the galaxy.
|
|
874
|
+
|
|
875
|
+
V4.1.1: MC, Leiden, 21 September 2004
|
|
876
|
+
+++++++++++++++++++++++++++++++++++++
|
|
877
|
+
|
|
878
|
+
- Increased maximum number of iterations ITMAX in BVLS. Thanks to
|
|
879
|
+
Jesus Falcon-Barroso for reporting problems.
|
|
880
|
+
- Introduced error message when velocity shift is too big.
|
|
881
|
+
- Corrected output when MOMENTS=0.
|
|
882
|
+
|
|
883
|
+
V4.1.0: MC, Leiden, 3 September 2004
|
|
884
|
+
++++++++++++++++++++++++++++++++++++
|
|
885
|
+
|
|
886
|
+
- Corrected implementation of two-sided fitting of the LOSVD. Thanks
|
|
887
|
+
to Stefan van Dongen for reporting problems.
|
|
888
|
+
|
|
889
|
+
V4.0.0: MC, Vicenza, 16 August 2004
|
|
890
|
+
+++++++++++++++++++++++++++++++++++
|
|
891
|
+
|
|
892
|
+
- Introduced optional two-sided fitting assuming a reflection
|
|
893
|
+
symmetric LOSVD for two input spectra.
|
|
894
|
+
|
|
895
|
+
V3.7.3: MC, Leiden, 7 August 2004
|
|
896
|
+
+++++++++++++++++++++++++++++++++
|
|
897
|
+
|
|
898
|
+
- Corrected bug: keyword ERROR was returned in pixels instead of km/s.
|
|
899
|
+
- Decreased lower limit on fitted dispersion. Thanks to Igor V. Chilingarian.
|
|
900
|
+
|
|
901
|
+
V3.7.2: MC, Leiden, 28 April 2004
|
|
902
|
+
+++++++++++++++++++++++++++++++++
|
|
903
|
+
|
|
904
|
+
- Corrected program stop after fit when MOMENTS=2. The bug was introduced in V3.7.0.
|
|
905
|
+
|
|
906
|
+
V3.7.1: MC, Leiden, 31 March 2004
|
|
907
|
+
+++++++++++++++++++++++++++++++++
|
|
908
|
+
|
|
909
|
+
- Updated documentation.
|
|
910
|
+
|
|
911
|
+
V3.7.0: MC, Leiden, 23 March 2004
|
|
912
|
+
+++++++++++++++++++++++++++++++++
|
|
913
|
+
|
|
914
|
+
- Revised implementation of MDEGREE option. Nonlinear implementation:
|
|
915
|
+
straightforward, robust, but slower.
|
|
916
|
+
|
|
917
|
+
V3.6.0: MC, Leiden, 19 March 2004
|
|
918
|
+
+++++++++++++++++++++++++++++++++
|
|
919
|
+
|
|
920
|
+
- Added MDEGREE option for multiplicative polynomials. Linear implementation:
|
|
921
|
+
fast, works well in most cases, but can fail in certain cases.
|
|
922
|
+
|
|
923
|
+
V3.5.0: MC, Leiden, 11 December 2003
|
|
924
|
+
++++++++++++++++++++++++++++++++++++
|
|
925
|
+
|
|
926
|
+
- Included /OVERSAMPLE option.
|
|
927
|
+
|
|
928
|
+
V3.4.7: MC, Leiden, 8 December 2003
|
|
929
|
+
+++++++++++++++++++++++++++++++++++
|
|
930
|
+
|
|
931
|
+
- First released version.
|
|
932
|
+
|
|
933
|
+
V1.0.0: Leiden, 10 October 2001
|
|
934
|
+
+++++++++++++++++++++++++++++++
|
|
935
|
+
|
|
936
|
+
- Created by Michele Cappellari.
|
|
937
|
+
|