crossdata: Get the stations' data matching the trajectory records

View source: R/cqmaTools.R

crossdataR Documentation

Get the stations' data matching the trajectory records

Description

This function takes a trajectory's first point beyond the limit (over the sea) and project its latitude to an straight line made by the corresponding metereological stations

Usage

crossdata(traj.intersections, stations.df, tolerance.sec, timezone,
  searchTranslation)

Arguments

traj.intersections

A list made of a character vector and a list. The character vector is the path to each trajectory file while the list contains the first row in the trajectory file which lies over the sea

stations.df

A data.frame of metereological station data. It must have at least 4 columns: name, longitude, latitude, and file c("name", "lon", "lat", "file")

tolerance.sec

A numeric. A tolerance used when comparing dates

timezone

A character. The time zone. i.e. "GMT"

searchTranslation

A numeric. The number of seconds for searching metereological station data

Value

A list of numeric. Each number is the interpolation result from the matching stations

Author(s)

Alber Sanchez, alber.ipia@inpe.br


albhasan/cqmaTools documentation built on Dec. 12, 2023, 9:25 a.m.