-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatically generated list of diagnostics
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
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
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,23 @@ | ||
import ClimaAtmos as CA | ||
|
||
# Read all the diagnostics we know how to compute, and print them into a | ||
# markdown table that is later compiled into the docs | ||
|
||
open("src/available_diagnostics.md", "w") do file | ||
|
||
write(file, "# Available diagnostics\n\n") | ||
|
||
write( | ||
file, | ||
"| Short name | Long name | Standard Name | Units | Comments |\n", | ||
) | ||
write(file, "|---|---|---|---|---|\n") | ||
|
||
for d in values(CA.ALL_DIAGNOSTICS) | ||
write(file, "| $(d.short_name) ") | ||
write(file, "| $(d.long_name) ") | ||
write(file, "| $(d.standard_name) ") | ||
write(file, "| $(d.units) ") | ||
write(file, "| $(d.comments)|\n") | ||
end | ||
end |
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