def transform_dict(img):
    """
    Take a raster data source and return a dictionary with geotranform values
    and keys that make sense.

    Parameters
    ----------
    img : gdal.datasource
        The image datasource from which the GeoTransform will be retrieved.

    Returns
    -------
    dict
        A dict with the geotransform values labeled.
    """
    geotrans = img.GetGeoTransform()
    ret_dict = {
            'originX':   geotrans[0],
            'pixWidth':  geotrans[1],
            'rotation1': geotrans[2],
            'originY':   geotrans[3],
            'rotation2': geotrans[4],
            'pixHeight': geotrans[5],
        }
    return ret_dict