Closed malmans2 closed 2 years ago
Cool, thanks for the review! I'll merge so we can start using/testing it. (I'll probably add some quick test as soon as I can) The structure is quite lightweight - it should be easy to add more algorithms in the future.
This is very helpful and neat @malmans2 Thanks!
I'm doing a bit of validation this week, so I've added a class to extract sections from model. I've added 3 functions. All of them only use the domain_cfg to find indexes corresponding to the observations. That indexes can be used with
isel
to extract data from the model. Functions are:nearest_neighbor
- usesxoak
under the hoodzigzag_section
- section following the model gridvelocity_points_along_zigzag_section
- index needed to extract velocities and compute accurate volume fluxes (i.e., u and v points laying on a zigzag path along the f-grid)I've adapted from other scripts, so make sure that everything is working as expected because we don't have tests right now. Example usage: