Flexible optical spectrum analyzer for DWDM, CWDM and hybrid network testing and an optical channel analyzer for a wide range of WDM applications.