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

Discussion on the flux initialization in multiband data #372

Open
mkuemmel opened this issue Jun 30, 2021 · 2 comments
Open

Discussion on the flux initialization in multiband data #372

mkuemmel opened this issue Jun 30, 2021 · 2 comments

Comments

@mkuemmel
Copy link
Collaborator

It turns out that the flux initialization has quite an influence on the photometric result when running SE++ on mulit-band data. As an example I am using a simulated dataset for Euclid which consists of VIS and H band data. The zeropoints are quite different:
MAG_ZEROPOINT = {'VIS':24.48941, 'H': 29.8512}

When initializing the flux with:

for band, group in mesgroup:
flux_total[i] = get_flux_parameter()

The comparison with the true universe in the H band is:
flux_init_simple

get_flux_parameter() allows a range of 10e-3, 10+3. Due to the high zeropoint offset the upper range is reached, which leads to the totally off measurements in the upper right corner and in the range [20-22] mag especially for red sources.

Enhancing the range with:

for band, group in mesgroup:
flux_total[i] = FreeParameter(1.0, Range((1.0e-07,1.0e+05), RangeType.EXPONENTIAL))

leads to:
flux_init_smartI

Taking into account the zeropoint offset with:

BAND_SCALE = {'VIS':1.0, 'H': 140}
for band, group in mesgroup:
flux_total[i] = get_flux_parameter(scale=BAND_SCALE[band])

results in:
flux_init_smartII

Enhancing the allowed range around the scaled flux with:

BAND_SCALE = {'VIS':1.0, 'H': 140}
for band, group in mesgroup:
flux_total[i] = FreeParameter(lambda o: o.get_iso_flux() * BAND_SCALE[band], Range(lambda v,o: (v * 1E-9, v * 1E9), RangeType.EXPONENTIAL))

results in:
flux_init_smartIII

@marcschefer
Copy link
Member

Good tests, thanks.

I'm not really that surprised, I remember from early tests that results were very sensitive to initial values and how the parameters were set up. I didn't expect the last one to be so bad when using 1e-9 to 1e9 range, though.

@mkuemmel
Copy link
Collaborator Author

True, also FreeParameter(1.0, Range((1.0e-07,1.0e+05), RangeType.EXPONENTIAL)) show large offsets at bright mags that I do not really understand.

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

No branches or pull requests

4 participants