summaryrefslogtreecommitdiff
path: root/qmap/libqmap/cacb_mod.f90
blob: ed4af75c91a4cc70a794cf2971bf1a1db49672be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module cacb_mod
  implicit none

  complex, allocatable :: ca(:)  ! FFT of raw I/Q data from Linrad

contains

  subroutine init_cacb(n)
    integer, intent(in) :: n

    if (allocated(ca)) then
      if (size(ca) >= n) return
      deallocate(ca)
    endif

    allocate(ca(n))
  end subroutine init_cacb

  subroutine free_cacb()
    if (allocated(ca)) deallocate(ca)
  end subroutine free_cacb

end module cacb_mod