Skip to content
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

Export coriolis, unscale diagnostics at finish, add! callbacks directly to model too #494

Merged
merged 5 commits into from
Mar 19, 2024

Conversation

milankl
Copy link
Member

@milankl milankl commented Mar 19, 2024

Changes arose from #400

@milankl milankl added the user interface 🎹 How users use our user interface label Mar 19, 2024
@milankl
Copy link
Member Author

milankl commented Mar 19, 2024

@miniufo changes now in #main

@milankl milankl merged commit 28373fa into main Mar 19, 2024
3 checks passed
@miniufo
Copy link
Contributor

miniufo commented Mar 20, 2024

I should update my version. Also thinking other variables such as $\cos\phi$ and $\sin\phi$. I need these too when calculating the absolute angular momentum. Is there any easy way to do this like the exported coriolis function?

@milankl
Copy link
Member Author

milankl commented Mar 20, 2024

They are all in the RingGrids module, which is also documented here https://speedyweather.github.io/SpeedyWeather.jl/dev/ringgrids/ in short, you do RingGrids.get_*(::AbstractGrid) with * one of the following

julia> grid = rand(OctahedralGaussianGrid,4);

julia> RingGrids.get_

get_colat               get_colatlons           get_lat
get_latd                get_latdlonds           get_latlons
get_lon                 get_lond                get_nlat
get_nlat_half           get_nlon                get_nlon_max
get_nlon_per_ring       get_nlons               get_npoints
get_quadrature_weights  get_resolution          get_solid_angles
get_truncation
julia> RingGrids.get_lat(grid)
8-element Vector{Float64}:
  1.2880392632011
  0.921759746334117
  0.5533407873047431
  0.18447924790276526
 -0.18447924790276526
 -0.5533407873047431
 -0.921759746334117
 -1.2880392632011

with lat in radians, colat in radians, d means degree, s means for every grid point and not just on the zonal rings or meridians.

@milankl milankl deleted the mk/coriolis branch March 20, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user interface 🎹 How users use our user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants