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