Skip to content

Commit

Permalink
Get HiPS order from HipsSurveyProperties class
Browse files Browse the repository at this point in the history
  • Loading branch information
adl1995 committed Jun 29, 2017
1 parent e487e44 commit 42ceb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hips/draw/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _fetch_tiles(healpix_pixel_indices: np.ndarray, order: int, hips_survey: Hip
'HipsTile'
Returns an object of HipsTile
"""
base_url = hips_survey.data['moc_access_url'].rsplit('/', 1)[0] + '/Norder3/Dir0/'
base_url = hips_survey.data['moc_access_url'].rsplit('/', 1)[0] + '/Norder' + str(hips_survey.hips_order) + '/Dir0/'
for healpix_pixel_index in healpix_pixel_indices:
tile_meta = HipsTileMeta(order=order, ipix=healpix_pixel_index, file_format='fits')
tile = HipsTile.fetch(tile_meta, base_url + tile_meta.filename)
Expand Down

0 comments on commit 42ceb7a

Please sign in to comment.