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

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous recommandons d'y créer tous vos nouveaux projets.

  • IN-WOP
  • airGRiwrmairGRiwrm
  • Issues
  • #143
Closed
Open
Issue created Feb 29, 2024 by Thirel Guillaume@guillaume.thirelDeveloper

ConvertSD not allowing T < 0 °C

convertSD gives temperatures that are always >= 0 °C, with several values exactly equal to 0 °C.

See below an example with some personal data, I'll try to reproduce that with data from seineBasin2. It seems the argument temperature = TRUE is not passed to other functions. See in https://gitlab.irstea.fr/in-wop/airGRiwrm/-/blob/dev/R/ConvertMeteoSD.R, output <- lapply(id_runoff, ConvertMeteoSD, griwrm = x, meteo = meteo) or

  output <- ConvertMeteoSD(
    meteo[, upperIDs, drop = FALSE],
    areas = areas
  )
> griwrm
                  id               down length                  model    area
1      I5060001_ONDE I6201020_HYDRO&EDF   5.92 RunModel_CemaNeigeGR4J   98.68
2 I6122020_HYDRO&EDF      I5060001_ONDE   2.55 RunModel_CemaNeigeGR4J   91.48
3 I6201020_HYDRO&EDF I6211020_HYDRO&EDF  10.29 RunModel_CemaNeigeGR4J  298.47
4 I6302020_HYDRO&EDF I6322010_HYDRO&EDF   5.88 RunModel_CemaNeigeGR4J  138.71
5 I6322010_HYDRO&EDF I6421030_HYDRO&EDF  17.45 RunModel_CemaNeigeGR4J  183.04
6 I6211020_HYDRO&EDF       I5110200_RCS  13.91 RunModel_CemaNeigeGR4J  375.54
7       I5110200_RCS I6421030_HYDRO&EDF  14.40 RunModel_CemaNeigeGR4J  569.54
8 I6421030_HYDRO&EDF               <NA>     NA RunModel_CemaNeigeGR4J 1009.10
9 I6413010_HYDRO&EDF I6421030_HYDRO&EDF  10.93 RunModel_CemaNeigeGR4J  148.18

TempMean <- as.data.frame(ConvertMeteoSD(griwrm, TempTot, temperature = TRUE))

> summary(TempMean)
 I5060001_ONDE    I6122020_HYDRO&EDF I6201020_HYDRO&EDF I6302020_HYDRO&EDF I6322010_HYDRO&EDF I6211020_HYDRO&EDF
 Min.   : 0.000   Min.   :-7.107     Min.   : 0.000     Min.   :-6.211     Min.   : 0.000     Min.   : 0.000    
 1st Qu.: 8.272   1st Qu.: 8.438     1st Qu.: 8.217     1st Qu.: 8.532     1st Qu.: 8.632     1st Qu.: 8.486    
 Median :11.891   Median :11.968     Median :11.821     Median :12.138     Median :12.240     Median :12.109    
 Mean   :11.928   Mean   :12.003     Mean   :11.885     Mean   :12.204     Mean   :12.326     Mean   :12.149    
 3rd Qu.:15.793   3rd Qu.:15.816     3rd Qu.:15.738     3rd Qu.:16.076     3rd Qu.:16.183     3rd Qu.:16.024    
 Max.   :32.557   Max.   :32.413     Max.   :33.003     Max.   :33.561     Max.   :34.522     Max.   :32.432    
  I5110200_RCS   I6421030_HYDRO&EDF I6413010_HYDRO&EDF     DatesR                   
 Min.   : 0.00   Min.   : 0.000     Min.   :-6.677     Min.   :1951-01-01 00:00:00  
 1st Qu.: 8.58   1st Qu.: 8.656     1st Qu.: 8.595     1st Qu.:1988-07-01 12:00:00  
 Median :12.20   Median :12.267     Median :12.197     Median :2025-12-31 00:00:00  
 Mean   :12.25   Mean   :12.340     Mean   :12.255     Mean   :2025-12-31 00:00:00  
 3rd Qu.:16.15   3rd Qu.:16.210     3rd Qu.:16.149     3rd Qu.:2063-07-01 12:00:00  
 Max.   :32.68   Max.   :34.491     Max.   :33.973     Max.   :2100-12-31 00:00:00
Assignee
Assign to
Time tracking