refactored to use scipy to read large netcdf files and it works!