Skip to content

Commit

Permalink
Update output image and add PDF output
Browse files Browse the repository at this point in the history
  • Loading branch information
adl1995 committed Jul 8, 2018
1 parent 11310a6 commit d2a944f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Binary file added docs/joss_paper/plot_jpg.hires.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/joss_paper/plot_jpg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Basic example how to plot a sky image with the hips package"""
from astropy.coordinates import SkyCoord
from hips import WCSGeometry, HipsPainter

# Compute the sky image
geometry = WCSGeometry.create(
skydir=SkyCoord(0, 0, unit='deg', frame='galactic'),
width=2000, height=1000, fov="3 deg",
coordsys='galactic', projection='AIT',
)
hips_survey = 'IPAC/P/GLIMPSE360'

fetch_opts = dict(fetch_package='urllib', timeout=30, n_parallel=10)
painter = HipsPainter(geometry, hips_survey, 'jpg', fetch_opts=fetch_opts)
painter.run()
painter.plot_mpl_hips_tile_number_grid()
Binary file added paper.pdf
Binary file not shown.

0 comments on commit d2a944f

Please sign in to comment.