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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dependencies-examples.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ astropy==7.0.1
# via
# healpy
# icecube-skyreader (setup.py)
astropy-iers-data==0.2025.2.3.0.32.42
astropy-iers-data==0.2025.2.10.0.33.26
# via astropy
cachetools==5.5.1
# via wipac-rest-tools
Expand All @@ -24,7 +24,7 @@ cryptography==44.0.0
# via pyjwt
cycler==0.12.1
# via matplotlib
fonttools==4.55.8
fonttools==4.56.0
# via matplotlib
healpy==1.18.0
# via
Expand Down
4 changes: 2 additions & 2 deletions dependencies-mypy.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ astropy==7.0.1
# via
# healpy
# icecube-skyreader (setup.py)
astropy-iers-data==0.2025.2.3.0.32.42
astropy-iers-data==0.2025.2.10.0.33.26
# via astropy
cachetools==5.5.1
# via wipac-rest-tools
Expand All @@ -24,7 +24,7 @@ cryptography==44.0.0
# via pyjwt
cycler==0.12.1
# via matplotlib
fonttools==4.55.8
fonttools==4.56.0
# via matplotlib
healpy==1.18.0
# via
Expand Down
4 changes: 2 additions & 2 deletions dependencies-tests.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ astropy==7.0.1
# via
# healpy
# icecube-skyreader (setup.py)
astropy-iers-data==0.2025.2.3.0.32.42
astropy-iers-data==0.2025.2.10.0.33.26
# via astropy
certifi==2025.1.31
# via requests
Expand All @@ -18,7 +18,7 @@ contourpy==1.3.1
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.55.8
fonttools==4.56.0
# via matplotlib
healpy==1.18.0
# via
Expand Down
4 changes: 2 additions & 2 deletions dependencies.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ astropy==7.0.1
# via
# healpy
# icecube-skyreader (setup.py)
astropy-iers-data==0.2025.2.3.0.32.42
astropy-iers-data==0.2025.2.10.0.33.26
# via astropy
certifi==2025.1.31
# via requests
Expand All @@ -18,7 +18,7 @@ contourpy==1.3.1
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.55.8
fonttools==4.56.0
# via matplotlib
healpy==1.18.0
# via
Expand Down
4 changes: 2 additions & 2 deletions skyreader/plot/plotting_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

fgl = hdu[1]
pe = [path_effects.Stroke(linewidth=0.5, foreground=cmap(0.0)),
path_effects.Normal()]
Expand Down Expand Up @@ -259,4 +259,4 @@ def _get_affine_transform(self):
_, yscale = transform.transform_point((0, np.pi / 2.0))
return Affine2D() \
.scale(0.5 / xscale, 0.5 / yscale) \
.translate(0.5, 0.5)
.translate(0.5, 0.5)
Loading