summaryrefslogtreecommitdiff
path: root/qmap/libqmap/cacb_mod.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-06-22 12:03:44 +0200
committerChristoph Berg <myon@debian.org>2026-06-22 12:03:44 +0200
commitd83a420f0517d7fc47aeb288a6a0cf4891784fcc (patch)
tree6d9c83527c56458a8360ba080bf5f4ca73d526dc /qmap/libqmap/cacb_mod.f90
parent4b089ae3f7e9e2d5662f718f663b26a4e8ee63ca (diff)
New upstream version 3.0.2+dfsgupstream/3.0.2+dfsg
Diffstat (limited to 'qmap/libqmap/cacb_mod.f90')
-rw-r--r--qmap/libqmap/cacb_mod.f9023
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