1 |
commit: 1807b7a45263b799afb132afba7de7187984a3e3 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 28 09:01:06 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 28 09:01:23 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1807b7a4 |
7 |
|
8 |
sci-chemistry/nmrpipe: Add IBS extract.M macro |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
RepoMan-Options: --force |
12 |
|
13 |
--- |
14 |
sci-chemistry/nmrpipe/ChangeLog | 10 ++++++ |
15 |
sci-chemistry/nmrpipe/files/extract.M | 37 ++++++++++++++++++++++ |
16 |
...ebuild => nmrpipe-8.1.2013.218.23.09-r1.ebuild} | 3 ++ |
17 |
3 files changed, 50 insertions(+) |
18 |
|
19 |
diff --git a/sci-chemistry/nmrpipe/ChangeLog b/sci-chemistry/nmrpipe/ChangeLog |
20 |
index 5ad1bee..0e66662 100644 |
21 |
--- a/sci-chemistry/nmrpipe/ChangeLog |
22 |
+++ b/sci-chemistry/nmrpipe/ChangeLog |
23 |
@@ -2,6 +2,16 @@ |
24 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
25 |
# $Header: $ |
26 |
|
27 |
+ 28 Oct 2013; Justin Lecher <jlec@g.o> |
28 |
+ -nmrpipe-8.1.2013.218.23.09.ebuild, +nmrpipe-8.1.2013.218.23.09-r1.ebuild, |
29 |
+ +files/extract.M: |
30 |
+ Add IBS extract.M macro |
31 |
+ |
32 |
+ 25 Oct 2013; Justin Lecher <jlec@g.o> |
33 |
+ -nmrpipe-8.1.2013.218.23.09.ebuild, +nmrpipe-8.1.2013.218.23.09-r1.ebuild, |
34 |
+ +files/extract.M: |
35 |
+ Add IBS extract.M macro |
36 |
+ |
37 |
12 Aug 2013; Justin Lecher <jlec@g.o> |
38 |
-nmrpipe-7.9.2013.021.23.09-r3.ebuild, +nmrpipe-8.1.2013.218.23.09.ebuild, |
39 |
-files/nmrpipe-7.9.2013.021.23.09-lib.patch, |
40 |
|
41 |
diff --git a/sci-chemistry/nmrpipe/files/extract.M b/sci-chemistry/nmrpipe/files/extract.M |
42 |
new file mode 100644 |
43 |
index 0000000..544d2fe |
44 |
--- /dev/null |
45 |
+++ b/sci-chemistry/nmrpipe/files/extract.M |
46 |
@@ -0,0 +1,37 @@ |
47 |
+if (sliceCode == CODE_ARGS) |
48 |
+ { |
49 |
+ ArrayNum = argVal( "an" ); /* Array size of arrayed parameter */ |
50 |
+ SpecNum = argVal( "sn" ); /* Spectrum number to be extracted */ |
51 |
+ printf(" Spectrum %3.0f out of %4.0f\n",SpecNum,ArrayNum); |
52 |
+ }; |
53 |
+ |
54 |
+if (sliceCode == CODE_INIT) |
55 |
+ { |
56 |
+ (void) setParm( fdata, NDSIZE, integer( specnum/ArrayNum ), CUR_YDIM ); |
57 |
+ }; |
58 |
+ |
59 |
+if (sliceCode >1) |
60 |
+ { |
61 |
+ exit( 0 ); |
62 |
+ }; |
63 |
+ |
64 |
+if (sliceCode < 0) |
65 |
+ { |
66 |
+ exit( 0 ); |
67 |
+ }; |
68 |
+ |
69 |
+ |
70 |
+float fid[2*size*specnum]; |
71 |
+float Single[4*size]; |
72 |
+ |
73 |
+(void) dReadB(inUnit,fid, 2*wordLen*size*specnum ); /* load the whole FID data in the array "fid" */ |
74 |
+ |
75 |
+offset = 4*size*(SpecNum-1); |
76 |
+ |
77 |
+for( i = 0; i < specnum*size*2; i = i+4*ArrayNum*size) |
78 |
+{ |
79 |
+ (void) vvCopyOff( Single, fid, 4*size, 0, offset ); /* load in the buffer array "Single" two complex spectra |
80 |
+ (phase=1,phase=2) from the "fid" array starting from offset*/ |
81 |
+ (void) dWrite( outUnit,Single,wordLen*4*size); /* write "Single in the output */ |
82 |
+ offset += 4*ArrayNum*size; |
83 |
+} |
84 |
|
85 |
diff --git a/sci-chemistry/nmrpipe/nmrpipe-8.1.2013.218.23.09.ebuild b/sci-chemistry/nmrpipe/nmrpipe-8.1.2013.218.23.09-r1.ebuild |
86 |
similarity index 99% |
87 |
rename from sci-chemistry/nmrpipe/nmrpipe-8.1.2013.218.23.09.ebuild |
88 |
rename to sci-chemistry/nmrpipe/nmrpipe-8.1.2013.218.23.09-r1.ebuild |
89 |
index 1a81a38..cd253d5 100644 |
90 |
--- a/sci-chemistry/nmrpipe/nmrpipe-8.1.2013.218.23.09.ebuild |
91 |
+++ b/sci-chemistry/nmrpipe/nmrpipe-8.1.2013.218.23.09-r1.ebuild |
92 |
@@ -208,4 +208,7 @@ src_install() { |
93 |
|
94 |
exeinto ${NMRBASE}/nmrbin.linux9 |
95 |
doexe "${T}"/nmrWish |
96 |
+ |
97 |
+ insinto ${NMRBASE}/nmrtxt |
98 |
+ doins "${FILESDIR}"/extract.M |
99 |
} |