Skip to content

Commit

Permalink
Merge pull request #507 from happycube/chad062820
Browse files Browse the repository at this point in the history
AGC: filter out lines with crazy sync failure
  • Loading branch information
happycube authored Jun 28, 2020
2 parents 2264ef5 + 1fa910f commit 1074f93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lddecode/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2609,8 +2609,9 @@ def detectLevels(self, field):
thislinelen = field.linelocs[l + field.lineoffset] - field.linelocs[l + field.lineoffset - 1]
adj = field.rf.linelen / thislinelen

hlevels.append(np.median(field.data['video']['demod_05'][lsa]) / adj)
hlevels.append(np.median(field.data['video']['demod_05'][lsb]) / adj)
if inrange(adj, .98, 1.02):
hlevels.append(np.median(field.data['video']['demod_05'][lsa]) / adj)
hlevels.append(np.median(field.data['video']['demod_05'][lsb]) / adj)

#print(l, thislinelen, adj, hlevels[-2:])

Expand Down

0 comments on commit 1074f93

Please sign in to comment.