bcgov / bcgov/wps

SFMS: Interpolation of weather parameters from station actuals

Open
#4,962 0 comments 0 reactions 0 assignees View on GitHub
4Refinement Task
Dominant language
Python
Stars
65
Forks
11
Avg merge
1d 2h
Merged PRs (30d)
70

Description

**Describe the task**
Use daily weather station data from WF1 to interpolate from points to raster.

**Acceptance Criteria**
- [ ] Use Inverse Distance Weighting (IDW) interpolation for all weather parameters (temp, dew point, wind speed, wind direction, precipitation).
- [ ] For dry-bulb temperature and dew point temperature (forecast + actuals), normalize the station values to sea level (0 meters elevation) before interpolating. Adjust interpolated values back to elevation using adiabatic lapse rates.
- [ ] Relative Humidity is calculated from interpolated dry-bulb and dew point temperatures.
- [ ] For wind direction, will likely need to covert to U and V components. Interpolate U and V components with IDW and then use to calculate wind direction in each cell.
- [ ] For daily FWI System calculations, interpolate noon standard time weather observations for all parameters except precipitation.
- [ ] For precipitation, interpolate the past 24 hours accumulated precipitation from yesterday at noon standard time to today at noon standard time. Determine if we can query 24-hour precipitation amounts in a single WF1 request.

**Additional Context**
- DEC 17 email from Neal
- Will outline interpolation for hourly FWI calculations in a separate ticket.
- Hourly FWI calculations do not require accumulated precipitation. For hourly we will provide hourly station observations, i.e.) how much rain fell over the past hour.
- Thin plate spline as an interpolation option.
- SME = Liz & Neal

Contributor guide

Open the contributing guide

Research direction

Start by tracing how daily WF1 station observations enter the weather and daily FWI calculation pipeline; no specific files or tests are named in the issue. Confirm the interpolation and elevation-adjustment approach with Liz and Neal, then verify that all listed parameters use the required timing, precipitation window, and wind-component handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.