Skip to main content

A 5G NR-ARFCN calculator

Project description

5G NR-ARFCN calculator

PyPi Version Downloads/Month Package Tests Documentation Status

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. 3GPP Rel-17 remains the default table release, and Rel-18 / Rel-19 can be selected with the optional release_3gpp argument.

It follows 3GPP TS 38.104: v17.6.0 by default, with v18.13.0 and v19.4.0 available when requested.

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)

>>> nr.get_frequency_range('n110', release_3gpp=19)
(1432, 1435)

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

nrarfcn-2.5.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nrarfcn-2.5.0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file nrarfcn-2.5.0.tar.gz.

File metadata

  • Download URL: nrarfcn-2.5.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for nrarfcn-2.5.0.tar.gz
Algorithm Hash digest
SHA256 c2131d1e66e69b1ae4816f2965afe767598860f9ba31d453d50bfdd19b175820
MD5 e003652bcd942f1464db8642a2e40860
BLAKE2b-256 e1bbca949d66bc75ef86ac501e29a8c63828b000e8587c9243d8fa936eb95923

See more details on using hashes here.

File details

Details for the file nrarfcn-2.5.0-py3-none-any.whl.

File metadata

  • Download URL: nrarfcn-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for nrarfcn-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 144585f7772148fdc12ec10856719b290fe013764b3c481306fe27eb5367e2ed
MD5 b9fa0224042a5a08e1c8468eab27077d
BLAKE2b-256 11e31ed91fcf4169ac7d9d5ea741e536e047a87229237dff1ea084f27ec89b60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page