I have a full spectrum height map that I need to convert to a 16-bit grayscale height map. Photoshop used to have much better controls for doing this with Gradient Map, and I’m not sure when that changed. Any ideas how to achieve this? For reference, white is the highest point, and blue is the lowest:

Edit: I distinctly remember a tool back in the pre-Creative Suite days where you could map a gradient to the existing colors in your image. All the colors in your image were laid out in a grid of swatches for very specific control. Beginning to think I’m losing my mind.