def test_to_rainrate(R, metadata, expected):
    """Test the to_rainrate."""
    assert_array_almost_equal(conversion.to_rainrate(R, metadata)[0], expected)
Test the to_rainrate.
pysteps/tests/test_utils_conversion.py