Dear Users: I am able to read the file precip.nc (CMAP monthly precip) using the Rclim package. How ever, when I try to write the data in a netcdf file, I get the following error about the missing value attribute:
> pcpmon<-netcdfread("precip.nc","lon","lat","time","precip",unpack=T) > netcdfwrite(pcpmon$lon,pcpmon$lat,pcpmon$data,"pcpmon.nc",pcpmon$time,mv=-99 9) Error: Found NAs but no missing value attribute I can't figure out the error in the missing value attribute. How ca I fix the error? Thanks ZABLONE OWITI GRADUATE STUDENT Nanjing University of Information, Science and Technology College of International Education Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China Tel: +86-25-58731402 Fax: +86-25-58731456 Mob. 15077895632 Website: www.nuist.edu.cn ==================================================== [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.