dwkim78/ASTRiDE

Why the result of the test example without Ra Dec in streak.txt file?

Closed this issue · 4 comments

Hi, I had run astride by test, but why is there no Ra Dec in the streak.txt:

#ID x_center y_center area perimeter shape_factor radius_deviation slope_angle intercept connectivity
1 260.84 316.66 1077.5 449.8 0.067 0.58 -5.07 339.98 2
2 105.16 330.27 903.9 428.2 0.062 0.58 -4.93 339.43 -1

ASTRiDE calculates RA & DEC based on the WCS information of a given fits file. You might want to check the following Python code:

wcsinfo = hdulist[0].header["CTYPE1"]

Hi dwKim,
Thank you so much!
I had copy ASTRiDE/astride/detect.py to my local disk, and reinstall the package. Now I get Ra Dec correctlly.

By the way, I'd like to tell you that I had installed ASTRiDE by command: pip install astride, but the detect.py is different from detect.py on this Github site, I donot know where pip install astride to download the package.

Thanks for letting me know about the issue. I updated the installation document.