global attributes preserved by rewrite, which fixes weights file
Merge branch 'master' of github.com:doutriaux1/regrid
ok script 'works'