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