title: Convert raw image into a known raw image format
body: <p>I have captured some raw images from a Sony sensor (not a Sony camera, but a Sony sensor) and I would like to edit/demosaic the photo in raw format. (file extension is .raw)</p>
  
  <p>The problem: Since the image was not captured by a consumer camera on the market, the raw file format is not supported by most photo editing software. </p>
  
  <p>I have a program that could convert the raw file I captured into tiff format, however I want to open the raw file in a photo editor like PhotoShop or DxO.</p>
  
  <p>Is there a software tool that could help convert an unknown raw format into a known raw format? (Something like a .dng file) I tried looking for one, but no luck :(</p>
  
  <p>If not, would it be hard to make a program that can achieve this? What programming language will be best for the job, and which raw format is simpler to convert to?</p>
  
  <hr>
  
  <p>I am guessing the raw capture simply has a empty header with no metadata/exif, so maybe if I can copy a header from a given raw format and tweak the dimensions etc, perhaps it will work.
  This is just a very random guess, but I doubt it will work since I am not knowledgeable on this subject. </p>
  
  <p>Any help is appreciated!</p>
  
  <hr>
  
  <p>2014/08/11 edit:</p>
  
  <p>I was able to open the raw file in PhotoShop and imageJ now. (I filled in the correct dimension of the image and channels, header length etc..) It is opened as a Grey scale Bayer raw image.</p>
  
  <p>This didn't help much as I want to de-mosaic it with software such as DxO or Raw Therapee, so is there a way I could save my Grey scale Bayer image into a raw format recognized by these editing software? (For DxO it is hard as it needs to know the camera model of the raw file, which means I need to copy a header from a camera created raw file. The problem is I don't even know where to start in terms of a tool that can do this.)</p>
  
  <p>Currently what I know about the raw file:
  Size, Dimension, Channels, Header size, Bayer pattern, Endian, and Color Depth.</p>