# Converting time domain responses to frequency domain

**URL:** <https://forums.nlr.gov/t/converting-time-domain-responses-to-frequency-domain/2737>\
**Category:** Wind & Water\
**Created:** [February 11, 2022, 9:09am UTC](https://forums.nlr.gov/t/converting-time-domain-responses-to-frequency-domain/2737 "2022-02-11T09:09:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jason.Jonkman](https://dub1.discourse-cdn.com/nrel/user_avatar/forums.nlr.gov/jason.jonkman/32/3086_2.png) [@Jason.Jonkman](https://forums.nlr.gov/u/Jason.Jonkman)\
**Post date:** [February 11, 2022, 1:25pm UTC](https://forums.nlr.gov/t/converting-time-domain-responses-to-frequency-domain/2737/2 "2022-02-11T13:25:36Z")

</div>

Dear @Iqbal.Mohammed,

I see a couple problems:

- Normally the frequency domain is shown as a power spectral density (PSD) rather than just a raw FFT
- Your frequency discretization is not computed correctly

You can use my script that calculates the PSD directly via FFT without windowing (but with optional binning to smooth the PSD). This script, _Jason\_PSD.m_ can be found in the following forum post: [User defined spectrum from routine UserWaveSpctrm in HydroDYn - #7 by Jason.Jonkman](http://forums.nlr.gov/t/user-defined-spectrum-from-routine-userwavespctrm-in-hydrodyn/1988/7).

Best regards,

---

_[View the full topic](https://forums.nlr.gov/t/converting-time-domain-responses-to-frequency-domain/2737)._
