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

emu.load_flux() #159

Open
Aseman7 opened this issue Jun 7, 2023 · 1 comment
Open

emu.load_flux() #159

Aseman7 opened this issue Jun 7, 2023 · 1 comment

Comments

@Aseman7
Copy link

Aseman7 commented Jun 7, 2023

Hello,

In the emulated flux density file (emu.load_flux([2850,5.246,0.07])), I have the normalized flux, while I need that in its original unit (for example, Jy or erg/cm2/s). How can I access to that?

Overall, can I use the following emulated spectrum (created by Starfish's emulator) as a PHOENIX atmospheric model for my star?

flux=emu.load_flux([2850,5.246,0.07])
wavelength = emu.wl
plt.scatter(wavelength, flux)

Actually, I don't know how to derive an atmospheric model using PHOENIX or other libraries for a star. I would be very grateful if you could guide me.

@gully
Copy link
Collaborator

gully commented Aug 4, 2023

The absolute flux units are lost in the emulation process for the relatively unavoidable reason that the spectral grid has to be prewhitened. The procedure is described to some extent in Equations 20-23 of Czekala et al. 2015 and the surrounding text. Without dividing out the spectra first, the variance of the pixels across the grid would be enormous, and the PCA eigenspectra identification would not proceed as efficiently.

I made a workaround for this by storing the absolute values of the normalization in a separate "flux_scalars" attribute in my experimental starspot mixture model version of Starfish used in Gully-Santiago et al. 2017 and Gosnell et al. 2022. I don't think that feature is currently supported in the present version of Starfish, but in principle it could be (maintainers correct me if I'm wrong).

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