Skip to content

Commit

Permalink
modify to use 90°-PA
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Feb 12, 2024
1 parent 56847fa commit 1947c98
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nway.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def make_errors_table_matrix(table_names, pos_errors):

intable_errors_ra = tables[ti][keys[0]]
intable_errors_dec = tables[ti][keys[1]]
intable_errors_rho = tables[ti][keys[2]] / 180 * pi
intable_errors_rho = (tables[ti][keys[2]] - 90) / 180 * pi

table_errors_ra = table["%s_%s" % (table_name, keys[0])]
table_errors_dec = table["%s_%s" % (table_name, keys[1])]
table_errors_rho = table["%s_%s" % (table_name, keys[2])] / 180 * pi
table_errors_rho = (table["%s_%s" % (table_name, keys[2])] - 90) / 180 * pi

intable_errors_ra, intable_errors_dec, intable_errors_rho = bayesdist.convert_from_ellipse(intable_errors_ra, intable_errors_dec, intable_errors_rho)
table_errors_ra, table_errors_dec, table_errors_rho = bayesdist.convert_from_ellipse(table_errors_ra, table_errors_dec, table_errors_rho)
Expand Down
Binary file modified tests/elltest/randomcatO.fits
Binary file not shown.
Binary file modified tests/elltest/randomcatR.fits
Binary file not shown.
Binary file modified tests/elltest/randomcatX.fits
Binary file not shown.

0 comments on commit 1947c98

Please sign in to comment.