我有从 minimax GPS 文件导出的数据。导出的 GPS 时间似乎采用 GPS 星期几秒格式,每 ~ 0.1 秒记录一次。
data <- structure(c(243.32, 243.33, 243.34, 243.35, 243.36, 243.37, 243.38,
243.39, 243.4, 243.41, 243.42, 243.43, 243.44, 243.45, 243.46,
243.47, 243.48, 243.49, 243.5, 243.51, 243.52, 243.53, 243.54,
243.55, 243.56, 243.57, 243.58, 243.59, 243.6, 243.61, 243.62,
243.63, 243.64, 243.65, 243.66, 243.67, 243.68, 243.69, 243.7,
243.71, 243.72, 243.73, 243.74, 243.75, 243.76, 243.77, 243.78,
243.79, 243.8, 243.81, 243.82, 243.83, 243.84, 243.85, 243.86,
243.87, 243.88, 243.89, 243.9, 243.91, 243.92, 243.93, 243.94,
243.95, 243.96, 243.97, 243.98, 243.99, 244, 244.01, 244.02,
244.03, 244.04, 244.05, 244.06, 244.07, 244.08, 244.09, 244.1,
244.11, 244.12, 244.13, 244.14, 244.15, 244.16, 244.17, 244.18,
244.19, 244.2, 244.21, 244.22, 244.23, 244.24, 244.25, 244.26,
244.27, 244.28, 244.29, 244.3, 244.31, 244.32, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2,
18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, 18.2, NA,
NA, NA, NA, NA, NA, NA, 165350.6, NA, NA, NA, NA, NA, NA, NA,
NA, NA, 165350.7, NA, NA, NA, NA, NA, NA, NA, NA, NA, 165350.8,
NA, NA, NA, NA, NA, NA, NA, NA, NA, 165350.9, NA, NA, NA, NA,
NA, NA, NA, NA, NA, 165351, NA, NA, NA, NA, NA, NA, NA, NA, NA,
165351.1, NA, NA, NA, NA, NA, NA, NA, NA, NA, 165351.2, NA, NA,
NA, NA, NA, NA, NA, NA, NA, 165351.3, NA, NA, NA, NA, NA, NA,
NA, NA, NA, 165351.4, NA, NA, NA, NA, NA, NA, NA, NA, NA, 165351.5,
NA, NA, NA), .Dim = c(101L, 3L), .Dimnames = list(NULL, c("Time",
"StRate", "GPStime")))
我需要将此文件中的 GPS 时间与另一个 UTC 格式的文件中的 GPS 时间进行匹配
%Y/%m/%d %H:%M:%S
。通过输入 GPS 周和 GPS 周秒数,我可以使用在线计算器将上面代码中的 gps 时间转换为 UTC 格式。我想知道是否有一种快速的方法可以将一周中的 GPS 秒数转换为 R 中的 UTC 时间,因为我有许多来自不同周的不同文件
谢谢