Skip to content

tjyanjing/et_radiation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Machine-learning Based Net Radiation Forecaster

Overview

This repository was created for the machine-learning forecasters that predict net radiation using minimum weather information, e.g., temperature. It pulls data from the National Weather Service (NWS) API for customized location and forecasts the net radiation.

Features

  • The model built was based on five popular machine learning algorithms, including multi-linear regression, K nearest neighbor, support vector machine, random forests, and gradient boosted tree regression.
  • The dataset for model construction was collected from the CIMIS and AZMET from 1982 to 2018.
  • Extracting ERA5 reanalysis global climate dataset for forecast validation.
  • Forecasting 7-day net radiation from the running date after automatically extracting weather forecasting information from NWS.

Map of Radiation Stations Figure 1. Geographical location of observation station

Running The Forecaster

import nws_forecast
from nws_forecast import forecast

# request weather forecast from NWS
my_forecast = forecast(city="Merced, CA", model_type ='lm')
my_forecast.request_nws()

# proceed the forecast and plot the forecast results
from class_model import model
my_forecast.export_forecast()
my_forecast.plot_forecast()

An expected output is shown below:

Net radiation forecasting Figure 2. Net radiation forecasting at Merced, CA

Other Model Preview

Theoretical, predicated, and observed net radiation against time at one location. Figure 3. Theoretical, predicated, and observed net radiation against time using a Gradient Boosted Tree Model at one location in California.

The prediction against observation of net radiation. Figure 4. Predicted against observed net radiation using a Random Forest Model for all stations in California and Arizona.

About

This repository was created for the machine-learning-based forecaster using Python that predicts net radiation from minimum weather inputs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages