He was a member of the International Astronomical Union and at one time the president of its historical commission , a member of the Royal Netherlands Academy of Arts and Sciences and for three years he sat on its council , a foreign member of the Royal Danish Academy , and a member of the German Academia Leopoldina .