From 6a6f11a3011310c755933f39f084241dfc099fe6 Mon Sep 17 00:00:00 2001 From: John Romein <romein@astron.nl> Date: Tue, 23 May 2006 15:09:22 +0000 Subject: [PATCH] BugID: 225 Removed Observation.ChanWidth, which can be derived from Observation.SampleRate and Observation.NChannels. --- Appl/CEP/CS1/CS1_Interface/src/CS1.parset | 1 - Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Appl/CEP/CS1/CS1_Interface/src/CS1.parset b/Appl/CEP/CS1/CS1_Interface/src/CS1.parset index 9fe31cd2efe..da911e94b12 100644 --- a/Appl/CEP/CS1/CS1_Interface/src/CS1.parset +++ b/Appl/CEP/CS1/CS1_Interface/src/CS1.parset @@ -40,7 +40,6 @@ Observation.BeamDirections = [\ # pair of RA/DEC per beam (angle in rad) Observation.StartTime = 53328.6407291667 # MJD: 2004/11/19 15h22m39s Observation.StopTime = 53328.6823958333 # MJD: 2004/11/19 16h22m39s Observation.RefFreqs = [1.0e5, 3.0e5, 5.0e5, 7.0e5, 9.0e5, 11.0e5, 13.0e5, 15.0e5] # the reference frequency for each stored(!) subband (Hz) -Observation.ChanWidth = 762.94 # width of each channel (Hz) # General Variables General.SubbandsPerCell = 1 diff --git a/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc b/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc index 2046ab18f79..c4d7334a15f 100644 --- a/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc +++ b/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc @@ -162,7 +162,8 @@ namespace LOFAR itsNChannels, itsNPolSquared, itsNStations, antPos); - double chanWidth = itsPS.getDouble("Observation.ChanWidth"); + double chanWidth = itsPS.getDouble("Observation.SampleRate") / + itsPS.getDouble("Observation.NChannels"); LOG_TRACE_VAR_STR("chanWidth = " << chanWidth); vector<double> refFreqs= itsPS.getDoubleVector("Observation.RefFreqs"); -- GitLab