Skip to content

Commit

Permalink
deoff->decoff in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
sblunt authored Nov 4, 2024
1 parent d5ffbd8 commit 8435223
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/tutorials/abs_astrometry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@
")\n",
"\n",
"raoffs = np.zeros(num_datapoints)\n",
"deoffs = np.zeros(num_datapoints)\n",
"decoffs = np.zeros(num_datapoints)\n",
"for i in range(num_datapoints):\n",
" my_data_coordinate = SkyCoord(datapoints[i], unit=(u.hourangle, u.deg))\n",
"\n",
" # take difference between reported Hipparcos position and convert to mas\n",
" raoff, deoff = hipparcos_coordinate.spherical_offsets_to(my_data_coordinate)\n",
" raoff, decoff = hipparcos_coordinate.spherical_offsets_to(my_data_coordinate)\n",
"\n",
" # n.b. orbitize! expects raw ra offsets, NOT multiplied by cos(delta0). Don't\n",
" # multiply by cos(delta0) here.\n",
" raoffs[i] = raoff.to(u.mas).value\n",
" deoffs[i] = deoff.to(u.mas).value\n",
" decoffs[i] = decoff.to(u.mas).value\n",
"\n",
"print(raoffs, deoffs)"
"print(raoffs, decoffs)"
]
},
{
Expand Down Expand Up @@ -134,8 +134,8 @@
" <th>epoch</th>\n",
" <th>object</th>\n",
" <th>raoff</th>\n",
" <th>deoff</th>\n",
" <th>deoff_err</th>\n",
" <th>decoff</th>\n",
" <th>decoff_err</th>\n",
" <th>raoff_err</th>\n",
" </tr>\n",
" </thead>\n",
Expand Down Expand Up @@ -163,7 +163,7 @@
"</div>"
],
"text/plain": [
" epoch object raoff deoff deoff_err raoff_err\n",
" epoch object raoff decoff decoff_err raoff_err\n",
"0 58894.1644 0 377.813056 1044.819572 123.4 123.4\n",
"1 58934.8270 0 1425.176093 933.702905 123.4 123.4"
]
Expand All @@ -183,9 +183,9 @@
"df_orbitize[\"object\"] = 0\n",
"\n",
"df_orbitize[\"raoff\"] = raoffs\n",
"df_orbitize[\"deoff\"] = deoffs\n",
"df_orbitize[\"decoff\"] = decoffs\n",
"\n",
"df_orbitize[\"deoff_err\"] = 123.4 # error on the declination measurement, in mas\n",
"df_orbitize[\"decoff_err\"] = 123.4 # error on the declination measurement, in mas\n",
"df_orbitize[\"raoff_err\"] = 123.4 # error on the RA measurement, in mas\n",
"\n",
"df_orbitize.to_csv(\"data_for_orbit_fit.csv\", index=False)\n",
Expand Down

0 comments on commit 8435223

Please sign in to comment.