|
function getHistoricalMapping() { |
Description
A regression has been observed for a few days where soil_temperature_7_to_28cm and soil_moisture_7_to_28cm values collected from Open-Meteo are returning empty (null).
The source code hasn't changed recently, meaning the issue originates from an API update on Open-Meteo's side. They have homogenized their soil variables mapping, and the old legacy ERA5 depth brackets (7_to_28cm) are no longer consistently mapped or populated in recent datasets when using default mixed models.
Location
The issue is located in the fetchOpenMeteoArchiveStream(params) function inside:
controllers/queryDbController.js
Proposed Solution (Option 1)
Update the Open-Meteo API query parameters to migrate from the deprecated depth brackets to the new standardized depths currently supported by Open-Meteo's updated models.
We need to:
- Identify the closest matching new depth layers available for our targeted locations (e.g., switching to specific depths like
18cm or new brackets like 9_to_27cm / 3_to_9cm depending on the exact dataset requirements).
- Update the query parameters mapping inside
fetchOpenMeteoArchiveStream.
- Ensure the database schema or parsing logic accommodates these new variable names if they differ.
Steps to reproduce
- Run a query that triggers
fetchOpenMeteoArchiveStream for recent dates.
- Inspect the stream payload.
- Observe that
soil_temperature_7_to_28cm and soil_moisture_7_to_28cm arrays contain empty/null values.
Probe2/controllers/queryDbController.js
Line 730 in 5fe3d20
Description
A regression has been observed for a few days where
soil_temperature_7_to_28cmandsoil_moisture_7_to_28cmvalues collected from Open-Meteo are returning empty (null).The source code hasn't changed recently, meaning the issue originates from an API update on Open-Meteo's side. They have homogenized their soil variables mapping, and the old legacy ERA5 depth brackets (
7_to_28cm) are no longer consistently mapped or populated in recent datasets when using default mixed models.Location
The issue is located in the
fetchOpenMeteoArchiveStream(params)function inside:controllers/queryDbController.jsProposed Solution (Option 1)
Update the Open-Meteo API query parameters to migrate from the deprecated depth brackets to the new standardized depths currently supported by Open-Meteo's updated models.
We need to:
18cmor new brackets like9_to_27cm/3_to_9cmdepending on the exact dataset requirements).fetchOpenMeteoArchiveStream.Steps to reproduce
fetchOpenMeteoArchiveStreamfor recent dates.soil_temperature_7_to_28cmandsoil_moisture_7_to_28cmarrays contain empty/null values.