-
Notifications
You must be signed in to change notification settings - Fork 11
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
Weird behavior for trivial table header #584
Comments
I don't even understand the units. The help text says they can be deg or mm. The
shows
and indeed, without any pixels, the footprint is zero. I don't know why the CRPIX is at 0.5 though. Oh that makes sense, because look at your correct example:
gives
There are 4 pixels, centered around the origin. The FITS counting is one-based, so the center of the image is at 1.5, 1.5. Maybe we can resolve this by ensuring that all sources must be at least half a pixel from the edge? That is, in your first example, a source at 0,0 should have 1 pixel in it, which should be in the center. Or is that undesirable? I don't know |
I talked to @oczoske about this shortly after writing the issue. The formula used to calculate the |
Considering a minimal header from a table with one point source at (0, 0) and arbitrary CDELT:
then
results in
This actually occurs frequently in the FOV for super simple sources with one point source in the center, but passes silently because the endresult is still the same. I'm wondering why we need a temporary header from the table fields at all in the particular case I'm currently looking at. Anyway, the example shown here should really print
in my opinion. The bug seems to be in how the header is created for this edgecase.
But it gets worse. For
the resulting footprint is
which seems even worse somehow...
To give an example where it actually works:
produces
which to me seems correct.
The text was updated successfully, but these errors were encountered: