mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 21:58:38 -05:00
Add Tx freq as command-line argument for qra66sim.
This commit is contained in:
parent
88102af49d
commit
2e893e8994
@ -19,21 +19,23 @@ program qra66sim
|
|||||||
character msgsent*22
|
character msgsent*22
|
||||||
|
|
||||||
nargs=iargc()
|
nargs=iargc()
|
||||||
if(nargs.ne.6) then
|
if(nargs.ne.7) then
|
||||||
print *, 'Usage: qra66sim "msg" A|B fDop DT Nfiles SNR'
|
print *, 'Usage: qra66sim "msg" A|B freq fDop DT Nfiles SNR'
|
||||||
print *, 'Example qra66sim "K1ABC W9XYZ EN37" A 0.2 0.0 1 -10'
|
print *, 'Example: qra66sim "K1ABC W9XYZ EN37" A 1500 0.2 0.0 1 -10'
|
||||||
go to 999
|
go to 999
|
||||||
endif
|
endif
|
||||||
call getarg(1,msg)
|
call getarg(1,msg)
|
||||||
call getarg(2,csubmode)
|
call getarg(2,csubmode)
|
||||||
mode66=2**(ichar(csubmode)-ichar('A'))
|
mode66=2**(ichar(csubmode)-ichar('A'))
|
||||||
call getarg(3,arg)
|
call getarg(3,arg)
|
||||||
read(arg,*) fspread
|
read(arg,*) f0
|
||||||
call getarg(4,arg)
|
call getarg(4,arg)
|
||||||
read(arg,*) xdt
|
read(arg,*) fspread
|
||||||
call getarg(5,arg)
|
call getarg(5,arg)
|
||||||
read(arg,*) nfiles
|
read(arg,*) xdt
|
||||||
call getarg(6,arg)
|
call getarg(6,arg)
|
||||||
|
read(arg,*) nfiles
|
||||||
|
call getarg(7,arg)
|
||||||
read(arg,*) snrdb
|
read(arg,*) snrdb
|
||||||
|
|
||||||
rms=100.
|
rms=100.
|
||||||
@ -71,7 +73,6 @@ program qra66sim
|
|||||||
enddo
|
enddo
|
||||||
endif
|
endif
|
||||||
|
|
||||||
f0=1500.0
|
|
||||||
bandwidth_ratio=2500.0/6000.0
|
bandwidth_ratio=2500.0/6000.0
|
||||||
sig=sqrt(2*bandwidth_ratio)*10.0**(0.05*snrdb)
|
sig=sqrt(2*bandwidth_ratio)*10.0**(0.05*snrdb)
|
||||||
if(snrdb.gt.90.0) sig=1.0
|
if(snrdb.gt.90.0) sig=1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user