pysteps.utils.reprojection.reproject_grids#
- pysteps.utils.reprojection.reproject_grids(src_array, dst_array, metadata_src, metadata_dst)#
Reproject precipitation fields to the domain of another precipitation field.
- Parameters:
src_array (array-like) – Three-dimensional array of shape (t, x, y) containing a time series of precipitation fields. These precipitation fields will be reprojected.
dst_array (array-like) – Array containing a precipitation field or a time series of precipitation fields. The src_array will be reprojected to the domain of dst_array.
metadata_src (dict) – Metadata dictionary containing the projection, x- and ypixelsize, x1 and y2 attributes of the src_array as described in the documentation of
pysteps.io.importers
.metadata_dst (dict) – Metadata dictionary containing the projection, x- and ypixelsize, x1 and y2 attributes of the dst_array.
- Returns:
r_rprj (array-like) – Three-dimensional array of shape (t, x, y) containing the precipitation fields of src_array, but reprojected to the domain of dst_array.
metadata (dict) – Metadata dictionary containing the projection, x- and ypixelsize, x1 and y2 attributes of the reprojected src_array.