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

NaNs returned with SEP Aperture Photometry #150

Open
jortiz12 opened this issue Feb 26, 2023 · 0 comments
Open

NaNs returned with SEP Aperture Photometry #150

jortiz12 opened this issue Feb 26, 2023 · 0 comments

Comments

@jortiz12
Copy link

Dear Community,

I'd appreciate help on the following issue.
Im doing apperture photometry with direct local background subtraction using the code

flux_lcbkg, fluxerr_lcbkg, flag_lcbkg = sep.sum_circle(datac_c, posx, posy, R, bkgann=(R_in, R_out), subpix=0)

, with R = 6, R_in = 32., R_out = 46. (pixels)

However, when using 1-channel images (from a MUSE datacube) I get many NaNs for the estimated flux (see bottom image below).
On the contrary, when using coadded 3-channel images (ie adding three wavelength bins along the spectral dimension of thre datacube), I don´t get any NaNs.

Any suggestion why I'm getting NaNs when using the former??? Plots of both images shown below.

Txs vm in advance
Jose

imagen

imagen

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

1 participant