Dateline crossing coordinates rearrangement

(Formerly done in the loading functions)