<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">IIM</journal-id><journal-title-group><journal-title>Intelligent Information Management</journal-title></journal-title-group><issn pub-type="epub">2160-5912</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/iim.2014.62006</article-id><article-id pub-id-type="publisher-id">IIM-43957</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  MissRF: A Visual Basic Application in MS Excel to Find out Missing Rainfall Data and Related Analysis
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>radeep</surname><given-names>Kumar Mohanty</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Dwitikrishna</surname><given-names>Panigrahi</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Milu</surname><given-names>Acharya</given-names></name><xref ref-type="aff" rid="aff3"><sup>3</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff3"><addr-line>Siksha ‘O’ Anusandhan University, Bhubaneswar, India</addr-line></aff><aff id="aff1"><addr-line>Department of Water Resources, Government of Odisha, Bhubaneswar, India</addr-line></aff><aff id="aff2"><addr-line>Central Agricultural University, Gangtok, India</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>pradeep5552002@yahoo.com(RKM)</email>;<email>dwiti_2000@yahoo.com(DP)</email>;<email>milu_acharya@yahoo.com(MA)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>17</day><month>03</month><year>2014</year></pub-date><volume>06</volume><issue>02</issue><fpage>38</fpage><lpage>44</lpage><history><date date-type="received"><day>20</day>	<month>December</month>	<year>2013</year></date><date date-type="rev-recd"><day>19</day>	<month>January</month>	<year>2014</year>	</date><date date-type="accepted"><day>18</day>	<month>February</month>	<year>2014</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   Hydrological analyses are often encountered with many missing periods of rainfall while designing developmental action plans for inaccessible and disadvantageous area. Visual basic based application software (to run in MS Excel) was developed to calculate and autofilled the missing rainfall data using widely followed Normal Ratio Method. The operational details of the software are described in the paper. 
 
</p></abstract><kwd-group><kwd>MissRF; Normal Ratio Method; Visual Basic; MS Excel</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Continuous meteorological data of contiguous stations are extremely important for forecasting and planning developmental activities in agriculture. Meteorological parameters change erratically at short intervals both spatially and temporally. It’s a huge task to accumulate data at decentralised locations, particularly for the developing and under developed countries because of inaccessibility and difficult field situations. Rainfalls being one of the most important meteorological parameters, numbers of statistical methods are in use for filling of the missing rainfall data with varied logical and technical considerations. Dynamics of short term rainfall has a significant role in hydrological planning [<xref ref-type="bibr" rid="scirp.43957-ref1">1</xref>] and the missing periods need therefore be filled up for better analysis, prediction and efficient rainfall-runoff modeling [<xref ref-type="bibr" rid="scirp.43957-ref2">2</xref>] . Simple (simple arithmetic average, normal ratio or NR, and NR weighted with correlations) as well as complex type neural network, and multiple imputation strategy adopted by Monte Carlo Markov Chain based on expectation-maximization or EM-MCMC) methods are used for calculation of missing rainfall values [<xref ref-type="bibr" rid="scirp.43957-ref3">3</xref>] . [<xref ref-type="bibr" rid="scirp.43957-ref2">2</xref>] , [<xref ref-type="bibr" rid="scirp.43957-ref4">4</xref>] and [<xref ref-type="bibr" rid="scirp.43957-ref5">5</xref>] have also mentioned about different logical concepts and mathematical applications, which requires intensive calculations and computations.</p><p>Temporal as well as spatial correlation is required for near accurate calculation of missing values of rainfall in a particular station. The more decentralised stations we go, the less difference of rainfall value we may get. Normal ratio method (Equation (1)) is one of the existing conventional methods, suitable for gap filling of the rainfall records particularly when the normal annual precipitation at any index station differs from that of the interpolation station by more than 10% [<xref ref-type="bibr" rid="scirp.43957-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.43957-ref7">7</xref>] . [<xref ref-type="bibr" rid="scirp.43957-ref8">8</xref>] have used this method at various places of the world. The method is one of the simpler ways of predicting missing values [<xref ref-type="bibr" rid="scirp.43957-ref3">3</xref>] , but repeating calculations makes it hectic if the number of records is very large.</p><disp-formula id="scirp.43957-formula87724"><label>(1)</label><graphic position="anchor" xlink:href="htmlimages\3-8701278x\8e2a8762-a07b-4d55-884c-2c24526d0a04.png"  xlink:type="simple"/></disp-formula><p>Where, <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\a20d3212-a0fc-4f0d-8c74-c205e5e618ff.png" xlink:type="simple"/></inline-formula> = Missed rainfall of Station-<inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\fced8cfa-a98b-4fde-aed7-72c68048e8fc.png" xlink:type="simple"/></inline-formula> to be filled; <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\62dea5b0-85ea-45f7-9809-68cc5c5cdfea.png" xlink:type="simple"/></inline-formula> = Annual Average rainfall of Station-<inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\595544b2-f7d9-49da-98ba-ca957326852c.png" xlink:type="simple"/></inline-formula>; <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\4111e4f3-d4ac-4252-ab96-353fa68dd59e.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\39a74bca-7dc4-4f28-a2b1-0c5c53fb49d5.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\768f56cc-ed83-4448-91e1-7a4a360fff48.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\986c5ca1-3a7d-48fb-8eab-804191439b55.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\0ec2dc16-cf25-4644-b9f6-e4f89d9de8fa.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\8025006b-d73d-4964-91e8-c120887e871c.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\e06da3da-5ad7-4d6a-b769-ea00118334e3.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\d989ca41-6792-484b-90d3-172e91793c5e.png" xlink:type="simple"/></inline-formula> corresponding rainfall values of Stations-<inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\1d58ffa0-7a4b-4667-991e-7e404baecdbb.png" xlink:type="simple"/></inline-formula> and annual average rainfall values of Stations-<inline-formula><inline-graphic xlink:href="tmlimages\3-8701278x\1aba006d-595e-472e-89bd-7be3f8dfbd7f.png" xlink:type="simple"/></inline-formula>, respectively; n = number of stations for which rainfall data are available.</p></sec><sec id="s2"><title>2. Methods and Materials</title><p>An attempt was therefore made to develop a software code using Microsoft-Excel Visual Basic Application for gap filling of the missing rainfall data based on the “Normal Ratio” method. The rainfall of the 12 community development blocks (CDBs) of Kandhamal district in Odisha state of India were used as an example for this. The district is one of the most undeveloped regions of the country and the world as well and therefore has a large number of missing values in terms of rainfall and other metereological parameters even on daily, weekly and monthly basis.</p></sec><sec id="s3"><title>3. The Software Code</title><p>The software comprises 389 lines of code in Visual Basic Application, which is to be copied in the code window of the Excel object (Microsoft Excel 3.1 or later version) in a separate module so that it can run in all open workbooks. It can also be used with creation of a macro button in the Menu bar to run the program. It will not affect the original data file; rather the output file after gap filling was stored in the root C:\ directory with a new file name. The message box at appropriate stages of the program kept the user alert for any apprehension.</p><p>The advantage of this code is that, unlike earlier coding procedures like FORTRAN etc. It does not require any particular data format. The rainfall data are to be kept in Excel sheets (separate sheet for individual stations) and the message box at appropriate stages, while running the program, kept the user alert for any apprehension.</p><p>The flow chart of the running of the programme is shown in  <xref ref-type="fig" rid="fig1">Figure 1</xref>. With installation of the software, a new icon will be added to the “Quick Access Toolbar” of the MS Excel sheet at the top of the screen as in <xref ref-type="fig" rid="fig2">Figure 2</xref>. The first row and the first column of the excel sheet are for the name of the months and the name of the years, respectively. The actual rainfall data may therefore entered from the “B2” cell (<xref ref-type="fig" rid="fig3">Figure 3</xref>). Figures 4, 5 shows the initial message box that appeared just after clicking the “MissRF” icon on toolbar. It displays a set of instructions with the default option of “No”. Once “Yes” button was clicked, the program starts executing. Then the program fills the gaps existing in the respective stations in different sheets as per the equation of Normal Ratio Method. The filled in data are then reformatted in a different colour and saved in a different file name not affecting the original file. Soon after the program execution is complete, another message box (<xref ref-type="fig" rid="fig5">Figure 5</xref>) appears to indicate the end of program execution. After gap filling by the program, the new Excel file was stored in the root directory C:\ with a new file name having “-Norm” extension to the original file name as shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>. The program, not only fills the gaps, but also calculates; year wise total value, monsoon total and yearly average values to be used for further analysis.</p></sec><sec id="s4"><title>4. Conclusion</title><p>The 389 lines code Visual Basic Application software to be used as a Microsoft Excel object is observed to be a</p><p>user-friendly application tool for gap-filling of missing rainfall data considering Normal Ratio method. The code is simply to be copied to the code window of the Excel object in a separate module so that it can be run in all open workbooks. It will be easier if one Macro Button is created in the Menu bar to run the program. The ad-</p><p>vantage of this code is that it does not affect the original data file; rather the output file after gap filling is stored in the root C:\ directory with a new file name. The message box at appropriate stages of the program keeps the user alert for any apprehension. The above codes are operative for finding out the missing monthly data. But for the missing daily data, the program needs to be redesigned.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.43957-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Wahab, K.A. (2009) Application of Fuzzy Logic to Simulation of Rainfall in Kerayong River Catchment. M.Sc. (Civil Engineering) Thesis, Universiti Teknologi, Mara. http://eprints.uitm.edu.my/6136/</mixed-citation></ref><ref id="scirp.43957-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Roman, U.C., Patela, P.L. and Poreya, P.D. (2012) Prediction of Missing Rainfall Data Using Conventional and Artificial Neural Network Techniques. ISH Journal of Hydraulic Engineering, 18, 224-231.&lt;br&gt;http://dx.doi.org/10.1080/09715010.2012.721660</mixed-citation></ref><ref id="scirp.43957-ref3"><label>3</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Yozgatligil</surname><given-names> C.</given-names></name>,<name name-style="western"><surname> Aslan</surname><given-names> S.</given-names></name>,<name name-style="western"><surname> Iyigun</surname><given-names> C. and Batmaz</given-names></name>,<name name-style="western"><surname> I. </surname><given-names>  </given-names></name>,<etal>et al</etal>. (<year>2012</year>)<article-title>Comparison of Missing Value Imputation Methods in Time Series: The Case of Turkish Meteorological Data</article-title><source> Theoretical and Applied Climatology</source><volume> 112</volume>,<fpage> 143</fpage>-<lpage>167</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.43957-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Kajornrit, J., Wong, K.W. and Fung, C.C. (2012) A Comparative Analysis of Soft Computing Techniques Used to Estimate Missing Precipitation Records. International Telecommunications Society 19th Biennial Conference, ITS 2012, Bangkok, 18-21 November 2012, 9 Pages. http://researchrepository.murdoch.edu.au/11393/</mixed-citation></ref><ref id="scirp.43957-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Gadgay, B., Kulkarni, S. and Chandrasekhar, B. (2012) Novel Ensemble Neural Network Models for better Prediction using Variable Input Approach. International Journal of Computer Applications, 39, 37-45.&lt;br&gt;http://dx.doi.org/10.5120/5082-7268</mixed-citation></ref><ref id="scirp.43957-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Tang, W.Y., Kassim, A.H.M. and Abubakar, S.H. (1996) Comparative Studies of Various Missing Data Treatment Methods. Atmospheric Research, 42, 247-262</mixed-citation></ref><ref id="scirp.43957-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Hagos, B. (2011) Hydraulic Modeling and Flood Mapping of Fogera Flood Plain: A Case Study of Gumera River. M.Sc. (Civil Engineering) Thesis, Addis Ababa University, Addis Ababa.</mixed-citation></ref><ref id="scirp.43957-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">R&amp;#228s&amp;#228nen, T.A., Koponen, J., Lauri, H. and Kummu, M. (2012) Downstream Hydrological Impacts of Hydropower Development in the Upper Mekong Basin. Water Resources Management, 26, 3495-3513.&lt;br&gt;http://dx.doi.org/10.1007/s11269-012-0087-0</mixed-citation></ref></ref-list></back></article>