Learn R Programming

Weather analysis

weaana is a R package to read and analyze weather data.

Installation

Currently on Github only. Install with:

remotes::install_github('byzheng/weaana')

Data Sources

This package includes example weather data sourced from the SILO database, operated by the Queensland Department of Environment, Science and Innovation.

Weather data © Queensland Government, SILO climate database.
Licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Source: https://www.longpaddock.qld.gov.au/silo/

Copy Link

Version

Install

install.packages('weaana')

Monthly Downloads

208

Version

0.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bangyou Zheng

Last Published

September 23rd, 2025

Functions in weaana (0.3.0)

siteInfor

Get site information
thermalTime

Calculate thermal time using cardinal temperatures
sphericalDistance

Calculate the sphere distance
writeWeatherRecords

Write weather records into file
thermalTimeDaily

Calculate thermal time using cardinal temperatures
wcal

Calculate weather variables through function or a string formula.
mov.max

Calculate the moving maximum. For compatibility only.
ttest_ts

Significantly t-test with auto-correlation for time serial data
mov.avg

Use Calculate the moving average. For compatibility only.
tt_hourly_pp

Hourly Air Temperature Interpolation
mov

Calculate the moving values
thermalTimeHourly

Calculate thermal time using the hourly temperature (non daily temperature)
interpolationFunction

Return a y value from a linear interpolation function
diurnalT

Calculate the diurnal variation in air temperature with Parton and Logan, 1981
climate_by_stages

Summarise the climate variable by growth stages
convert2Records

Convert a data frame to weaana class
createWeaAna

create WeaAna class
WeaAnaSite-class

Define the class of WeaAna
add_rh

Add relative humidity to APSIM weather data
WeaAna-class

Define the class for multiple sites
dayLength

The time elapsed in hours between the specified sun angle from 90 degree in am and pm. +ve above the horizon, -ve below the horizon.
changeWeatherRecords

Change weather records
dp_mint

Calculate Dew Point Temperature from Minimum Temperature and Relative Humidity
mov.sum

Calculate the moving sum. For compatibility only.
records

Demo weather records
mov.min

Calculate the moving minimum. For compatibility only.
[,WeaAna-method

Getter to access the weather data at a specific position.
getWeatherRecords

Get all weather records by year range
readWeatherRecords

Read weather records from a file list and/or a folder list
result-class

Define the class for statistics results
show,WeaAna-method

Show basic information of class WeaAna