WCS object:
WCS Keywords
Number of WCS axes: 2
CTYPE : ‘RA—TAN’ ‘DEC–TAN’
CRVAL : 324.446451596993 46.81134088650578
CRPIX : 936.0 936.0
CD1_1 CD1_2 : 0.000153555929276978 0.000107686700666058
CD2_1 CD2_2 : 0.000107603784351073 -0.00015354329398242
NAXIS : 1872 1872
Code used for converting world coordinates to pixels:
ps1_imCoords = w.all_world2pix(Q[0][‘RAJ2000’],Q[0][‘DEJ2000’], 1)
Q[0] is:
Table length=5
RAJ2000 | DEJ2000 |
---|---|
deg | deg |
float64 | float64 |
322.36249999999995 | 46.54055555555556 |
323.3245833333333 | 45.85416666666667 |
323.49541666666664 | 45.591944444444444 |
324.01 | 45.374722222222225 |
325.53499999999997 | 45.76583333333333 |
Any help would be appreciated thanks. I am using astropy version ‘6.0.0’