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

Add Var.integrate* functions #76

Merged
merged 5 commits into from
Sep 6, 2024
Merged

Add Var.integrate* functions #76

merged 5 commits into from
Sep 6, 2024

Commits on Sep 5, 2024

  1. Uncomment tests

    ph-kev committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    9cea8db View commit details
    Browse the repository at this point in the history
  2. Add new author

    ph-kev committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    5427fb6 View commit details
    Browse the repository at this point in the history
  3. Update _reduce_over to take in args and kwargs

    The function `_reduce_over` has `args` and `kwargs` as inputs, but never
    use them. This commit changes `_reduce_over` so that `args` and `kwargs`
    are passed to `squeeze` in `_reduce_over`.
    ph-kev committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    8740671 View commit details
    Browse the repository at this point in the history
  4. Add update_long_name_generic!

    The commit removes `update_long_name_average!` and replace it with
    `update_long_name_generic!` so that it can be used by any other
    functions that do some kind of reduction on data.
    ph-kev committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    a4d4dd9 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Add Var.integrate_* functions

    This commit adds Var.integrate_lonlat, Var.integrate_lon, and
    Var.integrate_lat for integrating `OutputVar` with respect to longitude,
    latitude, or both. Additionally, this commit adds a Numerics module to
    decouple the numerical implementation of integration and the
    construction of an OutputVar. The numerical implementation is
    rectangular integration using the midpoint rule when the points are
    equispaced which assume each point correspond to a midpoint of a cell
    and using the left endpoint rule when the points are not equispaced.
    ph-kev committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c125e84 View commit details
    Browse the repository at this point in the history