Skip to content

Commit

Permalink
Add support for new filenams/type
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Jan 18, 2015
1 parent 0a715f3 commit 43d35d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demod.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def mynormalize(v):
print "final phase",phase

# Nice output format
p=re.compile('(.*)-(\d+)-f(\d+)')
p=re.compile('(.*?)-(\d+)(?:-o[-+]\d+)?-f(\d+)')
m=p.match(basename)
if(m):
rawfile=m.group(1)
Expand Down
4 changes: 2 additions & 2 deletions iridium-parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ def __init__(self,line):
ts+=float(self.timestamp)/1000
self.globaltime=ts
return
mm=re.match("i-(\d+(?:\.\d+)?)-[vbsr]1.([a-z])([a-z])",self.filename)
mm=re.match("i-(\d+(?:\.\d+)?)-[vbsrtl]1.([a-z])([a-z])",self.filename)
if mm:
b26=(ord(mm.group(2))-ord('a'))*26+ ord(mm.group(3))-ord('a')
self.b26=b26
ts=float(mm.group(1))+float(self.timestamp)/1000+b26*600
self.globaltime=ts
return
mm=re.match("i-(\d+(?:\.\d+)?)-[vbsr]1$",self.filename)
mm=re.match("i-(\d+(?:\.\d+)?)-[vbsrtl]1(?:-o[+-]\d+)?$",self.filename)
if mm:
ts=float(mm.group(1))+float(self.timestamp)/1000
self.globaltime=ts
Expand Down
4 changes: 4 additions & 0 deletions tools/view_baudline
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ if [ -z "$r" ] ; then
f=1626354000
r=500000
;;
*-t*)
f=1626000000
r=1000000
;;
*)
echo "No idea... " >&2
f=0
Expand Down

0 comments on commit 43d35d9

Please sign in to comment.