Skip to content

Commit 4159f05

Browse files
author
Albert van Kiel
committed
new branch Readme
1 parent 200df73 commit 4159f05

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

README.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,30 @@ Creating a free and open source framework that contains the generic algorithms a
1515
* python 3.6
1616

1717

18-
## Documentation
19-
Will be added later.
18+
# Getting started
2019

21-
## How to use this library
20+
## Example filterbank files
21+
### Use one of the following filterbank files as an example:
22+
* <a href="https://git.dev.ti-more.net/uploads/-/system/personal_snippet/2/bc063035797e978034adfb6f2da75e70/pspm8.fil">8 bit</a>
23+
* <a href="https://git.dev.ti-more.net/uploads/-/system/personal_snippet/2/bc063035797e978034adfb6f2da75e70/pspm16.fil">16 bit</a>
24+
* <a href="https://git.dev.ti-more.net/uploads/-/system/personal_snippet/2/bc063035797e978034adfb6f2da75e70/pspm32.fil">32 bit</a>
2225

23-
### Read header data
26+
## Import
27+
> ```from filterbank.filterbank import *```
2428
25-
1. Specify the path to the filterbank file in the header.py file (line 124)
26-
2. Run the following command: `python header.py`
29+
# Tutorial
2730

28-
# Asteria
31+
### Create a filterbank object
32+
> ``` filterbank = Filterbank(<PATH TO FILTERBANK FILE>) ```
33+
34+
### Read the header from filterbank data
35+
> ``` filterbank.header ```
36+
37+
### Read filterbank file to 3d numpy array
38+
> ``` filterbank.read_filterbank ```
39+
40+
### Calculate the frequency range
41+
> ``` filterbank.setup_freqs ```
42+
43+
### Calculate the time range
44+
> ``` filterbank.setup_freqs ```

app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from filterbank.filterbank import *
2+
3+
filterbank = Filterbank('./pspm8.fil')
4+
5+
print(filterbank.header)

pspm8.fil

192 KB
Binary file not shown.

0 commit comments

Comments
 (0)