is_end is either nspec for fluxes, or ntubes when calcualting |phi|^2
divide the input moment by the magnetic field strength to account for Jacobian in flux-surface average transform the B-modified input moment from y to ky space swap from all ky and kx >= 0 to all kx and ky >= 0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| complex, | intent(in), | dimension(:, :, -nzgrid:, :) | :: | moment | ||
| complex, | intent(out), | dimension(:, :, -nzgrid:, :) | :: | moment_ky | ||
| real, | intent(in), | dimension(:, -nzgrid:) | :: | flxfac |