-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
198 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<h1 align="center"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="assets/logo-small-white.svg" width="100px"> | ||
<source media="(prefers-color-scheme: light)" srcset="assets/logo-small.svg" width="100px"> | ||
<img alt="Shows the logo of ClimaExplorer, a compass styled with Julia's colors" src="assets/logo-small.svg"> | ||
</picture> <br> | ||
ClimaExplorer | ||
</h1> |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
""" | ||
spherical_shell_layout(var::ClimaAnalysis.OutputVar) | ||
Set up the page layout and content for the given var, assuming it is a 3D sphere. | ||
""" | ||
function sphere_layout(var::ClimaAnalysis.OutputVar) | ||
time_slider = Slider(ClimaAnalysis.times(var)) | ||
level_slider = Slider(ClimaAnalysis.altitudes(var)) | ||
|
||
var = map(time_slider) do time | ||
short_name = vars_menu.value.val | ||
# Trigger level_slidel | ||
setindex!(level_slider, level_slider.value.val) | ||
ClimaAnalysis.slice(get(simdir; short_name, reduction = reduction.val, period = period.val); time, z = level_slider.value.val) | ||
end | ||
|
||
var = map(level_slider) do level | ||
short_name = vars_menu.value.val | ||
ClimaAnalysis.slice(get(simdir; short_name, reduction = reduction.val, period = period.val); time = time_slider.value.val, z = level) | ||
end | ||
|
||
fig = map(var) do sliced_var | ||
fig = CairoMakie.Figure(size=(1200, 760), fontsize=30) | ||
ClimaAnalysis.Visualize.contour2D_on_globe!(fig, sliced_var) | ||
# ClimaAnalysis.Visualize.plot!(fig, sliced_var) | ||
fig | ||
end | ||
|
||
return | ||
|
||
end | ||
|
||
|
||
""" | ||
spherical_shell_layout(var::ClimaAnalysis.OutputVar) | ||
Set up the page layout and content for the given var, assuming it is a (2D) spherical shell. | ||
""" | ||
function spherical_shell_layout(var::ClimaAnalysis.OutputVar) | ||
time_slider = Slider(ClimaAnalysis.times(var)) | ||
end |