function: translate earth coord in pixel coord

translate the earth coordinates in pixel coordinates
that only consider the area where oil is simulated