import("methods")
importFrom("parallel", makeCluster,clusterExport,parLapplyLB,stopCluster,clusterEvalQ,parLapply)
importFrom("RCurl",getCurlHandle)
importFrom("grDevices", "xy.coords")
importFrom("graphics", "abline", "axis", "box", "grid", "lines", "title")
importFrom("stats", "na.omit")
importFrom("utils", "read.table", "write.table")
importFrom("xts", endpoints,period.apply,apply.daily,apply.weekly,apply.monthly,apply.quarterly,apply.yearly,periodicity,xts,axTicksByTime)
importFrom("zoo", index,as.yearqtr,as.yearmon,"index<-")
#importClassesFrom("raster","RasterStack","RasterBrick")
importFrom("raster",nlayers,brick,calc,rasterFromCells,stack,filename,getZ,setValues,values,"values<-",wkt)
importFrom("terra",app,cellFromRowCol,cellFromXY,crs,crop,extract,ext,geom,hasValues,ncell,"NAflag<-",minmax,nlyr,plot,project, rast,res,sources,subset,trim,values,"values<-",vect,window,writeRaster,xres,xyFromCell,yres)
exportClasses(rts, RasterBrickTS, RasterStackTS, RasterStackBrickTS)
S3method("index", "RasterStackBrickTS")
S3method("index<-", "RasterStackBrickTS")
S3method("index", "SpatRasterTS")
S3method("index<-", "SpatRasterTS")
exportPattern("^[[:alpha:]]+")