Skip to content

Commit

Permalink
Update url for decals DR10 downloads #76
Browse files Browse the repository at this point in the history
  • Loading branch information
kmhess committed Feb 15, 2023
1 parent b103267 commit 84ef74b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='sofia_image_pipeline',
version='1.2.2',
version='1.2.3',
description='SIP takes a SoFiA generated source catalog and produce images for publication or quick inspection. Images include HI contours overlaid on multiwavelength images, HI moment maps, pixel-by-pixel SNR maps, pv-diagrams with SoFiA mask, and spectra with and without noise.',
url='https://github.com/kmhess/SoFiA-image-pipeline',
author='Kelley M. Hess',
Expand Down
4 changes: 2 additions & 2 deletions src/modules/get_ancillary.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import requests
from PIL import Image
from PIL import Image, ImageEnhance
from io import BytesIO
from urllib.error import HTTPError

Expand Down Expand Up @@ -96,7 +96,7 @@ def get_decals(hi_pos, opt_view=6*u.arcmin, dev_dr=False):
pixscale = 0.262 # default(?) arcsec/pixel
dimen = (opt_view.to(u.arcsec).value / pixscale).astype(int)
if dev_dr:
url = 'https://www.legacysurvey.org/viewer-dev/cutout.fits?ra={}&dec={}&layer=ls-dr10-grz&' \
url = 'https://www.legacysurvey.org/viewer/cutout.fits?ra={}&dec={}&layer=ls-dr10&' \
'pixscale={}&width={}&height={}&bands=g'.format(hi_pos.ra.deg, hi_pos.dec.deg, pixscale, dimen[0], dimen[-1])
else:
url = 'https://www.legacysurvey.org/viewer/cutout.fits?ra={}&dec={}&layer=ls-dr9&' \
Expand Down

0 comments on commit 84ef74b

Please sign in to comment.