In the scope of this master thesis an important contribution to the so called gravitational resonance spectroscopy from ultracold neutrons using Ramseys method of separated oscillating fields was given. The Ultra Cold Neutrons (UCNs), produced by the research reactor at the Institute Laue Langevin (ILL), travel over plane mirrors to a detector with spatial resolution. With this detector the state occupation and subsequently the energy of the neutrons can be investigated in the peV regime. In order to achieve precise transitions between the energy eigenstates, an important aspect is the knowledge of the Eigenstate distribution after each region. For this, several absorber configurations are investigated and furthermore the state occupation distribution is determined. The obtained values for the occupation probabilities for the first state are located in the range of 46.6 - 60.7 %, for the second state 38.2 - 44.3 %, for the third state 0.0 - 15.6 % and for the fourth state 0.0 - 13.7 %. In addition the correlation between etching-time of the detectors and the count of detected neutrons is analysed as well as the divergence of the neutron-beam coming from the beam-line.