editeodoro / Bbarolo

Bbarolo is a 3D fitting tool to derive the kinematics of galaxies from emission-line observations.
http://editeodoro.github.io/Bbarolo/
GNU General Public License v2.0
30 stars 8 forks source link

Input fully definned function for Inc or PA #29

Closed 0ort9 closed 1 year ago

0ort9 commented 1 year ago

Hey, i want to use a function that was found as a regularization for the PA while i held the inclination at a constant value in another run where i define the PA as this function and now fit only the inc to give more room in the parameter space. Is this a possibility in Barolo? Basically i just want to reuse a found regularization for further runs, not just in the second run

editeodoro commented 1 year ago

Hello. There is no direct way to do that in BBarolo. However there is a quick workaround: in the further run, you can give as input the regularized values of PA (or any other parameters) through the output ringfile and keep it fixed for the next run.

So basically, you have a first run where you do the 2 stage fitting for PA and INC and whathever else. Then, in the parameter file for the next run, you set:

PA        file(outputdir/rings_final2.txt,6)
FREE      INC (and whatever else)

I also note that, if you use a polynomial regularization, the best-fit polynomial coefficients are printed out in the shell between the first and second stage of the fitting.

Let me know if this does not help! Enrico

0ort9 commented 1 year ago

Thank you, this will help a lot! I did not know about the option to use the file for the Parameters. THis is what I needed.