A 5G NR-ARFCN calculator
Project description
5G NR-ARFCN calculator
nrarfcn
: a 5G NR-ARFCN calculator, as a Python package.
This is a Python package that calculates the frequency for a given NR-ARFCN, the NR-ARFCN for a given frequency, and related NR band information, according to 3GPP Rel-17.
It follows 3GPP TS 38.104 v17.6.0: "5G; NR; Base Station (BS) radio transmission and reception".
Documentation
nrarfcn
is documented on: nrarfcn.rtfd.io.
Installation
pip install nrarfcn
Usage
>>> import nrarfcn as nr
>>> nr.get_frequency(620000)
3300.0
>>> nr.get_nrarfcn(27500.0)
2070832
>>> nr.get_bands_by_frequency(1850.0)
['n2', 'n3', 'n25']
>>> nr.get_bands_by_nrarfcn(2564083)
['n263']
>>> nr.get_duplex_mode('n71')
'FDD'
>>> nr.get_nrarfcn_range('n25', direction='ul')
(370000, 383000)
>>> nr.get_frequency_range('n100', direction='dl')
(919.4, 925)
>>> nr.get_frequency_by_gscn(2156)
862.85
>>> nr.get_gscn_by_frequency(4405.440)
8475
>>> nr.get_gscn_range('n92')
(3584, 3787)
Contributing
Every contribution is welcome. Make any requests, raise any issues, create pull requests, or directly contact me on github.com/blevic/nrarfcn. I'll be happy to help.
Author
By the way, hi there! I'm Breno. Follow me on github: @blevic.
License
This software is licensed under the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nrarfcn-2.4.0.tar.gz
.
File metadata
- Download URL: nrarfcn-2.4.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566199aa608cb56e228300a27f83377a7d5f8501ca9cd250425a691405838052 |
|
MD5 | 530a5036560f8630d4ebe313833fa5f7 |
|
BLAKE2b-256 | b50c005349e6c363984c4de3638ff9dc8513558a3e6bf47257bb22e4debae387 |
File details
Details for the file nrarfcn-2.4.0-py3-none-any.whl
.
File metadata
- Download URL: nrarfcn-2.4.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d31f0b535f3f0ff1efbad1af99128189e2248d5df0083713b2b0d67eaa74de |
|
MD5 | 200eaf31ac8924babe19bd0e6583e0eb |
|
BLAKE2b-256 | 605dbf010e0c0beb5e43e0758b22cacab8a502f9f0f024ffe0df5dd3294af711 |