Merge pull request #3 from hfattahi/master

converting range mis-registration to meters in tops stack processor
LT1AB
Heresh Fattahi 2019-02-10 19:08:42 -08:00 committed by GitHub
commit 8969aec03a
1 changed files with 5 additions and 0 deletions

View File

@ -199,6 +199,11 @@ def main(iargs=None):
meanval = np.mean(val)
stdval = np.std(val)
# convert the estimations to meters
medianval = medianval * masterTop.bursts[0].rangePixelSize
meanval = meanval * masterTop.bursts[0].rangePixelSize
stdval = stdval * masterTop.bursts[0].rangePixelSize
hist, bins = np.histogram(val, 50, normed=1)
center = 0.5*(bins[:-1] + bins[1:])