Image.EstimateRaDec

Scripts and programs to automate Astroart
Post Reply
Craig
Posts: 19
Joined: 09 Apr 2020, 01:33

Image.EstimateRaDec

Post by Craig » 11 Apr 2020, 23:25

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

Craig
Posts: 19
Joined: 09 Apr 2020, 01:33

Re: Image.EstimateRaDec

Post by Craig » 11 Apr 2020, 23:47

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

Craig
Posts: 19
Joined: 09 Apr 2020, 01:33

Re: Image.EstimateRaDec

Post by Craig » 11 Apr 2020, 23:52

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

Post Reply