Hi Daniel,
PyMOL 1.7.4 has a Python API function to access a map as a numpy array:
cmd.get_volume_field, it takes the name of a map or volume object as its first
argument. PyMOL doesn't support any map formal for export, but with this
function you could write your own routine.
Example:
cmd.fetch("1ubq")
cmd.map_new("pseudomap")
data = cmd.get_volume_field("pseudomap")
# grid size
print data.shape
# world-space dimensions
print cmd.get_extent("pseudomap")
# raw data
print data
Hope that helps.
Cheers,
Thomas
On 09 Jan 2015, at 04:19, Daniel Larsson wrote:
> I have created a pseudo-low resolution electron density map from a PDB-file
> using the map_new command. Is it possible to export or save that map to a
> file? Any format should be fine.
>
> Daniel
--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.
--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net