nvrd
Calculate light-driven alerting response over time from spectral irradiance series, returning effective, relative, and cumulative responses per timestep.
Instructions
Light-driven alerting response over time (Amundadottir nvRD).
spectral_series: per-timestep spectral irradiance rows (311 pts 390-700 nm, or 401 pts 380-780) as an inline list, OR a path to a text/CSV file with one row per line. PREFER THE FILE PATH for large/full-resolution series: a big inline array can be truncated over the MCP wire (e.g. 401-pt rows arriving as 367) and then fail the row-length check. Rows must be a SINGLE point+view orientation, in CHRONOLOGICAL order, ideally uniformly spaced at timestep_h. Pre-group multi-orientation/multi-day data and call once per orientation (§9.4 — the source's automatic per-orientation grouping is not reproduced in v1). timestep_h: hours per step. Must be <= 0.3 and yield odd nvRD filter lengths; the model is validated at 0.1 (= 6 min), the recommended value. Other steps raise ValueError. You supply the series (no Daysim). hours: optional explicit per-timestep hour vector for non-uniform spacing; must be monotonically non-decreasing. When omitted, a uniform grid (i*timestep_h) is used. Returns effective_irradiance, relative_response, and cumulative_response per timestep.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| timestep_h | No | ||
| spectral_series | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||