From 4dda9c5f9c3c4a5e7957cabccaf4d3603890e425 Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Thu, 16 Mar 2017 17:56:48 +0000
Subject: [PATCH] -Added apertif.py.

---
 applications/arts/doc/python/apertif.py | 56 +++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 applications/arts/doc/python/apertif.py

diff --git a/applications/arts/doc/python/apertif.py b/applications/arts/doc/python/apertif.py
new file mode 100644
index 0000000000..37372543a2
--- /dev/null
+++ b/applications/arts/doc/python/apertif.py
@@ -0,0 +1,56 @@
+###############################################################################
+#
+# Copyright (C) 2017
+# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
+# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+###############################################################################
+
+# Author
+# . Daniel van der Schuur
+# Purpose
+# . Use stream.py to model the APERTIF data path
+# Description
+# .
+
+###############################################################################
+# Import our StreamArray class
+###############################################################################
+from stream import *
+
+###############################################################################
+# System parameters
+###############################################################################
+N_DISH = 12 # Number of dishes
+N_POL = 2   # Number of polarizations
+N_ADC = 64  # Number of ADCs per polarization, per dish
+
+ADC_SAMPLE_RATE = 800000000 # 800 MSPS
+
+N_SEC = 0 # 0 = Unlimited runtime
+
+###############################################################################
+# Source of ADC streams
+###############################################################################
+parallel_dimensions = (('dish', N_DISH),
+                       ('pol' , N_POL ),
+                       ('adc' , N_ADC ))
+
+serial_dimensions = (('second'    , N_SEC),
+                     ('adc_sample', ADC_SAMPLE_RATE))
+
+
+#sa_adc = Source(
-- 
GitLab