SantanderMetGroup / climate4R.climdex

A climate4R package for calculation of the ETCCDI core climate indices (part of the climate4R bundle)
https://github.com/SantanderMetGroup/climate4R
GNU General Public License v3.0
2 stars 4 forks source link

Error in using a function "climdexGrid()" #4

Open xiaoyujiaxyj opened 4 years ago

xiaoyujiaxyj commented 4 years ago

Hello! According to the definition of the climate index "Rnnmm", nn is a user defined threshold. When I tried to calculate the "R1mm" by using "climdexGrid()", it told me error in match.arg(index.code...). How can I define the nn threshold? The code is:

R1mm <- climdexGrid(pr = prdata, index.code = "R1mm") Error in match.arg(index.code, choices = c("FD", "SU", "ID", "TR", "GSL", : 'arg' should be one of “FD”, “SU”, “ID”, “TR”, “GSL”, “TXx”, “TNx”, “TXn”, “TNn”, “TN10p”, “TX10p”, “TN90p”, “TX90p”, “WSDI”, “CSDI”, “DTR”, “Rx1day”, “Rx5day”, “SDII”, “R10mm”, “R20mm”, “Rnnmm”, “CDD”, “CWD”, “R95pTOT”, “R99pTOT”, “PRCPTOT”

Thank you in advance!