Observations of the extinction and excitation of the molecular hydrogen emission in Orion