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

Update 4FGL-DR4 Source List #42

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update 4FGL-DR4 Source List #42

wants to merge 3 commits into from

Conversation

azegarelli
Copy link
Contributor

This merge request aims to use the most up-to-date .fit file provided by the Fermi collaboration for the LAT 14-year Source Catalog when generating skymap plots.

Comment on lines 259 to 262
return Affine2D() \
.scale(0.5 / xscale, 0.5 / yscale) \
.translate(0.5, 0.5) No newline at end of file
.translate(0.5, 0.5)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the \-syntax to split between lines. If it doesn't all fit on one line, I recommend taking a look at how the black formatter does this: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#call-chains

@@ -121,7 +121,7 @@ def plot_catalog(master_map, cmap, lower_ra, upper_ra, lower_dec, upper_dec,
cmap_min=0., cmap_max=250.):
""""Plots the 4FGL catalog in a color that contrasts with the background
healpix map."""
hdu = pyfits.open('/cvmfs/icecube.opensciencegrid.org/users/azegarelli/realtime/catalogs/gll_psc_v34.fit') ## LAT 14-year Source Catalog (4FGL-DR4 in FITS format) ; https://fermi.gsfc.nasa.gov/ssc/data/access/lat/14yr_catalog/')
hdu = pyfits.open('/cvmfs/icecube.opensciencegrid.org/users/azegarelli/realtime/catalogs/gll_psc_v35.fit') ## LAT 14-year Source Catalog (4FGL-DR4 in FITS format) ; https://fermi.gsfc.nasa.gov/ssc/data/access/lat/14yr_catalog/')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend putting this path as a constant variable either at the top of this file, or in new file called config.py/constants.py/etc. This way, constant values can be easily found/tracked in the future.

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

Successfully merging this pull request may close these issues.

4 participants