missing locations in the window are ignored, but now we have to record the locations as well - this produces a weirdly formatted file, so have to make sure to take this into accoutn in the R step