Changeset 40165 for trunk/Ohana/src/opihi
- Timestamp:
- Oct 11, 2017, 10:10:18 AM (9 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 28 edited
- 2 copied
-
. (modified) (1 prop)
-
src/opihi/cmd.astro/cdot.c (modified) (1 diff)
-
src/opihi/cmd.astro/cgrid.c (modified) (1 diff)
-
src/opihi/cmd.astro/cline.c (modified) (1 diff)
-
src/opihi/cmd.astro/czplot.c (modified) (2 diffs)
-
src/opihi/cmd.data/Makefile (modified) (1 diff)
-
src/opihi/cmd.data/dot.c (modified) (1 diff)
-
src/opihi/cmd.data/grid.c (modified) (1 diff)
-
src/opihi/cmd.data/init.c (modified) (2 diffs)
-
src/opihi/cmd.data/line.c (modified) (1 diff)
-
src/opihi/cmd.data/periodogram-fm.c (copied) (copied from branches/eam_branches/ohana.20170822/src/opihi/cmd.data/periodogram-fm.c )
-
src/opihi/cmd.data/test/periodogram-fm.sh (copied) (copied from branches/eam_branches/ohana.20170822/src/opihi/cmd.data/test/periodogram-fm.sh )
-
src/opihi/cmd.data/test/periodogram.sh (modified) (3 diffs)
-
src/opihi/cmd.data/zplot.c (modified) (2 diffs)
-
src/opihi/dvo/catalog.c (modified) (1 diff)
-
src/opihi/dvo/dmt.c (modified) (1 diff)
-
src/opihi/dvo/fitcolors.c (modified) (4 diffs)
-
src/opihi/dvo/fitsed.c (modified) (1 diff)
-
src/opihi/dvo/images.c (modified) (1 diff)
-
src/opihi/dvo/imbox.c (modified) (1 diff)
-
src/opihi/dvo/imdense.c (modified) (1 diff)
-
src/opihi/dvo/imstats.c (modified) (1 diff)
-
src/opihi/dvo/paverage.c (modified) (1 diff)
-
src/opihi/dvo/pmeasure.c (modified) (1 diff)
-
src/opihi/dvo/procks.c (modified) (2 diffs)
-
src/opihi/dvo/showtile.c (modified) (1 diff)
-
src/opihi/dvo/simage.c (modified) (1 diff)
-
src/opihi/dvo/skycat.c (modified) (1 diff)
-
src/opihi/pantasks/JobIDOps.c (modified) (1 diff)
-
src/opihi/pantasks/test/nice_remote.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
/branches/eam_branches/ohana.20170822 (added) merged: 40122-40125,40141-40146,40155-40156,40158-40159,40163-40164
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/cmd.astro/cdot.c
r34088 r40165 22 22 23 23 /* set point style and errorbar mode (these are NOT sticky) */ 24 graphmode.style = 2;24 graphmode.style = KAPA_PLOT_POINTS; /* points */ 25 25 graphmode.etype = 0; 26 26 -
trunk/Ohana/src/opihi/cmd.astro/cgrid.c
r34584 r40165 276 276 /* send the line segments as connect-points */ 277 277 Xvec.Nelements = Yvec.Nelements = N; 278 graphmode.style = 2; /* points */279 graphmode.ptype = 100; /* connect a pair*/278 graphmode.style = KAPA_PLOT_POINTS; /* points */ 279 graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */ 280 280 graphmode.etype = 0; 281 281 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/cmd.astro/cline.c
r34088 r40165 20 20 21 21 /* set point style and errorbar mode (these are NOT sticky) */ 22 graphmode.style = 0;22 graphmode.style = KAPA_PLOT_CONNECT; 23 23 graphmode.etype = 0; 24 24 -
trunk/Ohana/src/opihi/cmd.astro/czplot.c
r35757 r40165 111 111 Zvec.Nelements = Npts; 112 112 113 graphmode.style = 2;113 graphmode.style = KAPA_PLOT_POINTS; /* points */ 114 114 graphmode.size = -1; /* point size determined by Zvec */ 115 115 graphmode.etype = 0; … … 236 236 Zvec.Nelements = Npts; 237 237 238 graphmode.style = 2;238 graphmode.style = KAPA_PLOT_POINTS; 239 239 graphmode.color = -1; /* point color determined by Zvec */ 240 240 graphmode.etype = 0; -
trunk/Ohana/src/opihi/cmd.data/Makefile
r40007 r40165 102 102 $(SRC)/peak.$(ARCH).o \ 103 103 $(SRC)/periodogram.$(ARCH).o \ 104 $(SRC)/periodogram-fm.$(ARCH).o \ 104 105 $(SRC)/plot.$(ARCH).o \ 105 106 $(SRC)/dot.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.data/dot.c
r33963 r40165 29 29 30 30 /* set point style and errorbar mode (these are NOT sticky) */ 31 graphmode.style = 2;31 graphmode.style = KAPA_PLOT_POINTS; 32 32 graphmode.etype = 0; 33 33 -
trunk/Ohana/src/opihi/cmd.data/grid.c
r34584 r40165 175 175 176 176 Xvec.Nelements = Yvec.Nelements = N; 177 graphmode.style = 2; /* points */178 graphmode.ptype = 100; /* connect a pair*/177 graphmode.style = KAPA_PLOT_POINTS; /* points */ 178 graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */ 179 179 graphmode.etype = 0; 180 180 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/cmd.data/init.c
r40007 r40165 91 91 int peak PROTO((int, char **)); 92 92 int periodogram PROTO((int, char **)); 93 int periodogram_fm PROTO((int, char **)); 93 94 int plot PROTO((int, char **)); 94 95 int dot PROTO((int, char **)); … … 270 271 {1, "parity", parity, "set image parity"}, 271 272 {1, "peak", peak, "find vector peak in range"}, 272 {1, "periodogram", periodogram, "measure periods in unevenly sampled data"}, 273 {1, "periodogram", periodogram, "measure periods in unevenly sampled data (Lomb-Scargle)"}, 274 {1, "periodogram_fm", periodogram_fm, "measure periods in unevenly sampled data (generalized Lomb-Scargle; floating mean)"}, 273 275 {1, "plot", plot, "plot a pair of vectors"}, 274 276 {1, "png", jpeg, "convert display graphic to PNG"}, -
trunk/Ohana/src/opihi/cmd.data/line.c
r33662 r40165 33 33 34 34 /* set point style and errorbar mode (these are NOT sticky) */ 35 graphmode.style = 0;35 graphmode.style = KAPA_PLOT_CONNECT; 36 36 graphmode.etype = 0; 37 37 -
trunk/Ohana/src/opihi/cmd.data/test/periodogram.sh
r27435 r40165 1 2 if (not($?PLOT)) set PLOT = 0 1 3 2 4 list tests … … 28 30 echo "OFFSET: {$peakpos - $P}" 29 31 end 32 33 if ($PLOT) 34 lim period power; clear; box; line -c red70 -lw 3 $P 0 to $P $peakval; plot period power -x line 35 end 30 36 end 31 37 … … 99 105 100 106 periodogram t f 2 30 period power 107 108 # lim -n 0 t f; clear; box; plot -x 2 -pt 2 t f 109 # lim -n 1 period power; clear; box; plot period power 110 111 peak -q period power 112 113 if (abs ($peakpos - $P) > 0.05) 114 $PASS = 0 115 end 116 end 117 118 # test using random samples, offset start, non-zero DC 119 macro test5 120 $PASS = 1 121 break -auto off 122 123 local P PI 124 $PI = 3.14159265359 125 $P = 15.0 126 127 delete -q x t f period power 128 129 create x 500 800 130 set t = 300 * rnd(x) + 500 131 set f = sin(2*$PI*t/$P) + 0.5 132 133 periodogram t f 2 30 period power 134 135 # lim -n 0 t f; clear; box; plot -x 2 -pt 2 t f 136 # lim -n 1 period power; clear; box; plot period power 137 138 peak -q period power 139 140 if (abs ($peakpos - $P) > 0.05) 141 $PASS = 0 142 end 143 end 144 145 # test using random samples, offset start, non-zero DC, some noise 146 macro test6 147 $PASS = 1 148 break -auto off 149 150 local P PI 151 $PI = 3.14159265359 152 $P = 15.0 153 154 delete -q x t f period power 155 156 create x 500 800 157 set t = 300 * rnd(x) + 500 158 set fraw = sin(2*$PI*t/$P) + 0.5 159 160 # 0.05 : peakpos = 14.95 161 # 0.10 : peakpos = 15.04 ( 162 gaussdev df t[] 0.0 0.25 163 set f = fraw + df 164 165 periodogram t f 2 30 period power 166 167 # lim -n 0 t f; clear; box; plot -x 2 -pt 2 t f 168 # lim -n 1 period power; clear; box; plot period power 169 170 peak -q period power 171 172 if (abs ($peakpos - $P) > 0.05) 173 $PASS = 0 174 end 175 end 176 177 # test using fewer random samples, offset start, non-zero DC, some noise 178 macro test7 179 $PASS = 1 180 break -auto off 181 182 local P PI 183 $PI = 3.14159265359 184 $P = 15.0 185 186 delete -q x t f period power 187 188 create x 0 100 189 set t = 100 * rnd(x) 190 set fraw = sin(2*$PI*t/$P) + 0.5 191 192 # 0.05 : peakpos = 14.95 193 # 0.10 : peakpos = 15.04 ( 194 gaussdev df t[] 0.0 0.25 195 set f = fraw + df 196 197 periodogram t f 2 30 period power 198 199 # lim -n 0 t f; clear; box; plot -x 2 -pt 2 t f 200 # lim -n 1 period power; clear; box; plot period power 201 202 peak -q period power 203 204 if (abs ($peakpos - $P) > 0.05) 205 $PASS = 0 206 end 207 end 208 209 # test using fewer random samples, high frequency, non-zero DC, some noise 210 macro test8 211 if ($0 != 2) 212 echo "USAGE: test8: Ndays") 213 break 214 end 215 216 local Ndays 217 $Ndays = $1 218 219 $PASS = 1 220 break -auto off 221 222 local P PI 223 $PI = 3.14159265359 224 $P = 0.8*rnd(0) + 0.2 225 $trueP = $P 226 227 delete -q x t f period power 228 229 create x 0 $Ndays 230 231 # t is a time in days, but we always have 4 within 1 hour: 232 set t0 = int(100 * rnd(x)) 233 set dtx = (3/24) * rnd(x) 234 set t0 = t0 + dtx 235 236 set dt1 = (15.0 / 1440) * rnd(x) + ( 0 + 7.5) / 1440 237 set dt2 = (15.0 / 1440) * rnd(x) + (15 + 7.5) / 1440 238 set dt3 = (15.0 / 1440) * rnd(x) + (30 + 7.5) / 1440 239 240 delete -q t 241 concat t0 t 242 set tmp = t0 + dt1; concat tmp t 243 set tmp = t0 + dt2; concat tmp t 244 set tmp = t0 + dt3; concat tmp t 245 246 set fraw = sin(2*$PI*t/$P) + 0.5 247 248 # 0.05 : peakpos = 14.95 249 # 0.10 : peakpos = 15.04 ( 250 gaussdev df t[] 0.0 0.25 251 set f = fraw + df 252 253 periodogram t f 0.1 2.0 period power 101 254 102 255 # lim -n 0 t f; clear; box; plot -x 2 -pt 2 t f -
trunk/Ohana/src/opihi/cmd.data/zplot.c
r38062 r40165 117 117 118 118 /* point size determined by Zvec */ 119 graphmode.style = 2; /* plotpoints */119 graphmode.style = KAPA_PLOT_POINTS; /* points */ 120 120 graphmode.size = -1; /* point size determined by Zvec */ 121 121 PlotVectorTriplet (kapa, xvec, yvec, &Zvec, mask, &graphmode); … … 226 226 227 227 /* point size determined by Zvec */ 228 graphmode.style = 2; /* plot points */228 graphmode.style = KAPA_PLOT_POINTS; /* plot points */ 229 229 graphmode.color = -1; /* point color determined by Zvec */ 230 230 graphmode.etype = 0; /* no errorbars */ -
trunk/Ohana/src/opihi/dvo/catalog.c
r38471 r40165 390 390 REALLOCATE (Zvec.elements, float, MAX (Zvec.Nelements, 1)); 391 391 392 graphmode.style = 2; /* set style topoints */392 graphmode.style = KAPA_PLOT_POINTS; /* points */ 393 393 graphmode.size = -1; /* point size determined by Zvec */ 394 394 graphmode.etype = 0; /* no errorbars */ -
trunk/Ohana/src/opihi/dvo/dmt.c
r39457 r40165 150 150 vec5[0].Nelements = Dvec.Nelements; 151 151 } else { 152 graphmode.style = 2; /* set style topoints */152 graphmode.style = KAPA_PLOT_POINTS; /* points */ 153 153 PlotVector (kapa, N, Xvec.elements, Yvec.elements, &graphmode); 154 154 -
trunk/Ohana/src/opihi/dvo/fitcolors.c
r39457 r40165 92 92 graphdata.ymin = minDelta; 93 93 graphdata.ymax = maxDelta; 94 graph data.style = 2;95 graph data.ptype = 2;94 graphmode.style = KAPA_PLOT_POINTS; /* points */ 95 graphmode.ptype = KAPA_POINT_CIRCLE_SOLID; /* connect pairs of points */ 96 96 KapaClearSections (kapa); 97 97 KapaSetFont (kapa, "helvetica", 14); … … 192 192 graphdata.ymin = minDelta; 193 193 graphdata.ymax = maxDelta; 194 graph data.style = 2;195 graph data.ptype = 2;194 graphmode.style = KAPA_PLOT_POINTS; /* points */ 195 graphmode.ptype = KAPA_POINT_CIRCLE_SOLID; /* connect pairs of points */ 196 196 } 197 197 … … 315 315 deltaFit[i] = C0 + C1*colorFit[i]; 316 316 } 317 graph data.style = 0;317 graphmode.style = KAPA_PLOT_CONNECT; /* lines */ 318 318 graphdata.color = KapaColorByName ("red"); 319 319 … … 329 329 KapaSetFont (kapa, "helvetica", 14); 330 330 331 graph data.style = 2;331 graphmode.style = KAPA_PLOT_POINTS; /* points */ 332 332 graphdata.color = KapaColorByName ("black"); 333 333 -
trunk/Ohana/src/opihi/dvo/fitsed.c
r39457 r40165 157 157 if (!GetGraph (&graphdata, &kapa, NULL)) return (FALSE); 158 158 SetLimitsRaw (wavecode, NULL, Nfilter, &graphdata); 159 graphdata.style = 2;160 graphdata.ptype = 2;159 graphdata.style = KAPA_PLOT_POINTS; /* points */ 160 graphdata.ptype = KAPA_POINT_CIRCLE_SOLID; 161 161 KapaClearSections (kapa); 162 162 magSection.name = strcreate ("mag"); -
trunk/Ohana/src/opihi/dvo/images.c
r37807 r40165 352 352 Xvec.Nelements = Yvec.Nelements = N; 353 353 if (N > 0) { 354 graphmode.style = 2; /* points */355 graphmode.ptype = 100; /* connect pairs of points */354 graphmode.style = KAPA_PLOT_POINTS; /* points */ 355 graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */ 356 356 graphmode.etype = 0; 357 357 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/dvo/imbox.c
r39926 r40165 156 156 Xvec.Nelements = Yvec.Nelements = Npts; 157 157 if (Npts > 0) { 158 graphmode.style = 2; /* points */159 graphmode.ptype = 100; /* connect pairs of points */158 graphmode.style = KAPA_PLOT_POINTS; /* points */ 159 graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */ 160 160 graphmode.etype = 0; 161 161 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/dvo/imdense.c
r39926 r40165 59 59 Xvec.Nelements = Yvec.Nelements = N; 60 60 if (N > 0) { 61 graphmode.style = 2; /* points */61 graphmode.style = KAPA_PLOT_POINTS; /* points */ 62 62 graphmode.etype = 0; 63 63 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/dvo/imstats.c
r37807 r40165 51 51 if (AutoLimits) SetLimits (&Xvec, &Yvec, &graphmode); 52 52 53 graphmode.style = 2;53 graphmode.style = KAPA_PLOT_POINTS; /* points */ 54 54 graphmode.etype = 0; 55 55 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/dvo/paverage.c
r39457 r40165 81 81 return (FALSE); 82 82 } 83 graphmode.style = 2; /* set style topoints */83 graphmode.style = KAPA_PLOT_POINTS; /* points */ 84 84 graphmode.size = -1; /* point size determined by Zvec */ 85 85 graphmode.etype = 0; /* no errorbars */ -
trunk/Ohana/src/opihi/dvo/pmeasure.c
r39457 r40165 154 154 return (FALSE); 155 155 } 156 graphmode.style = 2; /* set style topoints */156 graphmode.style = KAPA_PLOT_POINTS; /* points */ 157 157 graphmode.size = -1; /* point size determined by Zvec */ 158 158 graphmode.etype = 0; /* no errorbars */ -
trunk/Ohana/src/opihi/dvo/procks.c
r39457 r40165 111 111 Yvec.Nelements = Xvec.Nelements = N; 112 112 113 graphmode.style = 2; /* set style topoints */113 graphmode.style = KAPA_PLOT_POINTS; /* points */ 114 114 graphmode.etype = 0; /* no errorbars */ 115 115 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); … … 142 142 Yvec.Nelements = Xvec.Nelements = N; 143 143 144 graphmode.style = 2; /* set style topoints */145 graphmode.ptype = 100; /* connect pairs */144 graphmode.style = KAPA_PLOT_POINTS; /* points */ 145 graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */ 146 146 graphmode.etype = 0; /* no errorbars */ 147 147 -
trunk/Ohana/src/opihi/dvo/showtile.c
r39457 r40165 78 78 Xvec.Nelements = Yvec.Nelements = N; 79 79 if (N > 0) { 80 graphmode.style = 2; /* points */81 graphmode.ptype = 100; /* connect pairs of points */80 graphmode.style = KAPA_PLOT_POINTS; /* points */ 81 graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */ 82 82 graphmode.etype = 0; 83 83 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/dvo/simage.c
r37807 r40165 118 118 } 119 119 120 graphmode.style = 2;120 graphmode.style = KAPA_PLOT_POINTS; 121 121 graphmode.size = -1; 122 122 graphmode.etype = 0; -
trunk/Ohana/src/opihi/dvo/skycat.c
r39926 r40165 121 121 Xvec.Nelements = Yvec.Nelements = Npts; 122 122 if (Npts > 0) { 123 graphmode.style = 2; /* points */124 graphmode.ptype = 100; /* connect pairs of points */123 graphmode.style = KAPA_PLOT_POINTS; /* points */ 124 graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */ 125 125 graphmode.etype = 0; 126 126 PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode); -
trunk/Ohana/src/opihi/pantasks/JobIDOps.c
r23557 r40165 1 1 # include "pantasks.h" 2 2 3 # define MAX_N_JOBS 100003 # define MAX_N_JOBS 50000 4 4 static char *JobIDList; 5 5 static int JobIDPtr; -
trunk/Ohana/src/opihi/pantasks/test/nice_remote.sh
r32632 r40165 10 10 periods -timeout 20 11 11 active true 12 npending 5 12 npending 50 13 13 14 14 stdout tmp.txt … … 38 38 task meantask_local 39 39 command sleep 10 40 host anyhost40 host local 41 41 42 42 periods -poll 0.1 … … 44 44 periods -timeout 20 45 45 active true 46 npending 5 46 npending 50 47 47 48 48 stdout tmp.txt
Note:
See TracChangeset
for help on using the changeset viewer.
