Accumulates Gaussian-weighted Q and Q_c sums over (trajectory, grid) pairs.
The grid vectors must be sorted by latitude ascending so that binary
search can skip irrelevant latitude bands and break past them.
calc_sqtba_cpp(
traj_lat,
traj_lon,
traj_sigma,
traj_pollutant,
traj_weight,
grid_lat,
grid_lon
)Named list with Q and Q_c, each a numeric vector of length n_grid.
Trajectory point latitudes (degrees).
Trajectory point longitudes (degrees).
Per-point sigma (km) = sigma_base * |hour.inc|.
Pollutant concentrations at trajectory points.
Per-point weight (1 / n_steps for each date group).
Grid cell latitudes (degrees), sorted ascending.
Grid cell longitudes (degrees), same order as grid_lat.