Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • evalhyd-cpp evalhyd-cpp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

En prévision de l'arrivée de la forge institutionnelle INRAE, nous vous invitons à créer vos nouveaux projets sur la forge MIA.

  • HYCAR-HydroHYCAR-Hydro
  • evalhydevalhyd
  • evalhyd-cppevalhyd-cpp
  • Issues
  • #10
Something went wrong while setting issue due date.
Closed
Open
Issue created 1 year ago by Thibault Hallouin@thibault.hallouinOwner
  • New related issue

  • New related issue

undefined value returned when asking for transform 'inv'/'log'/'pow' with negative exponent with missing observations

Closed

undefined value returned when asking for transform 'inv'/'log'/'pow' with negative exponent with missing observations

In deterministic evaluation, the small value added (epsilon) to avoid zero divide/log(0) is computed using the mean of the observations, but when the observed streamflow series contains missing values (NaN), its mean evaluates to NaN, and the metric value returned is also undefined (NaN).

This is because xt::mean is used (instead of xt::nanmean) on the following lines:

  • https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd-cpp/-/blob/a8c62cd26901feb3ff1d745a24569a3814d0f023/include/evalhyd/evald.hpp#L394
  • https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd-cpp/-/blob/a8c62cd26901feb3ff1d745a24569a3814d0f023/include/evalhyd/evald.hpp#L404
  • https://gitlab.irstea.fr/HYCAR-Hydro/evalhyd/evalhyd-cpp/-/blob/a8c62cd26901feb3ff1d745a24569a3814d0f023/include/evalhyd/evald.hpp#L422

While waiting for a new version release, the easy solution is obviously to compute the epsilon value manually (e.g. taking 1% of the mean observed streamflow series) and give it to evalhyd's evald via the epsilon parameter.

Edited 1 year ago

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • Thibault Hallouin added BUG label 1 year ago

      added BUG label

    • Thibault Hallouin changed the description 1 year ago

      changed the description

    • Thibault Hallouin mentioned in commit c6537920 1 year ago

      mentioned in commit c6537920

    • Thibault Hallouin closed 1 year ago

      closed

    • François Bourgin mentioned in commit a4bc6aa7 1 year ago

      mentioned in commit a4bc6aa7

    Please register or sign in to reply
    0 Assignees
    None
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    0
    0 Participants
    Reference:

    Menu

    Explore Projects Groups Topics Snippets