You are on page 1of 10

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/360620450

WEATHER FORECASTING APPLICATION USING PYTHON

Article · May 2022

CITATIONS READS

0 9,299

1 author:

C K Gomathy
Sri Chandrasekharendra Saraswathi Viswa Mahavidyalaya University
212 PUBLICATIONS   586 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Travel Permit Indulgence Scheme View project

Cloud Security Alliance View project

All content following this page was uploaded by C K Gomathy on 16 May 2022.

The user has requested enhancement of the downloaded file.


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

WEATHER FORECASTING APPLICATION USING PYTHON

Dr. C. K. GOMATHY1, U.SOMA RAJU CHOWDARY2, V.MANJUNATH REDDY3,


Dr. V GEETHA4

1, 4 -Assistant Professor, Department of CSE, SCSVMV University, Kanchipuram.


2, 3 -Student- Department of CSE, SCSVMV University, Kanchipuram.

ABSTRACT

Weather forecasting is the application of science and technology to predict the state of the
atmosphere for a given location. Ancient weather forecasting methods usually relied on
observed patterns of events, also termed pattern recognition. For example, it might be
observed that if the sunset was particularly red, the following day often brought fair weather.
However, not all of these predictions prove reliable. Here this system will predict weather
based on parameters such as temperature, humidity and wind. User will enter current
temperature; humidity and wind, System will take this parameter and will predict weather
(rainfall in inches) from previous data in database (dataset). The role of the admin is to add
previous weather data in database, so that system will calculate weather (estimated rainfall in
inches) based on these data. Weather forecasting system takes parameters such as
temperature, humidity, and wind and will forecast weather based on previous record therefore
this prediction will prove reliable. This system can be used in Air Traffic, Marine,
Agriculture, Forestry, Military, and Navy etc.

Keywords- Weather forecasting, temperature; short range, governments, tropical storms,


challenging task, forecasting.

I. INTRODUCTION

Weather forecasting is the prediction of the state of the atmosphere for a given location using
the application of science and technology. This includes temperature, rain, cloudiness, wind
speed, and humidity. Weather warnings are a special kind of short-range forecast carried out
for the protection of human life.

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 44


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

Features Weather Forecast Project In Python Django:

• Time to time update weather


• Temperature Update
• Last 7 days data Predict
• change weather in every hours as according to weather changes.
• provide accurate data information about weather.
• user can search weather anytime and anywhere.
• any places data can be search and provide information as according to weather.
• help user to travel.
• help User to future plans for holidays.

II. EXISTING SYSTEMAND ITS DRAWBACKS

The traditional forecast process employed by most NMHSs involves forecasters producing
text-based, sensible, weather-element forecast products (e.g. maximum/minimum
temperature, cloud cover) using numerical weather prediction (NWP) output as guidance.
The process is typically schedule-driven, product-oriented and labour-intensive. Over the last
decade, technological advances and scientific breakthroughs have allowed NMHSs’ hydro
meteorological forecasts and warnings to become much more specific and accurate. As
computer technology and high-speed dissemination systems evolved (e.g. Internet), National
Weather Service (NWS) customers/partners were demanding detailed forecasts in gridded,
digital and graphic formats. Traditional NWS text forecast products limit the amount of
additional information that can be conveyed to the user community. The concept of digital
database forecasting provides the capability to meet customer/partner demands for more
accurate, detailed hydro meteorological forecasts. Digital database forecasting also offers one
of the most exciting opportunities to integrate PWS forecast dissemination and service
delivery, which most effectively serves the user community.

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 45


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

III. PROBLEM STATEMENT

The traditional forecast process employed by most NMHSs involves forecasters producing
text-based, sensible, weather-element forecast products (e.g. maximum/minimum
temperature, cloud cover) using numerical weather prediction (NWP) output as guidance.
The process is typically schedule-driven, product-oriented and labour-intensive. Over the last
decade, technological advances and scientific breakthroughs have allowed NMHSs’
hydrometeorological forecasts and warnings to become much more specific and accurate.

IV. PROPOSED METHOD

User will enter current temperature; humidity and wind, System will take this parameter and
will predict weather from previous data in database. The role of the admin is to add previous
weather data in database, so that system will calculate weather based on these data. Weather
forecasting system takes parameters such as temperature, humidity, and wind and will
forecast weather based on previous record therefore this prediction will prove reliable.

V. MODULES AND PROJECT DESCRIPTION

In this project we have Two modules

1) Data gathering and pre - processing.

2) Applying Algorithm for prediction .

Explanation:

1) In this module we first gather the data(dataset) for our prediction model.Data comes in all
forms, most of it being very messy and unstructured. They rarely come ready to use.
Datasets, large and small, come with a variety of issues- invalid fields, missing and additional
values, and values that are in forms different from the one we require. In order to bring it to
workable or structured form, we need to “clean” our data, and make it ready to use. Some
common cleaning includes parsing, converting to one-hot, removing unnecessary data, etc.

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 46


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

In our case, our data has some days where some factors weren’t recorded. And the rainfall in
cm was marked as T if there was trace precipitation. Our algorithm requires numbers, so we
can’t work with alphabets popping up in our data. so we need to clean the data before
applying it on our model.

2) Once the data is cleaned, In this module that cleaned data can be used as an input to our
Linear regression model. Linear regression is a linear approach to form a relationship
between a dependent variable and many independent explanatory variables. This is done by
plotting a line that fits our scatter plot the best, ie, with the least errors. This gives value
predictions, ie, how much, by substituting the independent values in the line equation.

We will use Scikit-learn’s linear regression model to train our dataset. Once the model is
trained, we can give our own inputs for the various columns such as temperature, dew point,
pressure, etc. to predict the weather based on these attributes.

Module Outcomes:

1) By the end of the first module the fully cleaned and useful data is available for the apply
the algorithm for the prediction.

2) By the end of the second module the actual prediction will be happen the outcome is the
amount of rainfall in inches based upon the users input.

VI.ALOGORITHM AND ITS TECHNIQUES

Linear Regression is a machine learning algorithm based on supervised learning. It performs


a regression task. Regression models a target prediction value based on independent
variables. It is mostly used for finding out the relationship between variables and forecasting.
Different regression models differ based on – the kind of relationship between dependent and
independent variables, they are considering and the number of independent variables being
used.

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 47


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

Fig 1: Algorithm Graph

Linear regression performs the task to predict a dependent variable value (y) based on a given
independent variable (x). So, this regression technique finds out a linear relationship between
x (input) and y(output). Hence, the name is Linear Regression.In the figure above, X (input)
is the work experience and Y (output) is the salary of a person. The regression line is the best
fit line for our model.

Hypothesis function for Linear Regression :

y=mx+c

Where

y is the response variable.

x is the predictor variable.

m and c are constants which are called the coefficients.

VII. IMPLEMENTATION

A day (in red) having precipitation of about 2 inches is tracked across multiple parameters
(the same day is tracker across multiple features such as temperature, pressure, etc). The x-
axis denotes the days and the y-axis denotes the magnitude of the feature such as temperature,
pressure, etc. From the graph, it can be observed that rainfall can be expected to be high when
the temperature is high and humidity is high.

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 48


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

Implementation process

The precipitation in inches for the input is: [[1.33868402]]

Graphs:

Fig 2: Histogram for Temp

Fig 3: The precipitation trend graph

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 49


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

VIII.CONCLUSION

We successfully predicted the rainfall using the linear regression but here this is not very
accurate only sometimes any way it depends upon the climate changes to season to season.
Here we are taking only summer season weather data set it only useful to predict rainfall in
summer season. Finally, it is agreed that we made an attempt on the following points:

 The description of the purpose the scope and applicability of this project.
 We specify the system's necessary specs as well as the actions that can be performed
on these objects.
 We define the system's required specifications and the actions that can be taken on
these objects.
 We comprehend the problem domain and create a system model that represents the
operations that can be performed on the system.
 We went into great lengths about the features and processes, providing a lot of
important information.
 We created the user interface as well as system security issues.
 Finally, the system is built and tested in accordance with the test cases.

IX. REFERENCES

[1] DR.C.K.Gomathy , V.Geetha , S.Madhumitha , S.Sangeetha , R.Vishnupriya Article: A


Secure With Efficient Data Transaction In Cloud Service, Published by International
Journal of Advanced Research in Computer Engineering & Technology (IJARCET)
Volume 5 Issue 4, March 2016, ISSN: 2278 – 1323.

[2] Dr.C.K.Gomathy,C K Hemalatha, Article: A Study On Employee Safety And Health


Management International Research Journal Of Engineering And Technology (Irjet)-
Volume: 08 Issue: 04 | Apr 2021

[3] Dr.C K Gomathy, Article: A Study on the Effect of Digital Literacy and information
Management, IAETSD Journal For Advanced Research In Applied Sciences, Volume 7
Issue 3, P.No-51-57, ISSN NO: 2279-543X,Mar/2018
[4] Dr.C K Gomathy, Article: An Effective Innovation Technology In Enhancing Teaching
And Learning Of Knowledge Using Ict Methods, International Journal Of Contemporary
Research In Computer Science And Technology (Ijcrcst) E-Issn: 2395-5325 Volume3,
Issue 4,P.No-10-13, April ’2017

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 50


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

[5] Dr.C K Gomathy, Article: Supply chain-Impact of importance and Technology in


Software Release Management, International Journal of Scientific Research in Computer
Science Engineering and Information Technology ( IJSRCSEIT ) Volume 3 | Issue 6 |
ISSN : 2456-3307, P.No:1-4, July-2018.

[6] C K Gomathy and V Geetha. Article: A Real Time Analysis of Service based using
Mobile Phone Controlled Vehicle using DTMF for Accident Prevention. International
Journal of Computer Applications 138(2):11-13, March 2016. Published by Foundation of
Computer Science (FCS), NY, USA,ISSN No: 0975-8887

[7] C K Gomathy and V Geetha. Article: Evaluation on Ethernet based Passive Optical
Network Service Enhancement through Splitting of Architecture. International Journal of
Computer Applications 138(2):14-17, March 2016. Published by Foundation of Computer
Science (FCS), NY, USA, ISSN No: 0975-8887

[8] C.K.Gomathy and Dr.S.Rajalakshmi.(2014), "A Software Design Pattern for Bank
Service Oriented Architecture", International Journal of Advanced Research in Computer
Engineering and Technology(IJARCET), Volume 3,Issue IV, April 2014,P.No:1302-
1306, ,ISSN:2278-1323.

[9] C. K. Gomathy and S. Rajalakshmi, "A software quality metric performance of


professional management in service oriented architecture," Second International
Conference on Current Trends in Engineering and Technology - ICCTET 2014, 2014, pp.
41-47, doi: 10.1109/ICCTET.2014.6966260.

[10] Dr.C K Gomathy, V Geetha ,T N V Siddartha, M Sandeep , B Srinivasa Srujay Article:


Web Service Composition In A Digitalized Health Care Environment For Effective
Communications, Published by International Journal of Advanced Research in Computer
Engineering & Technology (IJARCET) Volume 5 Issue 4, April 2016, ISSN: 2278 – 1323.

[11] Dr.C K Gomathy, V Geetha , T.Jayanthi, M.Bhargavi, P.Sai Haritha Article: A Medical
Information Security Using Cryptosystem For Wireless Sensor Networks, International
Journal Of Contemporary Research In Computer Science And Technology (Ijcrcst) E-Issn:
2395-5325 Volume3, Issue 4, P.No-1-5,April ’2017

[12] V Geetha , Dr.C K Gomathy T.Jayanthi, R. Jayashree,, S. Indhumathi, E. Avinash,,


Article: An Efficient Prediction Of Medical Diseases Using Pattern Mining In Data
Exploration, International Journal Of Contemporary Research In Computer Science And
Technology (Ijcrcst) E-Issn: 2395-5325 Volume3, Issue 4,P.No-18-21,April ’2017

[13].V Geetha , Dr.C K Gomathy T.Jayanthi, G.Vamsi , N.P.Ganesh, G.Raheshwara Rao,


Article: An Effective Implementation Of Data Prefetching To Alleviate The Storage Access
Latency, International Journal Of Contemporary Research In Computer Science And
Technology (Ijcrcst) E-Issn: 2395-5325 Volume3, Issue 4,P.No-14-17.April ’2017

[14] C K Gomathy A STUDY ON THE RECENT ADVANCEMENTS IN ONLINE


SURVEYING", International Journal of Emerging Technologies and Innovative Research

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 51


JOURNAL OF ENGINEERING, COMPUTING & ARCHITECTURE ISSN NO:1934-7197

(www.jetir.org), ISSN:2349-5162, Vol.5, Issue 11, page no.327-331, November-2018,


Available :http://www.jetir.org/papers/JETIR1811850.pdf

Volume 12, Issue 3, MARCH - 2022 http://www.journaleca.com/ Page No: 52


View publication stats

You might also like