Skip to content

PanSTARRS-1 image opening error #8

@emdailey

Description

@emdailey

PanSTARRS-1 survey images load, but an error appears after asking which opener to use. Tried opening the image using astropy.io.fits and Pillow, error messages with shortened addresses are shown below. Used Windows 11.

Using astropy.io.fits:
~\spot\Lib\site-packages\astropy\io\fits\hdu\hdulist.py", line 213, in fitsopen
return HDUList.fromfile(
^^^^^^^^^^^^^^^^^

~\spot\Lib\site-packages\astropy\io\fits\hdu\hdulist.py", line 476, in fromfile
return cls._readfrom(
^^^^^^^^^^^^^^

~\spot\Lib\site-packages\astropy\io\fits\hdu\hdulist.py", line 1198, in _readfrom
raise OSError(

Using Pillow:
Error opening '\Local\Temp\ps1cutouts_16': cannot identify image file '\Local\Temp\ps1cutouts_16'
File "~\spot\Lib\site-packages\ginga\rv\Control.py", line 814, in _open_file
with opener.open_file(filepath) as io_f:
^^^^^^^^^^^^^^^^^^^^^^^^^^

File "~\spot\Lib\site-packages\ginga\util\io\io_rgb.py", line 462, in open_file
self.rgb_f = Image.open(filepath)
^^^^^^^^^^^^^^^^^^^^

File "~\spot\Lib\site-packages\PIL\Image.py", line 3339, in open
raise UnidentifiedImageError(msg)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions