creating a mapcube solar derotation function