Learn R Programming

GHCNr (version 1.4.6)

Download Weather Station Data from GHCNd

Description

The goal of 'GHCNr' is to provide a fast and friendly interface with the Global Historical Climatology Network daily (GHCNd) database, which contains daily summaries of weather station data worldwide (). GHCNd is accessed through the web API . 'GHCNr' main functionalities consist of downloading data from GHCNd, filter it, and to aggregate it at monthly and annual scales.

Copy Link

Version

Install

install.packages('GHCNr')

Monthly Downloads

220

Version

1.4.6

License

MIT + file LICENSE

Maintainer

Emilio Berti

Last Published

October 27th, 2025

Functions in GHCNr (1.4.6)

filter_stations

Spatial Filtering of Stations
elevation_stations

Get GHCNd Station Elevation
.extract_flag

Extract GHCNd Flags
plot.ghcn_annual

Plot GHCNd Timeseries
.flags

GHCNd Flags
.missing_variables

Check Which Variables Are Absent
period_coverage

Calculate Period Coverage
.s3_annual

Annual Class Constructor
get_country

Download country shapefile from geoBoundaries
get_countries

Download multiple countries' shapefiles from geoBoundaries
plot.ghcn_quarterly

Plot GHCNd Timeseries
.daily_url

Create Request URL for Daily Summaries
.min

Calculate Minimum
plot.ghcn_monthly

Plot GHCNd Timeseries
.daily_request

Request Daily Summaries
.mean

Calculate Mean
monthly_coverage

Calculate Monthly Coverage
monthly

Calculate Monthly Summaries
stations

Get GHCNd Inventory
remove_flagged

Remove Flagged Recrods
quarterly

Calculate Quarterly Timseries
.s3_daily

Daily Class Constructor
.s3_anomaly

Anomaly Constructor
plot.ghcn_anomaly

Plot GHCN Timeseries
.check_flags

Check Flags Columns
.api_error

Handles API Errors
.sum

Calculate Sum
download_inventory

Download GHCNd Inventory File
plot.ghcn_daily

Plot GHCNd Timeseries
annual_coverage

Calculate Annual Coverage
.inventory_url

The GHCNd Inventory URL
annual

Calculate Annual Timseries
coverage

Calculate Coverage of Daily Summaries
.drop_flags

Drop Flags Columns
.max

Calculate Maximum
country_codes

Countries ISO Codes
.elevation_url

The GHCNd Station URL with Elevation
as_daily

Cast Table to Daily
anomaly

Temperature Anomaly
.s3_monthly

Monthly Class Constructor
daily

Download Daily Summaries
.add_variables

Add Columns to Handle Summarize
.s3_quarterly

Annual Quarter Constructor
CA003076680

Daily data for Station CA003076680
USC00010655

Daily data for Station USC00010655