If you have an established Nikon Capture NX2 workflow and recently bought a Leica M9 camera, this DNG to NEF converter created by Miguel Bañón is for you:
"Given a Nikon D3x NEF file (the template), and one file or a directory containing Leica M9 DNG files, the tool will create corresponding NEF files where the following are injected from the DNG file:
- A JPG preview. This is created using dcraw that you need to have in the path.
- The RAW data
- Most of the EXIF parameters
- The white balance values
The rest will be inherited from the template Nikon file, and that includes all proprietary camera settings and Capture NX controls. You can change the settings of the NEF template before running a conversion, and all newly created files will inherit them.
DNG files need to be OUT OF CAMERA v1.162 M9 firmware files an of UNCOMPRESSED RAW data. Your DNG files will never be modified as they are only read, but other versions may, and compressed files indeed will, not result in an usable NEF file."