-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tao
authored and
tao
committed
Jun 14, 2018
1 parent
f94e131
commit 8281dc5
Showing
4 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
convert slice-0.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-00.png | ||
convert slice-1.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-01.png | ||
convert slice-2.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-02.png | ||
convert slice-3.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-03.png | ||
convert slice-4.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-04.png | ||
convert slice-5.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-05.png | ||
convert slice-6.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-06.png | ||
convert slice-7.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-07.png | ||
convert slice-8.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-08.png | ||
convert slice-9.png -resize 800x400 -background 'rgb(255,255,255)' -compose Copy -gravity center -extent 300x300 re-09.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
f = open("cn.dat", "r") | ||
lines = f.readlines() | ||
f.close() | ||
|
||
f = open("out.xyz", "r") | ||
coords = f.readlines() | ||
f.close() | ||
|
||
new_coords = [] | ||
|
||
for i in range(len(lines)): | ||
nc = int(lines[i]) | ||
if nc > 5: | ||
new_coords.append(coords[2+i]) | ||
|
||
o = open("out.new.xyz", "w") | ||
o.write("%d\n\n"%len(new_coords)) | ||
for i in new_coords: | ||
o.write(i) | ||
o.close() | ||
|