modified the NetCDFAnimation.R