How to demosaic a picamera raw image with rawpy?
<p>I am attempting to stack long exposures from a Pi NoIR camera. </p>

<p>The picamera raw format can be unpacked into a numpy array based on the example: <a href="http://picamera.readthedocs.io/en/release-1.10/recipes2.html#raw-bayer-data-captures" rel="nofollow noreferrer">http://picamera.readthedocs.io/en/release-1.10/recipes2.html#raw-bayer-data-captures</a></p>

<p>How can this numpy array be to converted to a rawpy (<a href="https://github.com/letmaik/rawpy" rel="nofollow noreferrer">https://github.com/letmaik/rawpy</a>) image to postprocess and demosaic? </p>