• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revisiona0f30221cd8aec4b640772b7fd6570cd2dd126e6 (tree)
Time2014-09-17 14:55:28
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: data of TIPS: for using FFT or Convolution
new file: TIPS/CreateGridImage/Makefile

Change Summary

Incremental Difference

--- /dev/null
+++ b/TIPS/CreateGridImage/Makefile
@@ -0,0 +1,61 @@
1+#
2+# This is Makefile for Create Sample Image that has grid points.
3+#
4+
5+#### Input extention ####
6+NUL=nul
7+ONE=one
8+GRID=grid
9+TIFF=tiff
10+
11+#### Suffixes rule ####
12+.SUFFIXES: .$(NUL) .$(ONE) .$(GRID)
13+
14+#### INCLUDE ####
15+
16+#### Definition ####
17+### FileData
18+FILE_NAME=GridImage
19+# ImageSize = 1SIZE x NUM
20+1SIZE_X=10
21+1SIZE_Y=10
22+1SIZE_Z=1
23+NUM_X=16
24+NUM_Y=16
25+NUM_Z=1
26+POINT_VALUE=1
27+BACK_VALUE=0
28+# Angstrom per 1 pixel
29+LENGTH=1
30+
31+## For mrcImageScalarAdd
32+POINT_X=`expr $(1SIZE_X) / 2`
33+POINT_Y=`expr $(1SIZE_Y) / 2`
34+#POINT_Z=`expr $(1SIZE_Z) / 2`
35+POINT_Z=1
36+
37+#### Rules of the list created ####
38+
39+
40+##### Commands #####
41+NulImage::
42+ mrcImageNullImageCreate -o $(FILE_NAME).$(NUL) \
43+ -Nx $(1SIZE_X) -Ny $(1SIZE_Y) -Nz $(1SIZE_Z) \
44+ -v $(BACK_VALUE) -d $(LENGTH);
45+1PointImage::
46+ make $(FILE_NAME).$(ONE);
47+
48+GridImage::
49+ make $(FILE_NAME).$(GRID);
50+
51+Grid2Tiff::
52+ mrc2tiff -i $(FILE_NAME).$(GRID) -o $(FILE_NAME).$(TIFF);
53+
54+##### Commands(Input to Output) #####
55+.$(NUL).$(ONE):
56+ mrcImageScalarAdd -i $*.$(NUL) -o $*.$(ONE) -m 1 -v $(POINT_VALUE) \
57+ -x $(POINT_X) -y $(POINT_Y) -z $(POINT_Z);
58+
59+.$(ONE).$(GRID):
60+ mrcImageCrystalCreate -i $*.$(ONE) -o $*.$(GRID) \
61+ -nx $(NUM_X) -ny $(NUM_Y) -nz $(NUM_Z);
Show on old repository browser