# EDF.jl package: Finding sample rate of a signal

**URL:** https://discourse.julialang.org/t/edf-jl-package-finding-sample-rate-of-a-signal/113610
**Category:** General Usage
**Tags:** question, package
**Created:** [April 29, 2024, 12:40pm UTC](https://discourse.julialang.org/t/edf-jl-package-finding-sample-rate-of-a-signal/113610 "2024-04-29T12:40:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Santiago\_Lopez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/santiago_lopez/32/46298_2.png) [@Santiago\_Lopez](https://discourse.julialang.org/u/Santiago_Lopez)
#### Post date: [April 29, 2024, 12:40pm UTC](https://discourse.julialang.org/t/edf-jl-package-finding-sample-rate-of-a-signal/113610/1 "2024-04-29T12:40:06Z")

</div>

In other languages (e.g. Python and R), packages for reading EDF files typically include the capacity to extract the sampling rate of a signal. This doesn’t seem to be possible in the [EDF.jl package](https://docs.juliahub.com/EDF/a8X2Z/0.7.4/). My two questions are: a. am I missing something in the package’s documentation? If not, b. what other ways are there to infer the sampling rate of a signal?

_Note_. Reading the EDF does not produce a _Time_ vector (from such vector one could infer the sampling rate).

---

<div class="post-metadata">

### Author: ![mkoculak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkoculak/32/28310_2.png) [@mkoculak](https://discourse.julialang.org/u/mkoculak)
#### Post date: [April 29, 2024, 1:19pm UTC](https://discourse.julialang.org/t/edf-jl-package-finding-sample-rate-of-a-signal/113610/2 "2024-04-29T13:19:39Z")

</div>

You have to calculate the sample rate on your own, I guess - you have `seconds_per_record` in the `FileHeader` and `samples_per_record` in the header of each signal, so dividing the latter by the former will give you samples per second.
