• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revision27d65052d5380235a1c580d4a2656d4c7015b19a (tree)
Time2014-10-20 11:28:08
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: tutorial for mrcImageROI3D

Changes to be committed:

new file: Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile
new file: Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile-lib

Change Summary

Incremental Difference

--- /dev/null
+++ b/Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile
@@ -0,0 +1,104 @@
1+#
2+# This is Main Makefile for mrcImageROI3D.
3+#
4+
5+#### Root Makefile ####
6+MAKE_ROOT=mrcImageROI3D
7+
8+#### Input extention ####
9+INI=ini
10+OUT=roi
11+
12+#### Suffixes rule ####
13+# Defined at Sub
14+
15+#### INCLUDE ####
16+-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
17+-include Makefile-lib
18+
19+#### Definition ####
20+# Path of Input File
21+# Basically, use a linked data from /SampleData.
22+INPUT_PATH=${EOS_HOME}/tutorial/SampleData/1VOM-N.mrc
23+
24+### FileData
25+FILE_NAME=Input
26+OUT_FILE_NAME="$(FILE_NAME)-roi"
27+
28+### Option ###
29+## -x
30+X_START=10
31+X_END=50
32+## -y
33+Y_START=10
34+Y_END=50
35+## -z
36+Z_START=20
37+Z_END=60
38+
39+#### Rules of the list created ####
40+# Defined at Sub
41+
42+##### Commands #####
43+# Defined at Sub basically
44+# By make Initial, Create input data for this command.
45+Initial::
46+ make InitialData;
47+
48+# By make Exe, Execute the sample of this command.
49+Exe::
50+ make $(FILE_NAME).$(OUT)
51+
52+# By make Final, Make visualize Output for this command.
53+Final::
54+ make InitialImage;
55+ make OutputImage
56+
57+# By make all, Initial -> Exe.
58+all::
59+ make Initial;
60+ make Exe;
61+ make Final;
62+
63+help_mrcImageROI3D::
64+ @echo
65+ @echo "Makefile for mrcImageROI3D"
66+ @echo "This is Main Makefile for mrcImageROI3D."
67+ @echo
68+ @echo " (Command):"
69+ @echo " Initial: Create input data for this command."
70+ @echo " (Setting Data):"
71+ @echo " INI: input extention for Initial"
72+ @echo " OUT: output extention"
73+ @echo
74+ @echo " Exe: Execute the sample of this command."
75+ @echo " (Setting Data):"
76+ @echo " X_START: -x: start of x"
77+ @echo " X_END: -x: end of x"
78+ @echo " Y_START: -x: start of y"
79+ @echo " Y_END: -x: end of y"
80+ @echo " Z_START: -x: start of z"
81+ @echo " Z_END: -x: end of z"
82+ @echo
83+ @echo " Final: Make visualize Output for this command."
84+ @echo
85+ @echo " all: Initial -> Exe."
86+ @echo
87+ @echo " (Setting Data):"
88+ @echo " FILE_NAME: filename of input"
89+ @echo " OUT_FILE_NAME: filename of output"
90+
91+##### Commands(Input to Output) #####
92+# Defined at Sub
93+.$(INI).$(OUT):
94+ @if [ ! -z "$(X_START)" -a ! -z "$(X_END)" ] ; then \
95+ OPTION="$$OPTION -x $(X_START) $(X_END)"; \
96+ fi; \
97+ if [ ! -z "$(Y_START)" -a ! -z "$(Y_END)" ] ; then \
98+ OPTION="$$OPTION -y $(Y_START) $(Y_END)"; \
99+ fi; \
100+ if [ ! -z "$(Z_START)" -a ! -z "$(Z_END)" ] ; then \
101+ OPTION="$$OPTION -z $(Z_START) $(Z_END)"; \
102+ fi; \
103+ echo "mrcImageROI3D -i $*.$(INI) -o $(OUT_FILE_NAME).$(OUT) $$OPTION"; \
104+ mrcImageROI3D -i $*.$(INI) -o $(OUT_FILE_NAME).$(OUT) $$OPTION;
--- /dev/null
+++ b/Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile-lib
@@ -0,0 +1,42 @@
1+#
2+# This is Sub Makefile for mrcImageROI3D.
3+#
4+
5+#### Input extention ####
6+# Defined at Main
7+
8+#### Suffixes rule ####
9+.SUFFIXES: .$(INI) .$(OUT)
10+
11+#### INCLUDE ####
12+# Use TIPS File.
13+-include ${EOS_HOME}/tutorial/TIPS/Projection3DImage/Makefile/Makefile-lib
14+
15+#### Definition ####
16+# Defined at Main
17+
18+#### Rules of the list created ####
19+
20+
21+##### Commands #####
22+InitialData::
23+ touch $(FILE_NAME).$(INI);
24+ rm $(FILE_NAME).$(INI);
25+ ln -s $(INPUT_PATH) $(FILE_NAME).$(INI)
26+
27+InitialImage::
28+ export PRJ_FILE_NAME=$(FILE_NAME); \
29+ export IN_PRJ=$(INI); \
30+ export PRJ=$(INI)2d; \
31+ export OUT_PRJ=tiff; \
32+ make Projection3DImage;
33+
34+OutputImage::
35+ export PRJ_FILE_NAME=$(OUT_FILE_NAME); \
36+ export IN_PRJ=$(OUT); \
37+ export PRJ=$(OUT)2d; \
38+ export OUT_PRJ=tiff; \
39+ make Projection3DImage;
40+
41+##### Commands(Input to Output) #####
42+
Show on old repository browser