This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flare_sketch.Rmd
executable file
·75 lines (56 loc) · 1.52 KB
/
flare_sketch.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
jupyter:
jupytext:
text_representation:
extension: .Rmd
format_name: rmarkdown
format_version: '1.2'
jupytext_version: 1.5.1
kernelspec:
display_name: Python 3
language: python
name: python3
---
# Multi-spacecraft longitudinal configuration plotter
```{python}
# import libraries
from backmapping import *
```
# provide date and time
```{python}
date = '2020-05-01 13:00:00'
```
# Chose bodies/spacecraft and measured solar wind speeds (vst_list: leave empty for nominal speed of vsw=400 km/s)
```{python}
# selection of inner heliospheric spacecraft and bodies to be provided to body_list
print_body_list()
```
```{python}
body_list = ['STEREO-A', 'STEREO-B', 'Earth', 'MPO', 'PSP', 'Solar Orbiter', 'Mars']
vsw_list = [300, 400, 500, 600, 700, 800, 900, 200]
#vsw_list = []
```
# Provide a reference longitude in Carrington coordinates (e.g. flare longitude)
```{python}
reference_long = 20
reference_lat = -20
```
# Initialize the Bodies
```{python}
c = HeliosphericConstellation(date, body_list, vsw_list, reference_long, reference_lat)
```
# Display coordinates
```{python}
display(c.coord_table)
```
# Make the longitudinal constellation plot
```{python}
c.plot(
plot_spirals=True, # plot Parker spirals for each body
plot_sun_body_line=True, # plot straight line between Sun and body
show_earth_centered_coord=True, # display Earth-centered coordinate system
outfile='plot.png' # output file (optional)
)
```
```{python}
```