Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on defining the center point for the model #28

Open
ktrehaeven opened this issue Oct 28, 2024 · 2 comments
Open

Question on defining the center point for the model #28

ktrehaeven opened this issue Oct 28, 2024 · 2 comments

Comments

@ktrehaeven
Copy link

Hi

I have a quick question...is it possible to make the surface brightness model have two different centers for the different components? I'm specifically talking about a double beta model...can each beta model have a different center and how would you go about doing that if possible?

Kind regards
Keegan Trehaeven

@domeckert
Copy link
Owner

Hi @ktrehaeven . pyproffit is inherently 1D, so it is not possible (at least for the moment) to make a joint fit of two models with different centers. To this end it would be necessary to make a 2D fit; if that is something you are interested in, I would be glad to work with you to implement such a feature.

With the current setup, if what you have in mind is to fit two clumps with different centers, what I would do is to mask the second clump, fit the profile of the first clump (possibly in the opposite direction) and create a 2D model for the first clump using the SaveModelImage method. Then I would add the model to the background model and consider the first clump as background, to then fit the second clump and extract another model image for it. The sum of the two model images should be roughly your 2D model.

@ktrehaeven
Copy link
Author

ktrehaeven commented Oct 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants