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

Facing issue while analyzing a few 3FGL sources #556

Open
AnuvabAstro opened this issue Oct 26, 2023 · 1 comment
Open

Facing issue while analyzing a few 3FGL sources #556

AnuvabAstro opened this issue Oct 26, 2023 · 1 comment
Assignees

Comments

@AnuvabAstro
Copy link

Hi,
I am trying to generate a source model for sources using 3FGL catalog, and for a few cases, I am getting the following error:
Traceback (most recent call last):
File "/zfs/astrohe/anuvab/stacking_fresh_run/run_8/run.py", line 205, in
main(sys.argv)
File "/zfs/astrohe/anuvab/stacking_fresh_run/run_8/run.py", line 96, in main
gta.setup()
File "/zfs/astrohe/Software/fermipy_1.2/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 1090, in setup
self._create_likelihood()
File "/zfs/astrohe/Software/fermipy_1.2/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 1117, in _create_likelihood
c._create_binned_analysis(srcmdl)
File "/zfs/astrohe/Software/fermipy_1.2/lib/python3.9/site-packages/fermipy/gtanalysis.py", line 5457, in _create_binned_analysis
self._obs = ba.BinnedObs(**utils.unicode_to_str(kw))
File "/zfs/astrohe/Software/fermipy_1.2/lib/python3.9/site-packages/fermitools/BinnedAnalysis.py", line 71, in init
self._createObservation(srcMaps, expCube, self.irfs)
File "/zfs/astrohe/Software/fermipy_1.2/lib/python3.9/site-packages/fermitools/BinnedAnalysis.py", line 74, in _createObservation
self._respFuncs.load_with_event_types(irfs, "", self.srcMaps, "")
File "/zfs/astrohe/Software/fermipy_1.2/lib/python3.9/site-packages/fermitools/pyLikelihood.py", line 6594, in load_with_event_types
return _pyLikelihood.ResponseFunctions_load_with_event_types(self, respFuncs, respBase, filename, extname)
RuntimeError: Cannot read keyword "NDSKEYS" in file "/zfs/astrohe/anuvab/stacking_fresh_run/run_8/model_1GeV_1TeV_complex_with_ts/3FGL_J1254.9-4423/srcmap_00.fits" (CFITSIO ERROR 202: keyword not found in header)

Could you kindly help me understand what is happening? I am using a ltcube file with a cut at 90 degrees. Here are a few more details:
irfs : 'P8R3_SOURCE_V2'
isodiff: iso_P8R3_SOURCE_V3_v1.txt
galdiff: gll_iem_v07.fits

I am happy to provide further details if necessary.

@omodei
Copy link
Member

omodei commented Apr 4, 2024

Hi! I am afraid there are not enough informations. Can you provide the configuration file and the code you are running that produce this error?

@omodei omodei self-assigned this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants