Commit daf55af2 authored by bepinat's avatar bepinat

Bug correction in create_config

parent f6608ee0
...@@ -166,8 +166,8 @@ def create_config(path, cubefile, varfile, catfile, lines, suffixeout, commonw=T ...@@ -166,8 +166,8 @@ def create_config(path, cubefile, varfile, catfile, lines, suffixeout, commonw=T
dec = coord.Angle(line['dec'], unit=u.degree) dec = coord.Angle(line['dec'], unit=u.degree)
logger.debug(' converting ra,dec %f,%f ' % (line['ra'],line['dec']) ) logger.debug(' converting ra,dec %f,%f ' % (line['ra'],line['dec']) )
#xc, yc = np.round(w.wcs_world2pix(ra, dec, 0)) xc, yc = np.round(w.wcs_world2pix(ra, dec, 0))
xc, yc, _ = np.round(w.wcs_world2pix(ra, dec, 0, 0)) #xc, yc, _ = np.round(w.wcs_world2pix(ra, dec, 0, 0))
logger.debug(' converting x,y %f %f ' % (xc,yc) ) logger.debug(' converting x,y %f %f ' % (xc,yc) )
if dxy is not None: if dxy is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment