how to fix this issue "Error in if (seasonal) { : argument is of length zero"

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

My guess is that there is no variable called sfcwind in the input file. Perhaps it's sfcWind?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.