FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ester/postprocessing/plot.py at master · ester-project/ester · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ester-project
/
ester
Public
Notifications
You must be signed in to change notification settings
Fork
16
Star
25
Code
Issues
4
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ester
/
postprocessing
/
plot.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (24 loc) · 596 Bytes
Breadcrumbs
ester
/
postprocessing
/
plot.py
Copy path
File metadata and controls
27 lines (24 loc) · 596 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# visualize a chosen quantity for each co-latitudes theta
# pass model file name and quantity as parameters
from
ester
import
*
import
matplotlib
.
pyplot
as
plt
import
numpy
as
np
import
argparse
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"model"
,
type
=
str
,
help
=
"the path to the folder containing ESTER model"
,
)
parser
.
add_argument
(
"--plot"
,
default
=
"rho"
,
type
=
str
,
help
=
f"which parameter to plot"
)
ARGS
=
parser
.
parse_args
()
a
=
star2d
(
ARGS
.
model
)
plt
.
plot
(
a
.
r
[:],
np
.
log10
(
getattr
(
a
,
ARGS
.
plot
)[:]))
plt
.
xlabel
(
"r"
)
plt
.
ylabel
(
ARGS
.
plot
)
plt
.
show
()
Back
|
FazBrowse Home
|
New Git URL