diff options
Diffstat (limited to 'qmap/libqmap/cacb_mod.f90')
| -rw-r--r-- | qmap/libqmap/cacb_mod.f90 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qmap/libqmap/cacb_mod.f90 b/qmap/libqmap/cacb_mod.f90 new file mode 100644 index 00000000..ed4af75c --- /dev/null +++ b/qmap/libqmap/cacb_mod.f90 @@ -0,0 +1,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 |
