regrid function

Regrid ir/regular data