Commit c7dd1b51 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f9ad4a19
#!/usr/bin/env python
# test dl_nr_arfcn -> ssb_nr_arfcn calculation
import nrarfcn as nr
def default_ssb_nr_arfcn(dl_nr_arfcn):
f = nr.get_frequency(nrarfcn=dl_nr_arfcn)
gscn = nr.get_gscn_by_frequency(f)
if nr.get_frequency_by_gscn(gscn) > f:
gscn -= 1
fg = nr.get_frequency_by_gscn(gscn)
fg_arfcn = nr.get_nrarfcn(fg)
return fg_arfcn
def _(dl_nr_arfcn):
ssb_nr_arfcn = default_ssb_nr_arfcn(dl_nr_arfcn)
f = nr.get_frequency(dl_nr_arfcn)
fssb = nr.get_frequency(ssb_nr_arfcn)
print('%d -> %d\t; %g MHz\t-> %g Mhz' % (dl_nr_arfcn, ssb_nr_arfcn, f, fssb))
print('# dl_nr_arfcn -> ssb_nr_arfcn')
_(633300)
_(632628)
_(630336)
_(627300)
_(624288)
_(532000)
_(530890)
_(526000)
_(524650)
_(437000)
_(176300)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment