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

Templates from the Fermipy data catalogs seem to be corrupted #568

Open
AMONCode opened this issue Feb 22, 2024 · 2 comments
Open

Templates from the Fermipy data catalogs seem to be corrupted #568

AMONCode opened this issue Feb 22, 2024 · 2 comments
Labels

Comments

@AMONCode
Copy link

AMONCode commented Feb 22, 2024

I'm trying to reproduce the notebook exercises of Fermipy. I installed Fermipy with Mamba.
When doing the analysis for IC443, I get the following error:

RuntimeError: File not in FITS format: [/Users/hgayala/Software/miniconda3/envs/fermi/lib/python3.9/site-packages/fermipy/data/catalogs/Extended_archive_v15/Templates/IC443.fits](http://localhost:8888/Users/hgayala/Software/miniconda3/envs/fermi/lib/python3.9/site-packages/fermipy/data/catalogs/Extended_archive_v15/Templates/IC443.fits)

I tried to download just that one file but I still got the same error

I googled the problem and it seems it was a problem with older versions of Fermipy. I'm currently using Fermipy 1.2.2

@omodei
Copy link
Member

omodei commented Apr 4, 2024

Ciao Hugo, the problem could be that the templates in the repository are tracked by "git lfs" (git Large File Storage). You can get the extended templates directly from the FSSC web site:
https://fermi.gsfc.nasa.gov/ssc/data/access/lat/4yr_catalog/LAT_extended_sources_v15.tgz
and replace your "Extended_archive_v15".
Note that those are for the 3FGL catalog, not the latest 4FGL-DR4 (14 yrs of data):
https://fermi.gsfc.nasa.gov/ssc/data/access/lat/14yr_catalog/

@omodei omodei added the progress label Apr 4, 2024
@aurelio-amerio
Copy link

I had the same problem. I was running my analysis with the 3FGL catalog to compare my results with an old paper, and Fermipy was returning the same error, due to the extended source template v15 being corrupted.
Downloading the Extended_archive_v15 from the source as omodei suggested solved the problem.

I had downloaded fermipy 1.2.2 using pip, I'm not sure whether cloning the repository from github would solve the problem, but the deployment pipeline to pip may have to be revised

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants