-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminator plots #26
Terminator plots #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggested tweaks ... the plot looks great though!
colour_scheme = X2_colour_scheme | ||
field_label = X2_field_label | ||
cmap, lines = tomplot_cmap(contours, colour_scheme, remove_contour=None) | ||
cbar_labelpad = -10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to make these cbar_labelpad
values even more negative, so that the label for the colour bar tucks into the colour bar more tightly
@@ -124,7 +125,7 @@ def terminator_toy( | |||
xyz = SpatialCoordinate(mesh) | |||
lamda, theta, _ = lonlatr_from_xyz(xyz[0], xyz[1], xyz[2]) | |||
k1 = max_value( | |||
0, k1_max*cos(great_arc_angle(lamda, lamda_cr, theta, theta_cr)) | |||
0, k1_max*cos(great_arc_angle(lamda, theta, lamda_cr, theta_cr)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thanks for spotting this!
transport/terminator_toy.py
Outdated
|
||
g1 = exp(-5*((X-X1)**2 + (Y-Y1)**2 + (Z-Z1)**2)) | ||
g2 = exp(-5*((X-X2)**2 + (Y-Y2)**2 + (Z-Z2)**2)) | ||
b0 = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a parameter at the top?
transport/terminator_toy.py
Outdated
) | ||
|
||
terminator_toy_defaults = { | ||
'ncells_per_edge': 8, # num points per icosahedron edge (ref level 3) | ||
'dt': 900.0, # 15 minutes | ||
'ncells_per_edge': 16, # num points per icosahedron edge (ref level 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'ncells_per_edge': 16, # num points per icosahedron edge (ref level 4) | |
'ncells_per_edge': 16, # num points per icosahedron edge (ref level 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really nice to me
Thanks for doing this Tim! |
Add or update a Gusto case study
Here is a checklist of things that should be done to add a new case study to
the repository:
templates/template_case_study.py
. This ensures that the case study:__main__
routine with arg-parsing of command line argumentstest_*.py
file, so that it will be run as part of CIplotting
directory, with a name that matches the case study scriptfigures
directory, with names that match the case study scriptAdd or update a plotting script
Here is a checklist of things that should be done to add a new plotting script to the repository:
templates/template_plotting_script.py
or another acceptable plotting scripttomplot/good_plot_guide.md