meteogram {climatol}R Documentation

Daily meteogram of eight meteorological variables

Description

This function plots a meteogram from hourly or sub-hourly data of eight meteorological variables available in a data frame spanning one day.

Usage

  meteogram(df, code='', name='', cols=1:9, tz='utc', hlab='Hours', 
  datefm='%Y-%m-%d', vlab=c('Wind direction (deg)','Wind speed (m/s)',NA,NA,
  'Temperature (C)','Rel. humidity (%)','Precip. (mm)','Pressure (hPa)'),
  vcol=c(hsv(.1,1,.9),hsv(.1,1,.9),2,2,2,hsv(.4,1,.7),4,'brown'),
  llim=c(0,0,NA,NA,0,0,0,NA), ulim=c(360,20,NA,NA,20,100,4,NA))

Arguments

df

Data frame with (around) one day of data.

code

Code of the station.

name

Name of the station.

cols

Column order of the expected variables (see details).

tz

Time zone of the supplied time vector ('utc' by default).

hlab

Label for hours ('Hours' by default).

datefm

Date format for the title of the meteogram (the default is '%Y-%m-%d', the ISO 8601 date format).

vlab

Variable labels.

vcol

Colors for every variable.

llim

Lower graphic limits (if fixed).

ulim

Upper graphic limits (if fixed).

Details

This function expects a data frame containing observation time and eight meteorological variables in this column order:

  1. Time of the observation (as POSIXct)

  2. 10 minutes average wind direction in degrees

  3. 10 minutes average wind speed in m/s

  4. 3 sec. maximum gust direction in degrees

  5. 3 sec. maximum gust speed in m/s

  6. Air temperature in degrees Celsius

  7. Relative humidity in %

  8. Precipitation in mm

  9. Barometric pressure in hPa

However, if the data frame has these variables in a different order, it can be specified with the parameter cols.

See strftime for ways to specify date formats.

See Also

strftime

Examples

data(climatol_data)
meteogram(AWS_1day, 'S123', 'My airport')

[Package climatol version 4.1.0 Index]