Offset was not applied when star did not have distance. This bug happened because of a return before the offset calculation.
Typo in the name of variable could cause bug "data1" -> "datas1" in plot_occ_map() when plotting atmosphere.
Orientation of ksi and eta in the projected sky plane. Before the function returned a negative value and then was added to the observer projection. Now it returns the corrected value which is subtracted from the observer projection.
Corrected: