def read_precipitation_data(file_path):
    """Read and process precipitation data from a file."""
    precip, _, metadata = io.import_mch_gif(
        file_path, product="AQC", unit="mm", accutime=5.0
    )
    precip, metadata = to_rainrate(precip, metadata)
    precip, metadata = square_domain(precip, metadata, "crop")
    return precip, metadata
Read and process precipitation data from a file.
examples/rainfarm_downscale.py