Page 1 of 1
Image.EstimateRaDec
Posted: 11 Apr 2020, 23:25
by Craig
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
Re: Image.EstimateRaDec
Posted: 11 Apr 2020, 23:47
by Craig
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
Re: Image.EstimateRaDec
Posted: 11 Apr 2020, 23:52
by Craig
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