Skip to content

"Empty of corrupt FITS file" error for S230531f #5

@villrv

Description

@villrv

Received the following error on event S230531f (a "burst" detection, so there is no probability breakdown. I assume this was the cause of the issue.

Traceback (most recent call last): File "/home/ligo_files/LIGHETR_alert_stable/LIGHETR_Alert_System/Final Directory/Alert Main.py", l$
process_fits(fits_file = skymap, alert_message = message_content, skip_test_alerts = True)
File "/home/ligo_files/LIGHETR_alert_stable/LIGHETR_Alert_System/Final Directory/Alert Main.py", l$
skymap,header = hp.read_map(singleorder_file_name, h=True, verbose=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/ligoenv/lib/python3.11/site-packages/astropy/utils/decorators.py", lin$
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/ligoenv/lib/python3.11/site-packages/healpy/fitsfunc.py", line 370, in$
filename = pf.open(filename, memmap=memmap)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/ligoenv/lib/python3.11/site-packages/astropy/io/fits/hdu/hdulist.py", $
return HDUList.fromfile(
^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/ligoenv/lib/python3.11/site-packages/astropy/io/fits/hdu/hdulist.py", $
return cls._readfrom(
^^^^^^^^^^^^^^
File "/root/miniconda3/envs/ligoenv/lib/python3.11/site-packages/astropy/io/fits/hdu/hdulist.py", $
raise OSError("Empty or corrupt FITS file")
OSError: Empty or corrupt FITS file

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