
Hi Jeff, Nearly everything Chimera does can be done from Python. Even the Chimera C++ code is called from Python. Attached is a script to save a subregion of a map. Tom # ----------------------------------------------------------------------------- # Script to open a map and save a rectangular subregion. The subregion origin # within the original map is saved so it will be placed in its original # location when both maps are opened in Chimera. # def save_subregion(map_path, ijk_min, ijk_max, subregion_path): from VolumeData import open_file, Grid_Subregion, mrc data = open_file(map_path) subregion_data = Grid_Subregion(data, ijk_min, ijk_max) mrc.write_mrc2000_grid_data(subregion_data, subregion_path) # ----------------------------------------------------------------------------- # map_path = '/usr/local/src/chimera-demos/volume/emd/emd_1007.map' ijk_min = (50,60,45) # Indices in map array. ijk_max = (70,75,91) # New map will be size (21,16,47). subreg_path = '/usr/local/src/chimera-demos/volume/emd/emd_1007_piece.map' save_subregion(map_path, ijk_min, ijk_max, subreg_path)