<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Peter,<br>
    <br>
    I'm attaching example code that does it.<br>
    <br>
    Pavel<br>
    <br>
    <div class="moz-cite-prefix">On 7/2/19 00:13, Peter Schmidtke wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:trinity-9b44fd06-ac1e-4b54-ac2a-50dd45186b05-1562051615236@3c-app-gmx-bs30">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>Hi all,</div>
        <div> </div>
        <div>I'm trying to find sample code or documentaiton on how to
          do the following: </div>
        <div> </div>
        <div>I have a density map and a rotation/translation matrix
          (numpy matrix) and I'd like to apply it to the density map at
          hand and write the transformed map again. I know that phenix
          allows to superimpose structures and underlying densities but
          I couldn't find how to do this programatically with cctbx. </div>
        <div> </div>
        <div>Thanks in advance for your help</div>
        <div> </div>
        <div>Peter Schmidtke</div>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>