UAE renewable energy firm Masdar bought Spanish utility Iberdrola's 49% stake in its 476 megawatts (MW) offshore wind farm in German waters in the Baltic Sea.