add ra and dec properties
@@ -104,6 +104,20 @@ class KeplerTargetPixelFile(TargetPixelFile):
def output(self):
return self.header()['OUTPUT']
+ @property
+ def ra(self):
+ try:
+ return self.header()['RA_OBJ']
+ except KeyError:
+ return None
+
+ @property
+ def dec(self):
+ try:
+ return self.header()['DEC_OBJ']
+ except KeyError:
+ return None
+
@property
def column(self):
return self.hdu['TARGETTABLES'].header['1CRV5P']
