For the first time in Russia, using ground based measurements of direct solar infrared radiation, we derived data on ozone content in different layers of the atmosphere. The measurements were conducted with the help of a Bruker IFS 125HR Fourier spectrometer in 2009-2012 in Petergof, which is 30 km west of the center of St. Petersburg. The errors in determining the ozone content by this method in the troposphere (0-12 km), in the stratosphere (12-50 km), in the layers of 10-20 and 20-50 km, and in the layers of 12-18, 18-25, and 25-50 km were ~4, 3, 3-5, and 4-7% (taking into account the instrumental and method ological errors, as well as the errors in specifying the temperature profile), respectively. The seasonal variation of tropospheric ozone content in the layer of 12-18 km is characterized by a clearly expressed maximum in March and a minimum in November, with amplitudes of 30 and 40%, respectively. For the layer of 18-25 km, the maximum and minimum are reached in the winter-spring period and late summer, respectively; the amplitude of the seasonal variation is ~20%. The amplitude of the annual variation in ozone content in the layer of 25-50 km is around 30%, with a maximum close to the summer solstice and a minimum close to the winter solstice. Over the three years of observations, the growth in the ozone content in this layer was ~10% per year of its value averaged over the time period. Comparisons of ground based measurements with satellite measurements (by the IASI instrument) of tropospheric ozone revealed a discrepancy of (3.4 ± 17)% for both ensembles. The correlation between the two ensembles is 0.76-0.84 (depending on the season). Comparisons between ground based and satellite measurements (by the MLS instrument) of stratospheric ozone revealed no systematic discrepancies of the two ensembles. The rms errors were 13, 6, and 5% for the layers of 10-20, 20-50, and 10-50 km, respectively; the coefficients of correlations between the two types of measurements were 0.82-0.94.