DavidT3 / XGA

X-ray: Generate and Analyse is a module designed to make the analysis of XMM observations simple and efficient. It provides an interface with SAS for the creation of XMM data products, as well as a way to easily perform fits (scalable for multiple observations) and retrieve information about an object, all within a Python package.
BSD 3-Clause "New" or "Revised" License
29 stars 3 forks source link

eROSITA (eFEDS) exposure maps seem to cause FITSIO bugs #1068

Closed DavidT3 closed 2 months ago

DavidT3 commented 11 months ago

OSError Traceback (most recent call last) ~/code/XGA/xga/products/phot.py in _read_wcs_on_demand(self) 207 # Reads only the header information --> 208 self._header = read_header(self.path) 209 except OSError:

/opt/anaconda3/envs/xga_dev/lib/python3.8/site-packages/fitsio/fitslib.py in read_header(filename, ext, extver, case_sensitive, **keys) 237 --> 238 return FITSHDR(_fits.read_header(hdunum)) 239

OSError: FITSIO status = 412: datatype conversion overflow Error in ffc2dd converting string to double: 2.662896678238377E-315 Error in ffc2d evaluating string as a double: 2.662896678238377E-315

When we try to read them in using the XGA exposure map class

DavidT3 commented 11 months ago

The REFYCRVL header value is the cultript, not really sure why - I'm not really sure what it and it's fellows are for - I deleted this (as a bodge) and it did just work.

DavidT3 commented 9 months ago

fthedit {file name} REFYCRVL delete

should be what you need

DavidT3 commented 2 months ago

This was implemented, and the problem was resolved, though it should never have been necessary and hopefully eSASS will fix this at some point.