nikon – How can I repair a corrupt .nef file?

I do not have any .NEF file to try this on, but exiftool’s Phil Harvey has a website called “Fix Corrupted Nikon NEF Images”. It states:

Downloading NEF images from newer Nikon cameras with Nikon Transfer 1 or older versions of ViewNX 2 (and probably Capture NX 2) may result in corrupted NEF images that can no longer be opened.

This utility repairs these corrupted NEF images for the D4, Df, D600, D610, D750, D800, D800E, D810, D850, D3200, D5200, D5300, D5500, D7100 and D7200.

It DOES NOT REPAIR images corrupted by memory card problems, disk errors, or other software. (Nikon NX-D has also been known to corrupt images (possibly related to changing the file byte ordering!), but these problems are not fixed by this utility.)

Warning! If you modify the corrupted images with any other software before fixing them with this utility, then the raw image data may be permanently lost! (This may happen for instance if you use View NX2 to geotag the images after downloading.)

So while it does not officially state the D7000 as supported, it might still work. Be careful, though, to make a backup of the file before trying this solution!