When I put this in a script and print, I see only the RA value. I am assuming the function returns both RA and DEC as a string.
print Image.EstimateRaDec
Craig
Image.EstimateRaDec
Re: Image.EstimateRaDec
Here is what is in the FITS header:
RA = 347.050474559823 / Object Right Ascension in degrees
DEC = -48.3669332248298 / Object Declination in degrees
CRVAL1 = 347.042102036400000
CRVAL2 = -48.3703387802500000
OBJCTRA = '23 08 12.114' / Object Right Ascension in hms
OBJCTDEC= '-48 22 00.960' / Object Declination in degrees
RA = 347.050474559823 / Object Right Ascension in degrees
DEC = -48.3669332248298 / Object Declination in degrees
CRVAL1 = 347.042102036400000
CRVAL2 = -48.3703387802500000
OBJCTRA = '23 08 12.114' / Object Right Ascension in hms
OBJCTDEC= '-48 22 00.960' / Object Declination in degrees
Re: Image.EstimateRaDec
Found the problem, the function returns two values and so the correct script call is:
ra,dec = Image.EstimateRaDec
print ra
print dec
works okay now. I think this is why we need examples for each script function call.
Craig
ra,dec = Image.EstimateRaDec
print ra
print dec
works okay now. I think this is why we need examples for each script function call.
Craig