distance_from_a_to_b#

rojak.atmosphere.regions.distance_from_a_to_b(from_feature, to_feature, distance_measure, num_dim=3, core_dims=None, sampling=None)[source]#

Distance from feature A to feature B

For example, to find the distance of a contrail forming region to a turbulent region, then from_region would be a boolean array of where the contrail region is and to_region would be a boolean array of where turbulence is present.

Parameters:
Returns:

Array of the closest distance from each point in feature A to feature B

Return type:

DataArray