split polar file in separated directory for each mode.