diff --git a/mlair/helpers/geofunctions.py b/mlair/helpers/geofunctions.py index d1a3b71236763e17b4ed5bf29d88961c29030569..6bf0af98017cd97f9e3856feb40a6ecd63ae9d18 100644 --- a/mlair/helpers/geofunctions.py +++ b/mlair/helpers/geofunctions.py @@ -186,8 +186,6 @@ class VectorRotate: :type data: :param interpolation_dim: Dimension name of staged dimension :type interpolation_dim: - :param constant_values: - :type constant_values: :return: :rtype: """ @@ -204,8 +202,8 @@ class VectorRotate: idx_to_backward_transpose = [list(orig_dims).index(i) for i in new_dims] # pad data i) left, ii) right for interpolation (mean between two staged values) - d1 = data.pad({interpolation_dim: (1, 0)}, constant_values=constant_values,) - d2 = data.pad({interpolation_dim: (0, 1)}, constant_values=constant_values,) + d1 = data.pad({interpolation_dim: (1, 0)}, constant_values=constant_values) + d2 = data.pad({interpolation_dim: (0, 1)}, constant_values=constant_values) d = (d1.data + d2.data) * .5 # drop padding boundary @@ -315,9 +313,9 @@ class VectorRotateLambertConformal2latlon(VectorRotate): """ Rotate u from Lambert conformal to geographic lat/lon. - :param ugrd: + :param ugrd: Wind's u-component on grid cell center in Lambert conformal :type ugrd: - :param vgrd: + :param vgrd: Wind's v-component on grid cell center in Lambert conformal :type vgrd: :return: :rtype: @@ -328,9 +326,9 @@ class VectorRotateLambertConformal2latlon(VectorRotate): """ Rotate v from Lambert conformal to geographic lat/lon. - :param ugrd: + :param ugrd: Wind's u-component on grid cell center in Lambert conformal :type ugrd: - :param vgrd: + :param vgrd: Wind's v-component on grid cell center in Lambert conformal :type vgrd: :return: :rtype: @@ -341,9 +339,9 @@ class VectorRotateLambertConformal2latlon(VectorRotate): """ Rotate u, v from Lambert conformal to u, v in geographic lat/lon. - :param ugrd: + :param ugrd: Wind's u-component on grid cell center in Lambert conformal :type ugrd: - :param vgrd: + :param vgrd: Wind's v-component on grid cell center in Lambert conformal :type vgrd: :return: :rtype: @@ -354,15 +352,16 @@ class VectorRotateLambertConformal2latlon(VectorRotate): """ First interpolate u, v from staged grid cells to grid center, than rotate u, v from Lambert conformal to u, v in geographic lat/lon. - :param ustg: wind's u-component on staged ("half") grid in Lambert conformal + + :param ustg: Wind's u-component on staged ("half") grid in Lambert conformal :type ustg: - :param vstg: wind's v-component on staged ("half") grid in Lambert conformal + :param vstg: Wind's v-component on staged ("half") grid in Lambert conformal :type vstg: :param ustg_dim: Dimension name of staged u-component :type ustg_dim: :param vstg_dim: Dimension name of staged v-component :type vstg_dim: - :return: u, v on grid center in geographic lat/lon direction + :return: u, v on grid cell center in geographic lat/lon direction :rtype: """ ugrd = self.interpolate_to_grid_center(ustg, ustg_dim) @@ -373,9 +372,9 @@ class VectorRotateLambertConformal2latlon(VectorRotate): """ Convert u, v from Lambert conformal to wdspd, wdir in geographic lat/lon. - :param ugrd: wind's u-component on grid center in Lambert conformal + :param ugrd: Wind's u-component on grid center in Lambert conformal :type ugrd: - :param vgrd: wind's v-component on grid center in Lambert conformal + :param vgrd: Wind's v-component on grid center in Lambert conformal :type vgrd: :return: :rtype: @@ -388,9 +387,9 @@ class VectorRotateLambertConformal2latlon(VectorRotate): First interpolate u, v from staged grid cells to grid center, than rotate u, v from Lambert conformal to wdspd, wdir in geographic lat/lon. - :param ustg: wind's u-component on staged ("half") grid in Lambert conformal + :param ustg: Wind's u-component on staged ("half") grid in Lambert conformal :type ustg: - :param vstg: wind's v-component on staged ("half") grid in Lambert conformal + :param vstg: Wind's v-component on staged ("half") grid in Lambert conformal :type vstg: :param ustg_dim: Dimension name of staged u-component :type ustg_dim: