Commit 45687169 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

fix bugs in astrometric_util.py

parent e1d1ebda
...@@ -107,7 +107,7 @@ def on_orbit_obs_position(input_ra_list, input_dec_list, input_pmra_list, input_ ...@@ -107,7 +107,7 @@ def on_orbit_obs_position(input_ra_list, input_dec_list, input_pmra_list, input_
input_dec = c_double(input_dec_list[i]) input_dec = c_double(input_dec_list[i])
input_pmra = c_double(input_pmra_list[i]) input_pmra = c_double(input_pmra_list[i])
input_pmdec = c_double(input_pmdec_list[i]) input_pmdec = c_double(input_pmdec_list[i])
input_rv = c_double(input_rv_list[i]) input_rv = c_double(input_rv_list[i] * 3600.) # Convert from km/s to km/h
input_parallax = c_double(input_parallax_list[i]) input_parallax = c_double(input_parallax_list[i])
p3 = d3(input_x, input_y, input_z) p3 = d3(input_x, input_y, input_z)
v3 = d3(input_vx, input_vy, input_vz) v3 = d3(input_vx, input_vy, input_vz)
...@@ -120,7 +120,7 @@ def on_orbit_obs_position(input_ra_list, input_dec_list, input_pmra_list, input_ ...@@ -120,7 +120,7 @@ def on_orbit_obs_position(input_ra_list, input_dec_list, input_pmra_list, input_
DAT = c_double(37.0) DAT = c_double(37.0)
output_ra = c_double(0.0) output_ra = c_double(0.0)
output_dec = c_double(0.0) output_dec = c_double(0.0)
rs = shao.onOrbitObs(input_ra, input_dec, input_pmra, input_pmdec, input_rv, input_parallax, \ rs = shao.onOrbitObs(input_ra, input_dec, input_parallax, input_pmra, input_pmdec, input_rv, \
input_year_c, input_month_c, input_day_c, input_hour_c, input_minute_c, input_second_c, \ input_year_c, input_month_c, input_day_c, input_hour_c, input_minute_c, input_second_c, \
DAT, byref(p3), byref(v3), \ DAT, byref(p3), byref(v3), \
input_year_c, input_month_c, input_day_c, input_hour_c, input_minute_c, input_second_c, \ input_year_c, input_month_c, input_day_c, input_hour_c, input_minute_c, input_second_c, \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment