Extracted creation of masked wind array from plot function, to be reused in new function to write geotiff image (which may be reprojected)