more experimentation

recording NOAA-18 in raw mode
This commit is contained in:
Paul Brewer KI6CQ 2014-11-04 03:26:29 +00:00
parent bc34995d68
commit adf46fbf3b
1 changed files with 22 additions and 9 deletions

View File

@ -24,15 +24,28 @@ def runForDuration(cmdline, duration):
print "OS Error: "+e.strerror print "OS Error: "+e.strerror
def recordSDR(freq, fname, duration): def recordSDR(fname, freq, duration):
sdrOffset = -50000 sdrOffset = -50000
sdrRate = 20800*11 sdrRate = 20800*11
sdrFreq = int(freq)+int(sdrOffset)
cmdline = ['rtl_sdr',\ cmdline = ['rtl_sdr',\
'-f', str(freq+sdrOffset),\ '-f', str(sdrFreq),\
'-s', str(sdrRate),\ '-s', str(sdrRate),\
fname+'.sdr'] fname+'.sdr']
runForDuration(cmdline, duration) runForDuration(cmdline, duration)
def rawFM(fname, freq, duration):
sample = 20800
cmdline = ['rtl_fm',\
'-f',str(freq),\
'-M','raw',\
'-s',str(sample),\
'-g', '47',\
'-F','9',\
# '-A','fast',\
'-E','dc',\
fname+'M.raw']
runForDuration(cmdline, duration)
def decode(fname): def decode(fname):
# cmdline = ['atpdec',fname+'.wav'] # cmdline = ['atpdec',fname+'.wav']
@ -54,22 +67,22 @@ def spectrum(fname,freq,duration):
satellites = [\ satellites = [\
{'name': 'NOAA-18',\ {'name': 'NOAA-18',\
'freq': 137912500,\ 'freq': 137912500,\
'postProcess': decode },\ 'listen': rawFM },\
{'name': 'NOAA-19',\ {'name': 'NOAA-19',\
'freq': 137100000,\ 'freq': 137100000,\
'postProcess': decode },\ 'postProcess': decode },\
{'name': 'NOAA-15',\ {'name': 'NOAA-15',\
'freq': 137620000,\ 'freq': 137620000,\
'postProcess': decode },\ 'postProcess': decode },\
{'name': 'OSCAR-7',\ # {'name': 'OSCAR-7',\
'freq': 145950000, \ # 'freq': 145950000, \
'listen': recordSDR },\ # 'listen': recordSDR },\
{'name': 'FUNCUBE-1',\ {'name': 'FUNCUBE-1',\
'freq': 145950000, \ 'freq': 145950000, \
'listen': recordSDR },\ 'listen': recordSDR },\
{'name': 'OSCAR-29', # {'name': 'OSCAR-29',
'freq': 435850000, \ # 'freq': 435850000, \
'listen': recordSDR },\ # 'listen': recordSDR },\
# {'name': 'OSCAR-50',\ # {'name': 'OSCAR-50',\
# 'freq': 436795000,\ # 'freq': 436795000,\
# },\ # },\