dwkim78 / ASTRiDE

AUTOMATED STREAK DETECTION FOR ASTRONOMICAL IMAGES
MIT License
49 stars 23 forks source link

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

Closed Tanggeshi closed 1 year ago

Tanggeshi commented 1 year ago

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

dwkim78 commented 1 year ago

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

https://github.com/dwkim78/ASTRiDE/blob/7fb7df8f9d0a42f66b71e8af745e4adbd5bdba10/astride/detect.py#L61

Tanggeshi commented 1 year ago

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.

Tanggeshi commented 1 year ago

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.

dwkim78 commented 1 year ago

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