he served for several years at the royal botanic garden of madrid