read.ghcn: Read in ghcn data

View source: R/ghcn.R

read.ghcnR Documentation

Read in ghcn data

Description

This function reads in Global Historical Climatology Network monthly (GHCNm) data that is downloaded using download.ghcn.

Usage

read.ghcn(dataFile, metadataFile, stationId = NULL)

Arguments

dataFile

a character string giving the name of the file to read, this will be the .dat file

metadataFile

a character string giving the name of the file to read, this will be the .inv file

stationId

a character string of the station ID to extract

Value

a list that is in similar nature to the ahccd format, it contains some metadata, stationId, stationName, longitude, latitude, and elevation, as well as a data that contains year, month, temperature, and flag.

Author(s)

Chantelle Layton


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.