Skip to content

Commit

Permalink
Merge pull request astropy#163 from astrofrog/fix-ordering
Browse files Browse the repository at this point in the history
Fix bug in auto-identification of HEALPix ordering
  • Loading branch information
astrofrog committed Sep 15, 2018
2 parents c2a43cc + cd1155a commit ac80b69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- Improve parse_output_projection to make it so that the output projection
can be specified as a filename. [#150]

- Fixed a bug that caused HEALPix maps in RING order to not be correctly
interpreted. [#163]

0.4 (2018-01-29)
----------------

Expand Down
2 changes: 1 addition & 1 deletion reproject/healpix/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def parse_input_healpix_data(input_data, field=0, hdu_in=None, nested=None):
coordinate_system_in = parse_coord_system(header['COORDSYS'])
array_in = data[data.columns[field].name].ravel()
if 'ORDERING' in header:
nested = header['ORDERING'].lower()
nested = header['ORDERING'].lower() == 'nested'
elif isinstance(input_data, six.string_types):
hdu = fits.open(input_data)[hdu_in or 1]
return parse_input_healpix_data(hdu, field=field)
Expand Down

0 comments on commit ac80b69

Please sign in to comment.