-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to add photometry from UKIRTS/WFCAM #15
Comments
Hi, Let me know if you need more info. |
Thank you for the reply. However, when I ran the command, it returned: “Passband WFCAM.J missing from table”. |
Hi,
Add the grid you want to the responses list: Then run that script and it will make a new integrated grid that you can use. This will take quite a lot of time depending on the computer you are running it on. |
Many thanks! |
Hi,
I need to see some code to comment on this. Can you send a minimum viable
example please?
…On Tue, 14 Jan 2025 at 09:50, pjchen3 ***@***.***> wrote:
Hi Joris,
I added commands to the code (lines 196 and 206 of “plotting.py”) to save
the synthetic model and flux values. I then tried to recalculate the flux
values from the synthetic model using the “synthetic_flux()” function in
“filters.py.” However, I noticed that the recalculated flux values are
consistently slightly smaller than those returned by the algorithm, and I
haven’t been able to identify the cause. Could you please help me
understand what might be causing this discrepancy?
In the attached image, the red crosses represent the synthetic fluxes
returned by the algorithm, while the blue crosses represent the flux values
I recalculated. Observed fluxes from SDSS are marked with green circles.
Screenshot.2025-01-14.at.16.46.28.png (view on web)
<https://github.com/user-attachments/assets/88972eea-5cb7-4014-ad96-6adbc932c96c>
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASU63FBK7VT5TU6VMKQYIT2KTFUBAVCNFSM6AAAAABVBIJVUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBZGM2DENZRGY>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
m.v.g.
Joris Vos
|
Thank you for the reply. We might consider using the case of HIP_4618 (with constraints) from https://speedyfit.readthedocs.io/en/stable/userguide/quickstart.html.
The synthetic flux (file “synthetic_flux.txt”) returned by the algorithm in the 2MASS J band is approximately 1.398e-12, while I obtained a value of 1.474e-12 using the code above. |
Hi,
I can't immediately see the issue. I will try to look at this in more
detail asap. But I am a bit busy right now with my full time job.
…On Tue, 14 Jan 2025 at 17:45, pjchen3 ***@***.***> wrote:
Thank you for the reply. We might consider using the case of HIP_4618
(with constraints) from
https://speedyfit.readthedocs.io/en/stable/userguide/quickstart.html
<http://url>.
Below is the code I used to calculate the synthetic flux in the 2MASS J
band (utilizing the transmission curve in the package) from the synthetic
spectrum (file “binary_model.txt”) returned by the algorithm:
wave = wave_model # synthetic spectrum from the file "binary_model.txt"
flux = flux_model # synthetic spectrum from the file "binary_model.txt"
waver, transr = np.loadtxt('path_to_the_transmission_curve/2MASS_J.txt', unpack=True)
region = ((waver[0] - 0.4 * waver[0]) <= wave) & (wave <= (2 * waver[-1]))
wave_ = wave[region]
flux_ = flux[region]
if (np.searchsorted(wave_, waver[-1]) - np.searchsorted(wave_, waver[0])) < 5:
wave__ = np.sort(np.hstack([wave_, waver]))
flux_ = np.interp(wave__, wave_, flux_)
wave_ = wave__
# -- interpolate response curve onto model grid
transr = np.interp(wave_, waver, transr, left=0, right=0)
# -- integrated flux: different for bolometers and CCDs
# -- WE WORK IN FLAMBDA
F_band = np.trapz(flux_ * transr * wave_, x=wave_) / np.trapz(transr * wave_, x=wave_)
print("Flux in J band: {:.4e} erg/s/cm^2/Å".format(F_band))
The synthetic flux (file “synthetic_flux.txt”) returned by the algorithm
in the 2MASS J band is approximately 1.398e-12, while I obtained a value of
1.474e-12 using the code above.
binary_model.txt
<https://github.com/user-attachments/files/18413333/binary_model.txt>
synthetic_flux.txt
<https://github.com/user-attachments/files/18413334/synthetic_flux.txt>
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASU63HWFFM3UDSAM2T3BKT2KU5JXAVCNFSM6AAAAABVBIJVUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJQGUYTOOBRGE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
m.v.g.
Joris Vos
|
Hi Joris,
I am a new user of speedyfit. Could you please advise on how to incorporate JHK photometry from UKIRT/WFCAM into the fitting? The object is not included in existing Vizier catalogs such as UKIDSS-DR7, but I have extracted the photometry directly from images.
The text was updated successfully, but these errors were encountered: