xoa.grid#
This module provides 1d to nD grid utilities to get information or perform operations on a grid.
For operations between different grids, please see xoa.regrid.
Functions
|
Apply an operator on data array or dataset dimensions |
|
|
|
Compute depth from layer thickness in a dataset |
|
Compute z from layer thickness in a dataset |
|
Compute the difference between consecutive grid points |
|
Convert a data array or dataset to a horizontal grid dictionary |
|
Integrate layer thicknesses to compute depths |
|
Integrate layer thicknesses to compute z, which is positive up |
|
Interpolate the data array at mid grid points along the dim dimension(s) |
|
Compute the horizontal grid resolution at the grid points |
|
Get or compute the layer thicknesses |
|
Search a dataset for the layer thicknesses and what is needed to integrate them |
|
Get the geographic extent of the strips along the edges of a grid |
|
Interpolate and extrapolate a data array at grid edges along the dim dimension(s) |
|
Get the fingerprint of a horizontal grid |
|
Get 2D longitudes and latitudes with (y, x) dimensions |
Compute the median horizontal grid resolution in degrees |
|
|
Compute the horizontal grid resolution along x and y |
|
Derivative along a dimension with respect to a coordinate, at the grid centers |
|
Apply a function along a dimension that is kept in place |
|
Pad data and coordinates along dimensions |
|
Shift the grid by an half grid cell along specified dimensions and directions |
|
Convert the curvilinear coordinates of array/dataset to rectangular axis coordinates |
|
Integrate along the vertical, accounting for the layer thicknesses |
|
Average along the vertical, weighted by the layer thicknesses |
|
Compute layer thicknesses from the z or depth of the layers |
Classes
|
Integration ref types for |
|
Shift directions for |