Changeset 39856 for branches/czw_branch/20160809
- Timestamp:
- Dec 14, 2016, 7:28:23 AM (10 years ago)
- Location:
- branches/czw_branch/20160809/Ohana/src/opihi
- Files:
-
- 1 added
- 7 edited
-
cmd.astro/spex1dgas.c (modified) (1 diff)
-
cmd.astro/spex2dgas.c (modified) (1 diff)
-
cmd.astro/spexseq.c (modified) (1 diff)
-
cmd.data/Makefile (modified) (1 diff)
-
cmd.data/init.c (modified) (2 diffs)
-
cmd.data/rndseed.c (added)
-
cmd.data/stats-new.c (modified) (1 diff)
-
dvo/imdense.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Ohana/src/opihi/cmd.astro/spex1dgas.c
r33662 r39856 108 108 IDList = NULL; 109 109 XoList = NULL; 110 {111 // init random numbers112 long A, B;113 A = time(NULL);114 for (B = 0; A == time(NULL); B++);115 srand48(B);116 }117 110 111 // srand48() is called by startup.c 112 118 113 if (argc != 11) goto usage; 119 114 -
branches/czw_branch/20160809/Ohana/src/opihi/cmd.astro/spex2dgas.c
r33662 r39856 120 120 float XoMax, YoMax; 121 121 122 { 123 // init random numbers 124 long A, B; 125 A = time(NULL); 126 for (B = 0; A == time(NULL); B++); 127 srand48(B); 128 } 129 122 // srand48() is called by startup.c 123 130 124 if (argc != 9) goto usage; 131 125 -
branches/czw_branch/20160809/Ohana/src/opihi/cmd.astro/spexseq.c
r39457 r39856 90 90 int Nobject = 0; 91 91 92 {93 // init random numbers94 long A, B;95 A = time(NULL);96 for (B = 0; A == time(NULL); B++);97 srand48(B);98 }99 100 92 if (argc != 6) goto usage; 93 94 // srand48() is called by startup.c 101 95 102 96 // XXX enforce matching lengths on the three vectors -
branches/czw_branch/20160809/Ohana/src/opihi/cmd.data/Makefile
r39638 r39856 124 124 $(SRC)/resize.$(ARCH).o \ 125 125 $(SRC)/relocate.$(ARCH).o \ 126 $(SRC)/rndseed.$(ARCH).o \ 126 127 $(SRC)/roll.$(ARCH).o \ 127 128 $(SRC)/rotate.$(ARCH).o \ -
branches/czw_branch/20160809/Ohana/src/opihi/cmd.data/init.c
r39638 r39856 113 113 int reindex PROTO((int, char **)); 114 114 int relocate PROTO((int, char **)); 115 int rndseed PROTO((int, char **)); 115 116 int roll PROTO((int, char **)); 116 117 int rotate PROTO((int, char **)); … … 293 294 {1, "relocate", relocate, "set graphics/image window position"}, 294 295 {1, "roll", roll, "roll image to new start point"}, 296 {1, "rndseed", rndseed, "set the pseudo-random seed"}, 295 297 {1, "rotate", rotate, "rotate image"}, 296 298 {1, "save", save, "save an SAOimage style image overlay"}, -
branches/czw_branch/20160809/Ohana/src/opihi/cmd.data/stats-new.c
r15274 r39856 129 129 ALLOCATE (values, float, Nsample); 130 130 131 A = time(NULL); 132 for (B = 0; A == time(NULL); B++); 133 srand48(B); 131 // srand48() is called by startup.c 134 132 135 133 *buffer = (float *) matrix[0].buffer; -
branches/czw_branch/20160809/Ohana/src/opihi/dvo/imdense.c
r37807 r39856 4 4 int imdense (int argc, char **argv) { 5 5 6 long A, B;7 6 off_t i, Nimage; 8 7 int kapa, N, status, NPTS; … … 27 26 Rmax = graphmode.coords.crval1 + 182.0; 28 27 29 A = time(NULL); 30 for (B = 0; A == time(NULL); B++); 31 srand48(B); 28 // srand48() is called by startup.c 32 29 33 30 N = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
