A method of calibrating CCD camera based on 1-D linear diffraction gratings is presented. With the beam splitting character of the diffraction grating, a series of diffraction sub-spots are formed in the focal plane, different sets of measurement data of the sub-spot peak intensity are syncretized and the calibration of infrared CCD cameras opto-electronic characteristic is completed by fitting the measurement data and the theoretical data. According to the parameters of the laser source and the focal optical system available in the laboratory, a series of 1-D linear diffraction gratings are designed and an infrared CCD camera with an unknown character is calibrated. The presented method has higher light available ratio, and the syncretization of multiple sets of measurement data ex