Join/Login

Business Software

Open Source Software

For Vendors

Blog

About

More

Articles

Create

SourceForge Podcast

Site Documentation

Subscribe to our Newsletter

Support Request

For Vendors Help Create Join Login

Business Software

Open Source Software

SourceForge Podcast

Resources

Articles

Case Studies

Blog

Menu

Help

Create

Join

Login

Home

Browse

WSJT

WSPR

WSJT WSPR

Weak signal ham radio communication

Brought to you by: bsomervi, chetfenn, dg2ycb, k1jt

Summary

Files

Reviews

Support

Mailing Lists

Git ▾

WSJT-X

WSPR

WSPR-X

WSJT

Echo

FMT

MAP65

MAP65IQ

WSJT-X Superbuild

More...

Old SVN

Menu ▾ ▴

Browse Commits

Fork

Merge Requests 0

Forks 1

Branches

master

Tags

wspr212

[40a5ff]: / decode.f90  Maximize  Restore  History

Download this file

63 lines (55 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

subroutine decode

!  Decode WSPR signals for one 2-minute sequence.

  character*80 savefile

  integer*2 jwave(114*12000)

  real*8 df,fpeak

  real x(65536)

  complex c(0:32768)

  equivalence (x,c)

  include 'acom1.f90'

  f0b=f0a

  if(ncal.eq.2) then

     fac=1.e-6

     do i=1,65536

        x(i)=fac*iwave(i)

     enddo

     call xfft(x,65536)

     df=12000.d0/65536.d0

     smax=0.

     do i=1,16384

        s=real(c(i))**2 + aimag(c(i))**2

        if(s.gt.smax) then

           smax=s

           fpeak=i*df

        endif

     enddo

     call cs_lock('decode')

     write(*,1002) fpeak

1002 format('Measured audio frequency:',f10.2,' Hz')

     ncal=0

     ndecoding=0

     call cs_unlock

     go to 900

  else

     ncmdline=0

     if(nsave.gt.0 .and. ndiskdat.eq.0) jwave=iwave(1:114*12000)

!    Sivan Toledo: changed f0 to f0b below, to correct a reporting bug

!      that resulted in f0 being reported for spots even though f0 was

!      changed after the audio was captured.

     call mept162(thisfile,appdir,nappdir,f0b,ncmdline,iwave,NMAX,nbfo,ierr)

     if(nsave.gt.0 .and. ndiskdat.eq.0 .and. ierr.eq.0) then

        savefile=appdir(:nappdir)//'/save/'//thisfile

        npts=114*12000

        call wfile5(jwave,npts,12000,savefile)

     endif

  endif

  call cs_lock('decode')

  write(14,1100)

1100 format('$EOF')

  call flush(14)

  rewind 14

  ndecdone=1

  ndecoding=0

  call cs_unlock

900  return

end subroutine decode

SourceForge

Create a Project

Open Source Software

Business Software

Top Downloaded Projects

Company

About

Team

SourceForge Headquarters
225 Broadway Suite 1600
San Diego, CA 92101
+1 (858) 422-6466

Resources

Support

Site Documentation

Site Status

SourceForge Reviews

© 2025 Slashdot Media. All Rights Reserved.

Terms Privacy Opt Out Advertise

×
Want the latest updates on software, tech news, and AI?

Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.

Submit