dirty code for longitudinal wavenumbers