You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sbpy/dynamics.rst
+59-30Lines changed: 59 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -524,8 +524,66 @@ Here is an example that plots the syndynes and synchrones from above as offsets
524
524
plt.legend()
525
525
plt.tight_layout()
526
526
527
+
For more complex plot logic, e.g., specific line colors and styles, use the plot methods of the individual syndynes/synchrones:
527
528
528
-
The following example compares syndynes to a Spitzer Space Telesocpe image of comet 48P/Johnson (`Reach et al. 2007 <https://scixplorer.org/abs/2007Icar..191..298R/abstract>`_). The FITS world coordinate system is used to account for the image orientation and scale. To precisely align the syndynes with the comet nucleus, we update the world coordinate system to use our calculated comet coordinates.
529
+
.. doctest-requires:: scipy,astroquery,matplotlib
530
+
.. doctest-remote-data::
531
+
532
+
>>> ls = ["-", "--", "-."]
533
+
>>> syndynes = dust.syndynes()
534
+
>>> for i inrange(3):
535
+
... syndynes[i].plot(ax, color="k", ls=ls[i])
536
+
537
+
.. plot::
538
+
:show-source-link:
539
+
540
+
import numpy as np
541
+
import matplotlib.pyplot as plt
542
+
543
+
import astropy.units as u
544
+
from astropy.time import Time
545
+
from sbpy.dynamics import State, SynGenerator
546
+
547
+
# define the dust source
548
+
r = [2, 0, 0] * u.au
549
+
v = [0, 30, 0] * u.km / u.s
550
+
t = Time("2023-12-08")
551
+
frame = "heliocentriceclipticiau76"
552
+
comet = State(r, v, t, frame=frame)
553
+
554
+
# define particle parameters
555
+
betas = [1, 0.1, 0.01, 0]
556
+
ages = np.linspace(0, 100, 25) * u.day
557
+
558
+
# observe it from a fixed location in the Solar System
The following complete example compares syndynes to a Spitzer Space Telesocpe image of comet 48P/Johnson (`Reach et al. 2007 <https://scixplorer.org/abs/2007Icar..191..298R/abstract>`_). The FITS world coordinate system is used to account for the image orientation and scale. To precisely align the syndynes with the comet nucleus, we update the world coordinate system to use our calculated comet coordinates.
529
587
530
588
.. note::
531
589
The `sbpy` testing suite shows that arcsecond-level accuracy is possible, but this is generally not enough for direct comparison to typical images of comets, which need sub-arcsecond alignment. The accuracy of the coordinates object depends on the the comet and observer states, but also on whether or not light travel time is accounted for, and the accuracy of the orbit integrator.
@@ -660,35 +718,6 @@ The following example compares syndynes to a Spitzer Space Telesocpe image of co
660
718
plt.legend()
661
719
plt.tight_layout()
662
720
663
-
For more complex plot logic, e.g., to use specific line colors and styles, we can use the plot methods of the individual syndynes/synchrones:
0 commit comments