From 4ded40f31ea597906b44719b20cc781ca1a678d0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 22 Jul 2015 10:25:47 +0200 Subject: Option eingefuegt, nur Phasenmodulation zu beachten --- ROM.lpr | 22 ++++++++++-- ROM.lps | 117 +++++++++++++++++++++++++++++++++------------------------------- 2 files changed, 80 insertions(+), 59 deletions(-) diff --git a/ROM.lpr b/ROM.lpr index f7ca02c..ae493b2 100644 --- a/ROM.lpr +++ b/ROM.lpr @@ -15,7 +15,7 @@ uses var inPulsO,inPuls,refPulsO,refPuls,surTraj,cRefPuls: tExtPointArray; smooth,betaSmooth: longint; tmax,wmax,absShift,betaBound: extended; - force,fourier: boolean; + force,fourier,mitAmplMod: boolean; f: textfile; s,t,u,lpicIn,rohIn,rohRef,outIn,outRef,outRefC,outSur: string; @@ -34,6 +34,7 @@ begin absShift:=-1e9; betaBound:=0.95; fourier:=false; + mitAmplMod:=true; lpicIn:=''; rohIn:=''; @@ -71,6 +72,15 @@ begin force:=false; continue; end; + if s='mit Amplitudenmodulation' then begin + mitAmplMod:=true; + continue; + end; + if (s='ohne Amplitudenmodulation') or + (s='nur Phasenmodulation') then begin + mitAmplMod:=false; + continue; + end; if pos('Glätte:',s)=1 then begin delete(s,1,pos(':',s)); s:=trim(s); @@ -202,8 +212,14 @@ begin interpoliere(refPulsO); writeln(stderr,' fertig'); flip(inPulsO); - integrate(inPulsO,inPuls); - integrate(refPulsO,refPuls); + if mitAmplMod then begin + integrate(inPulsO,inPuls); + integrate(refPulsO,refPuls); + end + else begin + copyArray(inPulsO,inPuls); + copyArray(refPulsO,refPuls); + end; removeLinearOffset(inPuls); removeLinearOffset(refPuls); if smooth>1 then begin diff --git a/ROM.lps b/ROM.lps index 9211447..b493d4f 100644 --- a/ROM.lps +++ b/ROM.lps @@ -3,162 +3,167 @@ - + - - - + + + - - + + - + - - + - + - + + + + + + + - - + + - - + + - - + + - + - + - + - + - - + + - - + + - - + + - - + + - + - + - + - - + + - - + + - + - - + + - + - + - + - + - + - - + + - - + + - - + + - + - - + + - + - - + + -- cgit v1.2.3-70-g09d2