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 details)
Built Distribution
File details
Details for the file earfcn-0.0.3.tar.gz
.
File metadata
- Download URL: earfcn-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76e52b89266053202a2fc4585fb6e641c37026dfa38ea62ce8d17fc292154bfe |
|
MD5 | 91a02f99d15087186724fc0ecf2f9e2e |
|
BLAKE2b-256 | 4e8dfc026fff77fc79c95df3d3e9fafaf26910f127baa170e39e10c208dc337c |
File details
Details for the file earfcn-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: earfcn-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed026218d39c6a5ee648a7ba106404602ec583c6d36827498134ff394026bf81 |
|
MD5 | 5af19b8f1ec97c85c1d90f19d6afc94d |
|
BLAKE2b-256 | 4460da998dc18c740dd468c2be5933166731249db1c985ba359466a95f86b569 |