Closed adl1995 closed 7 years ago
@cdeil I have added a class called WCSGeometry
and renamed the function to compute_healpix_pixel_indices
. For now, the class just contains two properties, wcs
and shape
, but I will add a class method to create a WCS object within this class.
@cdeil - I added a @classmethod
for creating a WCS object, however, I'm getting this error in wcs.all_pix2world
function:
TypeError: WCS projection has 4 dimensions, so expected 2 (an Nx4 array and the origin argument) or 5 arguments (the position in each dimension, and the origin argument). Instead, 3 arguments were given.
I think this has something to do with how I'm constructing my SkyCoord
object. For now, I am passing it these arguments:
skycoord = SkyCoord(10, 20, unit="deg")
@cdeil - I just made a commit which adds 2 examples, updates the test case, crpix
parameter for WCSGeometry
, and some documentation changes.
@cdeil - I've made the necessary changes. Please check.
@adl1995 - See 17925ac . I'll merge if travis-ci passes.
Some things I did:
compute_healpix_pixel_indices
functionWCSGeometry
I have added a function related with the computation of pixels. However, in the test case, I'm getting this error:
This is caused by the
fits.open()
function. I tried passing in a parameter calledremote_data=None
following this issue, but the error still persists.