Cleanning the code.
Use defaull fill_value instead of original & output i2 instead of i4.
Better handling masked input values into the output.
Also saves variables latitude/longitude 1D each.
Minor upgrade.