<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks Elaine, but I am not sure if this link has the answer for what I am looking for.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
What I want to do within a python script is something along the lines:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
my2dnumpyarray = make_numpyarray_from_volume_datal(#0)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Where #0 is the model number of a volume in chimera. Perhaps the volume data is already stored in a numpy array in chimera (??). In this case I would need the syntax to access this numpy array within my script.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hernando</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Sent:</b> Thursday, June 30, 2022 4:21 PM<br>
<b>To:</b> Hernando J Sosa <hernando.sosa@einsteinmed.edu><br>
<b>Cc:</b> Chimera <chimera-users@cgl.ucsf.edu><br>
<b>Subject:</b> Re: [Chimera-users] volume data to numpy array</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">CAUTION: This email comes from an external source; the attachments and/or links may compromise our secure environment. Do not open or click on suspicious emails. Please click on the “Phish Alert” button on the top right of the Outlook
dashboard to report any suspicious emails.<br>
<br>
Hi Hernando,<br>
There is something about where in the code to look for this, in the Volume Viewer documentation:<br>
<<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cgl.ucsf.edu%2Fchimera%2Fdocs%2FContributedSoftware%2Fvolumeviewer%2Fvolumeviewer.html%23newformats&data=05%7C01%7Chernando.sosa%40einsteinmed.edu%7C40b87fa6088a40cdf68208da5ad61254%7C9c01f0fd65e040c089a82dfd51e62025%7C0%7C0%7C637922172734962203%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=76rg2UEDO2vI8BmOMz0TChH8cftPtRjiRH%2Fnc5USgf8%3D&reserved=0">https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cgl.ucsf.edu%2Fchimera%2Fdocs%2FContributedSoftware%2Fvolumeviewer%2Fvolumeviewer.html%23newformats&data=05%7C01%7Chernando.sosa%40einsteinmed.edu%7C40b87fa6088a40cdf68208da5ad61254%7C9c01f0fd65e040c089a82dfd51e62025%7C0%7C0%7C637922172734962203%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=76rg2UEDO2vI8BmOMz0TChH8cftPtRjiRH%2Fnc5USgf8%3D&reserved=0</a>><br>
<br>
I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D.<br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
> On Jun 30, 2022, at 12:47 PM, Hernando J Sosa via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:<br>
><br>
> Dear Chimera,<br>
> How do you read/copy volume data into a numpy array. I think I saw some code examples that do this in the past but I can't find the ink to them.<br>
> Thanks<br>
> Hernando<br>
<br>
</div>
</span></font></div>
</body>
</html>