ARCCSS-extremes / climpact

Calculate the ET-SCI climate extremes indices
GNU General Public License v3.0
42 stars 29 forks source link

"Error in missing(res) : 'missing' can only be used for arguments" when processing my own file #101

Closed GregTourte closed 1 year ago

GregTourte commented 1 year ago

I am trying to process some climate model output which I have tried to reformat into what I think should be the right format, but I keep on getting the same error whatever I try. The model output was a series on monthly files, so they have been concatenated, stripped of the irrelevant variables, and variables renamed and so on.

Note that running the climpact.ncdf.wrapper.r on the test netcdf file works fine, so i am pretty sure it is something to do with my file. I only changed the input filename when running it on my file.

Loading required package: PCICt
Error in missing(res) : 'missing' can only be used for arguments
Calls: create.indices.from.files ... create.file.metadata -> get.ts -> lapply -> lapply -> FUN -> <Anonymous>
Execution halted

The file can be found at https://www.paleo.bristol.ac.uk/~gggjlt/tfcoa.climpact.nc

Any help figuring out what I am doing wrong would be appreciated.