Optical and infrared astronomy