Convert LTE EARFCN to frequency, or frequency to EARFCN.
Project description
earfcn
Convert downlink EARFCN to frequency and vice versa. EARFCN -> frequency converts to MHz. frequency -> EARFCN can take Hz or MHz as input.
Multiple EARFCNs map to the same downlink frequency, so freq2earfcn returns a list of possible (band, EARFCN) values.
Examples
from earfcn.convert import earfcn2freq, earfcn2band, freq2earfcn
earfcn2freq(3350) # 2680.0
earfcn2band(3350) # 7
freq2earfcn(2680) # [(7, 3350), (41, 41490)]
Command Line Tools
Installing this package also installs two command line utilities earfcn2freq
and freq2earfcn
.
Each takes one argument and outputs to stdout.
earfcn2freq 3350
2680.0
freq2earfcn 2680
band=7, earfcn=3350
band=41, earfcn=41490
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
earfcn-0.0.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
earfcn-0.0.3-py3-none-any.whl
(3.7 kB
view hashes)