Changeset 31450 for trunk/Ohana/src/opihi
- Timestamp:
- May 5, 2011, 10:43:45 AM (15 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 6 edited
- 2 copied
-
cmd.data/Makefile (modified) (1 diff)
-
cmd.data/gridify.c (modified) (3 diffs)
-
cmd.data/init.c (modified) (2 diffs)
-
cmd.data/vshift.c (copied) (copied from branches/eam_branches/ipp-20110404/Ohana/src/opihi/cmd.data/vshift.c )
-
dvo/Makefile (modified) (1 diff)
-
dvo/avextract.c (modified) (3 diffs)
-
dvo/init.c (modified) (2 diffs)
-
dvo/objectcoverage.c (copied) (copied from branches/eam_branches/ipp-20110404/Ohana/src/opihi/dvo/objectcoverage.c )
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/Makefile
r29938 r31450 141 141 $(SRC)/vpop.$(ARCH).o \ 142 142 $(SRC)/vroll.$(ARCH).o \ 143 $(SRC)/vshift.$(ARCH).o \ 143 144 $(SRC)/vsmooth.$(ARCH).o \ 144 145 $(SRC)/vstats.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.data/gridify.c
r20936 r31450 4 4 5 5 int i, Nx, Ny, Xb, Yb, Normalize, N; 6 float Xmin, Xmax, dX, Ymin, Ymax, dY ;6 float Xmin, Xmax, dX, Ymin, Ymax, dY, initValue; 7 7 float *buf, *val; 8 8 int *Nval; … … 15 15 remove_argument (N, &argc, argv); 16 16 Normalize = FALSE; 17 } 18 19 initValue = 0.0; 20 if ((N = get_argument (argc, argv, "-init-value"))) { 21 remove_argument (N, &argc, argv); 22 initValue = atof(argv[N]); 23 remove_argument (N, &argc, argv); 17 24 } 18 25 … … 69 76 buf = (float *) bf[0].matrix.buffer; 70 77 for (i = 0; i < Nx*Ny; i++) { 78 buf[i] = initValue; 71 79 if (Normalize) { 72 80 if (Nval[i] == 0) { 73 buf[i] = 0;74 81 continue; 75 82 } -
trunk/Ohana/src/opihi/cmd.data/init.c
r29938 r31450 130 130 int vstats PROTO((int, char **)); 131 131 int vroll PROTO((int, char **)); 132 int vshift PROTO((int, char **)); 132 133 int vpop PROTO((int, char **)); 133 134 int vsmooth PROTO((int, char **)); … … 274 275 {1, "vmaxwell", vmaxwell, "fit a Maxwellian to a vector"}, 275 276 {1, "vpop", vpop, "remove first element of a vector"}, 276 {1, "vroll", vroll, "roll vector elements"}, 277 {1, "vroll", vroll, "roll vector elements by 1 entry"}, 278 {1, "vshift", vshift, "shift vector elements by arbitrary amount"}, 277 279 {1, "vsmooth", vsmooth, "Gaussian smooth of a vector"}, 278 280 {1, "vstats", vstats, "statistics on a vector"}, -
trunk/Ohana/src/opihi/dvo/Makefile
r27594 r31450 80 80 $(SRC)/mextract.$(ARCH).o \ 81 81 $(SRC)/mmextract.$(ARCH).o \ 82 $(SRC)/objectcoverage.$(ARCH).o \ 82 83 $(SRC)/photcodes.$(ARCH).o \ 83 84 $(SRC)/pmeasure.$(ARCH).o \ -
trunk/Ohana/src/opihi/dvo/avextract.c
r30612 r31450 5 5 off_t i, j, n, m; 6 6 int N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack; 7 int Nsecfilt, mode, VERBOSE ;7 int Nsecfilt, mode, VERBOSE, needMeasures; 8 8 char **cstack, name[1024]; 9 9 void *Signal; … … 101 101 } 102 102 103 // check the requested fields : are all average/secfilt entries, or do we need measures? 104 needMeasures = FALSE; 105 for (i = 0; !needMeasures && (i < Nfields); i++) { 106 if (fields[i].magMode == MAG_NONE) continue; 107 if (fields[i].photcode == NULL) continue; // assert this? 108 if (fields[i].photcode[0].type == PHOT_REF) needMeasures = TRUE; 109 if (fields[i].photcode[0].type == PHOT_DEP) needMeasures = TRUE; 110 } 111 103 112 // grab data from all selected sky regions 104 113 Signal = signal (SIGINT, handle_interrupt); … … 107 116 /* lock, load, unlock catalog */ 108 117 catalog.filename = skylist[0].filename[i]; 109 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF; 118 catalog.catflags = LOAD_AVES | LOAD_SECF; 119 if (needMeasures) { 120 catalog.catflags |= LOAD_MEAS; 121 } 110 122 catalog.Nsecfilt = 0; 111 123 -
trunk/Ohana/src/opihi/dvo/init.c
r27594 r31450 40 40 int lightcurve PROTO((int, char **)); 41 41 int mextract PROTO((int, char **)); 42 int mmextract PROTO((int, char **)); 42 int mmextract PROTO((int, char **)); 43 int objectcoverage PROTO((int, char **)); 43 44 int pcat PROTO((int, char **)); 44 45 int photcodes PROTO((int, char **)); … … 92 93 {1, "mextract", mextract, "extract measure data values"}, 93 94 {1, "mmextract", mmextract, "extract joined measurements"}, 95 {1, "objectcoverage", objectcoverage, "plot catalog boundaries"}, 94 96 {1, "pcat", skycat, "plot catalog boundaries"}, 95 97 {1, "photcodes", photcodes, "list photometry codes"},
Note:
See TracChangeset
for help on using the changeset viewer.
