updated resampling routines, datetimeindex and the netCDF interface