With fixing #16, the reference longitude is reset when the coordinate system is changed (between Carrington and Stonyhurst). An enhancement would be to take the selected reference longitude and convert it to the newly selected coordinate system, using solarmach's newly added functions car2sto_sun and sto2car_sun.