# Using stdisp to calculate the power level for a shape pulse

1. Get the calibrated 90° square (hard) pulse length and power level in hands,
2. use stdisp to open the shape file you want, (and find the shape pulse length, integral factor (IF), and the total rotation angle from the file contents.)
3. click analysis → integrate shape → input shape pulse length, rotation angle, calibrated 90 hard pulse length, and enter,
4. [for an adiabatic shape pulse, click analysis → integrate adiabatic shape → input shape pulse length, calibrated 90 hard pulse length, and enter,]
5. the results will show the change of power Δ, so shape pulse power level will be set to (Δ + hard pulse power level).

calcplen and calcpowlev can be used to calculate hard (square) pulse length at different power level, or power level at different pulse length, certainly with the calibrated 90° square (hard) pulse length and the power level in hands.

============================================================

In order to calculate the power level for an non-adiabatic shape pulse:

Using the equation: dB2 – dB1 = Δ = 20*log((pw2*IF)/pw1)         —unit(dB)

pw2 – shape pulse length; pw1 – 90° hard pulse length; IF – integral factor = area of shape pulse/area of square pulse with the same length

[ if it’s 180° rotation with that shape pulse length, it’s power level will be:

dB2 – dB1 = Δ = 20*log(pw2*IF/(2*pw1))

= 20*log(pw2*IF/pw1) + 20log(1/2)

= 20*log(pw2*IF/pw1) – 20*0.3

= 20*log(pw2*IF/pw1) – 6          — unit (dB)   ]

In order to calculate the power level for an adiabatic shape pulse:

[use the same equation as the above for inversion pulses and quality /adiabaticity factor Q=5; for decoupling pulses and Q=3, use:

dB2-dB1 = Δ = 20*log(pw2*IF*(5/3)1/2/(2*pw1))                                       — unit (dB)   ]

============================================================

Hongwei edited on 10/05/2021