Skip to content

Zonal or area averaging w/o rasterizing #9

@adamkemberling

Description

@adamkemberling

The functionality of getting a regional average might exist in the package already, and/or be accomplishable via rasterizing then using crop.

But for the sake of consistency with the team producing FVCOM, this is the suggested methodology I received from Dr. Wang via email correspondence on the topic:

Regarding the calculation of the regional mean using FVCOM results, the area of each triangle needs to be considered because the resolution is different spatially. For example, here is the process to calculate the regional mean bottom temperature for the GOM3 domain:

  1. Interpolate the bottom temperature from node to cell (the function "f_interp_node2cell.m" in matFVCOM toolbox).
  2. Calculate the area of each triangle (the function "calc_area.m" in matFVCOM toolbox).
  3. Compute the sum of the product of temperature and area for all the triangles and divide it by the total area of GOM3 domain. This gives the regional mean bottom temperature for the GOM3 domain.

For calculating the vertical mean, the function "f_mean_column.m" in matFVCOM can do that.

This is the matFVCOM toolbox mentioned:
https://github.com/SiqiLiOcean/matFVCOM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions