Removal of atmospheric effects on a pixel by pixel basis from the thermal infrared data from instruments on satellites. The Advanced Very High Resolution Radiometer (AVHRR)