median filtering algorithms for multichannel detectors and their influence on thunderstorm peaks in...

30
Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Armen Hovhannisyan Alikhanyan Physics Institute, Armenia Alikhanyan Physics Institute, Armenia

Upload: constance-bradley

Post on 17-Jan-2018

248 views

Category:

Documents


0 download

DESCRIPTION

Aragats Neutron Monitor Data

TRANSCRIPT

Page 1: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Median Filtering Algorithms for Multichannel Detectors and their

influence on Thunderstorm Peaks in Cosmic Ray Data

Armen HovhannisyanArmen HovhannisyanAlikhanyan Physics Institute, ArmeniaAlikhanyan Physics Institute, Armenia

Page 2: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

ASEC MonitorsASEC Monitors

Page 3: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Aragats Neutron Monitor Data

Page 4: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Different Kinds of Errors1 Spike

2 Slow Drift

3 Abrupt change of mean

Page 5: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Algorithm 1 – Moving Median Filter(MMF)• Moving window width – L; L=2I+1, where I is number of detections to the left and

to the right of the filtering (smoothing) measurement;• Maximal possible value – Pmax• Minimal possible value – Pmin• Maximal value of window width – Lmax

Algorithm Description1 Select time series from database with N elements;2 Start smoothing from the (I+1)th measurement of time time series – Vi , i=I+1;3 Calculate the median value Mi,L;4 Validate the median value: Mi,L ɛ (Pmin;Pmax) if not, enlarge L by 2, and after

checking L<=Lmax go to 2;5 ELSE go to STOP and report operator about data failure;6 Substitute selected measurment by median value Mi,L →Vi;7 Move to next i+1 element of time series;9 If i+1<=N THEN GO TO 210 ELSE STOP, ask operator where to write smoothed time series.

Page 6: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Algorithm 2(3) – Median filter for multichannel measurements

• Let's suppose that we have M channels of one monitor, and several of them have been down for some period.

• , where ni are mean values of each channel, Sum is the sum of means of all channels (1)

• ,where Med is median of all working channels at same minute, (2)

• Fi are coefficients of each channel. These coefficients are the relation of total median value of all channels for same minute and the i-th channel mean.

• For each minute of corrupted period of corrupted channel we calculate Med value(which is median of working channels), and then calculate value for that minute using equation (2).

SumMnF i

i*

MedFV ii *

Page 7: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Combination of 2 Algorithms• We have some date to start the smoothing, for that beginning

we calculate and coefficients and write them to a file• Then we take 1 day data and start smoothing all channels

with constant and not big I.e. (10 minute) window.• If some channels have been not corrected by 1 algorithm,

second one turns on, it reads the means and algorithms from files we have created

• After correcting with 2 algorithm , if everithing is ok, we calculate again means and coefficients for corrected data and write them to a the same file.

• If second algorithm didn't corrected the data (which means that all or nearly all channels have been corrupted) send an e-mail to operator.

• Take next Period and do 2-5 again.

in iF

Page 8: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Atmospheric Pressure, Nor-Amberd Station, Period – 6 Months

Page 9: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Atmospheric Pressure - Corrected

Page 10: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Aragats Neutron Monitor, MAY 2008 – after filtering

Page 11: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Correction of the AMMM time series, >5 Gev Muons

Page 12: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Correction of the ARNM time series

Page 13: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Simulation of Data For NANM

Page 14: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Simulation of Spoiled Timeserie

Page 15: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

The Same Timeserie After Correction

Page 16: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

CR Intensity Modulation during 23th solar cycle, Measured by NANM

Page 17: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Comparison of Corrected Data of NANM with Alma-Ata Data

Page 18: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Day-to-day changes of the channel coefficients of Aragats

Neutron Monitor

Page 19: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Neutron Monitors used in the “coherence” test

Neutron MonitorNeutron Monitor Altitude,mAltitude,m Rigidity,GVRigidity,GV TypeType

Alma AtaAlma Ata 33403340 6.696.69 18NM6418NM64

RomeRome 6060 6.326.32 17NM6417NM64

AragatsAragats 32003200 7.147.14 18NM6418NM64

Nor-AmberdNor-Amberd 20002000 7.147.14 18NM6418NM64

MoscowMoscow 200200 2.462.46 24NM6424NM64

OuluOulu 00 0.810.81 9NM649NM64

AthensAthens 4040 8.728.72 3NM643NM64

Page 20: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Pressure Corrected Data from NMDB

Page 21: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Pressure Corrected and Median Smoothed Data from NMDB

Page 22: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Equalizing coefficients of the NMDB facilities

Page 23: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Enhancements associated with thunderstorms

21 May 2009, AMMM

25000

26000

2700028000

29000

30000

3100032000

33000

34000

16:19 16:36 16:52 17:09 17:26 17:43 18:00UT

Inte

nsity

[par

ticle

s/m

in m

sq]

Page 24: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Types of Algorithms

Algorithm1 – Spike RemovalAlgorithm1 – Spike Removal

Algorithm2 – Correction of EACH Algorithm2 – Correction of EACH channel by coefficientschannel by coefficients

Algorithm3 – Getting WEGHTED Algorithm3 – Getting WEGHTED TimeSerie using data of all channels TimeSerie using data of all channels and coefficientsand coefficients

Page 25: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Filtering with Algorithm 1 and 2Window=60 minutes

Page 26: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Filtering with Algorithm 1 and 2Window=20 minutes

Page 27: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Filtering with Algorithm 3

Page 28: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Filtering with Algorithm 1 and 2Window=60 minutes

Page 29: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Filtering with Algorithm 3

Page 30: Median Filtering Algorithms for Multichannel Detectors and their influence on Thunderstorm Peaks in Cosmic Ray Data Armen Hovhannisyan Alikhanyan Physics

Conclusions• We use this method for online and offline filtering of ASEC

data. The program is online filtering the data of Nor-Amberd and Aragats Neutron Monitors, and soon it’ll be implemented it to other monitors. Also the corrected data is being transferred to NMDB.

• Changing Parameters of different algorithms it is possible not to oversmooth enhancements associated with lightning events.

• Besides the filtering, this programme also provides an automatic alerting system in case of malfunctioning of some of 280 detecting channels.