oceanTime_GetTimes: Get a dataframe of ocean_times associated with files in a...

View source: R/oceanTime_GetTimes.R

oceanTime_GetTimesR Documentation

Get a dataframe of ocean_times associated with files in a folder

Description

Function to get a dataframe of ocean_times associated with files in a folder.

Usage

oceanTime_GetTimes(
  path,
  pattern,
  ref = as.POSIXct("1900-01-01 00:00:00", tz = "GMT"),
  verbose = FALSE
)

Arguments

path

- path to folder with model output files

pattern

- pattern for model output filenames (e.g. "avg_*.nc")

ref

- calendar reference (default = "1900-01-01 00:00:00")

verbose

- flag to print extra information

Details

Numeric values for ocean_times are in seconds relative to the calendar reference date.

Value

Dataframe with filename, ocean_time (in seconds), and ocean_date (POSIXct dates) as columns.


wStockhausen/wtsROMS documentation built on Feb. 2, 2025, 9:16 p.m.