create pixel mask from wavelength mask, given input wavelength grid

need to figure out units issue eventually; not very versatile at
the moment