Skip to content

stretch_transformation

T = TypeVar('T', bound=(Quantity | np.ndarray)) module-attribute

direct_transform(*, lon, lat, stretch_factor, lon_target, lat_target, np)

The direct_transform subroutine from fv_grid_utils.F90. Takes in latitude and longitude in radians. Shrinks tile 6 by stretch factor in area to increase resolution locally. Then performs translation of all tiles so that the now-smaller tile 6 is centered on lon_target, lat_target.

Parameters:

Name Type Description Default
lon T

longitude in radians

required
lat T

latitude in radians

required
stretch_factor float

stretch_factor (e.g. 3.0 means that the resolution on tile 6 becomes 3 times as fine)

required
lon_target float

in degrees (from namelist)

required
lat_target float

in degrees (from namelist)

required
np

numpy or cupy module

required

Returns:

Type Description
(lon_transform, lat_transform)

in radians