# Open a PDB file and an XPLOR map file, rotate and save an image.
from chimerax.core.commands import run
pdb_path = '~/Downloads/ChimeraX/PDB/1grl.cif'
map_path = '~/Downloads/ChimeraX/EMDB/emd_1080.map'
models = run(session, f'open {pdb_path}')
m = models[0]
print(f'Opened {m.name} with {m.num_atoms} atoms')
maps = run(session, f'open {map_path}')
v = maps[0]
sx,sy,sz = v.data.size
print(f'Opened {v.name} with grid size {sx}, {sy}, {sz}')
run(session, 'turn y 90')
run(session, 'save image.png')