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

in jp2parser.py Get image dimensions from jp2 metadata rather than the fits header #361

Open
dgarciabriseno opened this issue Mar 12, 2024 · 0 comments

Comments

@dgarciabriseno
Copy link
Contributor

dgarciabriseno commented Mar 12, 2024

In the lines referenced below, NAXIS1 represents the width of the image and NAXIS2 represents the height. We can get these dimensions from the jp2 metadata (via glymur.Jp2k) instead of getting them from the fits header (self._data).

image['NAXIS1'] = self._data['NAXIS1'] if 'NAXIS1' in self._data else 'NULL'
image['NAXIS2'] = self._data['NAXIS2'] if 'NAXIS2' in self._data else 'NULL'

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