time_index: Convert a time to a time-index

View source: R/nc.R

time_indexR Documentation

Convert a time to a time-index

Description

Convert a time to a time-index

Usage

time_index(
  x,
  time = as.POSIXct(paste(Sys.Date(), "12:00:00"), format = "%Y-%m-%d %H:%M:%S", tz
    = "UTC")
)

Arguments

x

FVCOM ncdf4 object

time

one or more POSIXct times - UTC

Value

1-based index


BigelowLab/fvcom documentation built on Nov. 8, 2024, 2:24 p.m.