I'm looking for a simple method (preferably C/C++/Python or even a shell command) to save RAW CFA data from array to a DNG file.
Something that would be like the following example in android https://developer.android.com/reference/android/hardware/camera2/DngCreator but for a Linux machine