strip_ice: Strip Snow and Ice Variables at Depth

View source: R/NM functions.R

strip_iceR Documentation

Strip Snow and Ice Variables at Depth

Description

This function removes the snow and ice columns from a dataframe if depth = "D".

Usage

strip_ice(data, dt)

Arguments

data

A dataframe containing a summarised month from NEMO-MEDUSA model outputs, at a single depth.

dt

Switch for using either data.table or dplyr methods (TRUE/FALSE respectively)

Details

Some variables are only relevant in the shallow zone of StrathE2E polar. There is no sea-ice 60 m under the sea. This means, when dataframes containing both shallow and deep data are split by depth, empty columns can be introduced. These empty columns can cause problems in downstream functions, such as plotting by column. This function removes the empty columns.

Value

If the 'data' contains shallow data, no action is taken. If 'data' contains deep data, columns for variables only relevant in the shallow zone are dropped.

See Also

Other NEMO-MEDUSA averages: NM_boundary_summary(), NM_decadal_summary(), NM_volume_summary(), decadal()


Jack-H-Laverick/MiMeMo.tools documentation built on March 6, 2023, 3:44 p.m.