Displaying 1 result from an estimated 1 matches for "open_lpj_nc_gpp".
2012 Jun 29
1
number of items to replace is not a multiple of replacement length
...too basic..:-S
I have to modify some scripts someone else did to make it work with my data.
For some reason, one of the scripts which were supposed to work is not, and
I get the error message "number of items to replace is not a multiple of
replacement length".
The script is this one:
*open_lpj_nc_gpp <- function(file_name,varname,y1850_file_no,
recentre,startyr,nyrs)
{
library(ncdf)
start_yr=y1850_file_no+(startyr-1850)
print("************************************")
filename=paste(file_name,start_yr,".nc",sep="")
print("Openin...