mperrin / webbpsf

James Webb Space Telescope PSF simulation tool - NOTE THIS VERSION OF REPO IS SUPERCEDED BY spacetelescope/webbpsf
BSD 3-Clause "New" or "Revised" License
16 stars 15 forks source link

Convert FITS array to native byte order #159

Closed josePhoenix closed 7 years ago

josePhoenix commented 7 years ago

When reading the NIRCam focus model from a FITS table, convert to machine byte order explicitly.

This solves the ValueError: Big-endian buffer not supported on little-endian compiler errors from Cython/SciPy.

For more info: https://github.com/scipy/scipy/issues/2643

josePhoenix commented 7 years ago

Note: This depends on https://github.com/mperrin/poppy/pull/212