Skip to content

Nouvelle dénomination open météo #9

Description

@sctfic

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:

  1. 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).
  2. Update the query parameters mapping inside fetchOpenMeteoArchiveStream.
  3. Ensure the database schema or parsing logic accommodates these new variable names if they differ.

Steps to reproduce

  1. Run a query that triggers fetchOpenMeteoArchiveStream for recent dates.
  2. Inspect the stream payload.
  3. Observe that soil_temperature_7_to_28cm and soil_moisture_7_to_28cm arrays contain empty/null values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions