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

Double check Ref Pixel calculations #130

Open
Joshuaalbert opened this issue Nov 16, 2024 · 0 comments
Open

Double check Ref Pixel calculations #130

Joshuaalbert opened this issue Nov 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Joshuaalbert
Copy link
Owner

Ensure that l0, m0 calculations are correct.

We have that w-gridder uses:

# 0-indexed
lvec[i] = (-0.5 * N + i) * dl + l0

hence lvec[N//2] = (-0.5 * N + N // 2) * dl + l0 = l0 (because N always even). But in FITS I think pixels are 1-indexed, so in pixel frame the ref pixel CRPIX = N // 2 + 1.

Should verify empirically though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant