def test_io_import_fmi_pgm_geodata(variable, expected, tolerance):
    """Test the importer FMI pgm."""
    root_path = pysteps.rcparams.data_sources["fmi"]["root_path"]
    filename = os.path.join(
        root_path,
        "20160928",
        "201609281600_fmi.radar.composite.lowest_FIN_SUOMI1.pgm.gz",
    )
    metadata = pysteps.io.importers._import_fmi_pgm_metadata(filename, gzipped=True)
    geodata = pysteps.io.importers._import_fmi_pgm_geodata(metadata)

    smart_assert(geodata[variable], expected, tolerance)
Test the importer FMI pgm.
pysteps/tests/test_io_fmi_pgm.py