set_units: Set the units for meteorological point data.

View source: R/data_units_and_scaling.R

set_unitsR Documentation

Set the units for meteorological point data.

Description

Note that the contents of the data are not changed in any way. Rather, if a column called 'units' exists, its contents are modified to be that passed in the units_name argument - if the 'units' column does not exist, it is added.

Usage

set_units(point_data, units_name)

Arguments

point_data

A harp_fcst object, or a data frame.

units_name

The name of the units of the data, e.g. "m/s", "kg/m\^2" etc.

Value

A An object of the same type as point_data, but with the units column modified to contain units_name, or the units column added.


andrew-MET/harpPoint documentation built on Feb. 23, 2023, 1:06 a.m.