LHF means long hood front which means the cabin of the loco is in the opposite direction of travel. SHF means short hood front which means the cabin is in the front of the diesel loco. Consider a WDP4. Sometimes the loco has its cabin side coupled to the train. That is LHF mode.