I am a new user of R software. kindly see the attached codes.
I am facing "Error in if (seasonal) { : argument is of length zero".
kindly help me with how to fix it.
install climdown package (for bias correction and downscaling)
install.packages('devtools')
devtools::install_github("pacificclimate/ClimDown", ref="release")
lapply(.packages(all.available = TRUE), function(xx) library(xx,character.only = TRUE))
#load library climdown
require(ClimDown)
#set working directory
setwd('G:/Daily_ERA5,MPI')
#bias correction
qdm.netcdf.wrapper("ERA5_Asia_sfcWind_daily-1961-2005.nc", "REgrid_MPI-CSC-REMO2009_v1_day_1961-2005.nc", "BIAS-out.file", varname = "sfcwind")
Error in if (seasonal) { : argument is of length zero