review_profiles: Visually inspect temperature, salinity, and density profiles...

View source: R/review_profiles.R

review_profilesR Documentation

Visually inspect temperature, salinity, and density profiles (R workflow)

Description

Visually inspect profile data to evaluate whether they are acceptable. Profiles that are acceptable will be copied to a review directory. Unacceptable profiles will be removed from the directory and may need to be re-evaluated using wrapper_flag_interpolate() or other remedial measures. This function skips profiles that have already been reviewed and accepted.

Usage

review_profiles(
  rds_dir_path,
  threshold = -1e-05,
  in_pattern = "_qc.rds",
  out_pattern = "_final.rds"
)

Arguments

rds_dir_path

Filepath to directory containing rds files to be reviewed.

threshold

Numerical. Threshold for flagging a density inversion. Must be negative. Default (-1e-5) is the buoyancy frequency threshold PMEL uses. GTSPP uses a density threshold of 0.05.

in_pattern

Character vector search pattern for input files. Default = "_qc.rds"

out_pattern

Character vector to append to filename. Default = "_final.rds"

Value

Writes accepted profiles to rds_dir_path with out_pattern appended.

Author(s)

Sean Rohan


afsc-gap-products/gapctd documentation built on March 5, 2025, 3:42 a.m.