For users
For developers
Check that all the inputs have the correct shape, and that all values are finite. It also split the destination grid in nchunks parts, and process each part independently.