def headers_are_same_geogrid(header1, header2):
    """
    Given two headers, verify that they are in the same projection with the
    same geotransform and the same fraction sizes
    """
    return header1.spatialref.IsSame(header2.spatialref) and \
           (header1.geot == header2.geot) and \
           header1.width == header2.width and \
           header1.height == header2.height and \
           header1.frac_width == header2.frac_width and \
           header1.frac_height == header2.frac_height