Changeset 5386
- Timestamp:
- Oct 19, 2005, 9:20:19 PM (21 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 43 edited
-
addstar/doc/Changes.txt (modified) (1 diff)
-
addstar/src/get2mass.c (modified) (1 diff)
-
addstar/src/get2mass_as.c (modified) (3 diffs)
-
gastro/src/gastro.c (modified) (1 diff)
-
gastro/src/gaussj.c (modified) (1 diff)
-
gastro/src/gcenter.c (modified) (3 diffs)
-
gastro/src/gfit.c (modified) (2 diffs)
-
gastro/src/gfitpoly.c (modified) (1 diff)
-
gastro2/src/gaussj.c (modified) (1 diff)
-
gastro2/src/grid.c (modified) (1 diff)
-
imclean/src/LoadStarsChad.c (modified) (2 diffs)
-
imclean/src/LoadStarsDophot.c (modified) (2 diffs)
-
imclean/src/LoadStarsSex.c (modified) (2 diffs)
-
imregister/imphot/subset.c (modified) (1 diff)
-
imregister/photreg/output.c (modified) (2 diffs)
-
imregister/src/photcode.c (modified) (2 diffs)
-
kapa/graph/DrawFrame.c (modified) (1 diff)
-
kapa/graph/DrawLabels.c (modified) (1 diff)
-
kapa/graph/DrawRotString.c (modified) (3 diffs)
-
kapa/graph/LoadObject.c (modified) (1 diff)
-
kapa/graph/PSFrame.c (modified) (1 diff)
-
kapa/graph/PSLabels.c (modified) (1 diff)
-
kii/colorbar/DragColorbar.c (modified) (1 diff)
-
kii/overlay/DrawOverlay.c (modified) (1 diff)
-
kii/overlay/PaintOverlay.c (modified) (1 diff)
-
kii/picture/CursorOps.c (modified) (2 diffs)
-
kii/picture/Remap16.c (modified) (1 diff)
-
kii/picture/Remap24.c (modified) (1 diff)
-
kii/picture/Remap32.c (modified) (1 diff)
-
kii/picture/Remap8.c (modified) (1 diff)
-
kii/setup/DrawBitmap.c (modified) (1 diff)
-
libdvo/src/dvo_image_raw.c (modified) (1 diff)
-
nightd/src/misc.c (modified) (1 diff)
-
opihi/cmd.astro/help/region (modified) (1 diff)
-
opihi/cmd.astro/region.c (modified) (1 diff)
-
opihi/dvo/cmpread.c (modified) (1 diff)
-
relphot/src/gcatalog.c (modified) (1 diff)
-
relphot/src/liststats.c (modified) (1 diff)
-
uniphot/include/uniphot.h (modified) (1 diff)
-
uniphot/src/find_image_sgroups.c (modified) (2 diffs)
-
uniphot/src/find_image_tgroups.c (modified) (3 diffs)
-
uniphot/src/liststats.c (modified) (1 diff)
-
uniphot/src/uniphot.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/doc/Changes.txt
r5239 r5386 1 2 2005.10.19 3 4 I have added the client / server mode, and tested it out to a 5 fair degree. It handles all of the available addstar modes, 6 including -ref and -cat. A handful of things still need to be 7 done, including pushing some of the logic to enforce sorting 8 into the dvo load_catalog functions. Also, I need to correct 9 the idiosyncratic problem with sky vs Myyyy for the skyprobe 10 data. There are a handful of other improvements that are 11 needed before addstar / DVO is ready for IPP release. 12 However, at this point, it is ready for internal use by the 13 grad students, but not yet ready for CFHT use with Elixir. 1 14 2 15 2005.10.07 -
trunk/Ohana/src/addstar/src/get2mass.c
r5328 r5386 28 28 29 29 for (i = 0; i < Nregions; i++) { 30 refcat = NULL; 30 31 switch (mode) { 31 32 case 0: -
trunk/Ohana/src/addstar/src/get2mass_as.c
r5328 r5386 16 16 17 17 int FilterSkip, TimeSkip; 18 int Nstars, NSTARS, Nbyte, Nextra, code,Qentry;18 int Nstars, NSTARS, Nbyte, Nextra, Qentry; 19 19 Stars *stars; 20 20 gzFile gf; … … 33 33 DEC1 = MIN (patch[0].DEC[1], UserPatch.DEC[1]); 34 34 35 FilterSkip = TimeSkip = 0;35 FilterSkip = TimeSkip = Qentry = 0; 36 36 if (photcode == TM_J) { 37 37 FilterSkip = 6; … … 102 102 stars[Nstars].M = M; 103 103 stars[Nstars].dM = dM; 104 stars[Nstars].code = code;104 stars[Nstars].code = photcode; 105 105 stars[Nstars].t = time; 106 106 stars[Nstars].found = -1; -
trunk/Ohana/src/gastro/src/gastro.c
r2435 r5386 46 46 fprintf (stderr, "good solution: %f %f (%d stars)\n", dR, (dR / sqrt(1.0*Nmatch)), Nmatch); 47 47 48 Nminterms = MIN_MATCHES; 48 49 switch (NPOLYTERMS) { 49 50 case 0: -
trunk/Ohana/src/gastro/src/gaussj.c
r2435 r5386 7 7 double big,dum,pivinv; 8 8 9 irow = icol = 0; 10 9 11 ALLOCATE (indxc, int, n); 10 12 ALLOCATE (indxr, int, n); -
trunk/Ohana/src/gastro/src/gcenter.c
r2435 r5386 25 25 26 26 SearchRadius = NX * SEARCH_RADIUS; 27 xvect = yvect = NULL; 28 Nvect = 0; 27 29 28 30 if (PLOTSTUFF) { 29 Nvect = 0;30 31 NVECT = N1*N2; 31 32 ALLOCATE (xvect, float, NVECT); … … 82 83 } 83 84 84 85 Xmin = Ymin = 0; 85 86 Fmin = Smin = 1000000.0; 86 87 rot = Rot = ROT_ZERO-dROT*NROT; … … 131 132 132 133 Fmin0 = 1000.0; 134 Smin0 = Nmin0 = Xmin0 = Ymin0 = 0; 133 135 for (k = 0; k < NPIX*NPIX; k++) { 134 136 n = N[k]; /* 1*/ -
trunk/Ohana/src/gastro/src/gfit.c
r2435 r5386 26 26 int Nvect2, NVECT2; 27 27 28 Nvect = NVECT = Nvect2 = NVECT2 = 0; 29 xvect = yvect = xvect2 = yvect2 = NULL; 30 28 31 if (PLOTSTUFF) { 29 Nvect2 = 0;30 32 NVECT2 = MAX(N1, N2); 31 Nvect = 0;32 33 NVECT = MAX(N1, N2); 33 34 ALLOCATE (xvect, float, NVECT); … … 48 49 ALLOCATE (Nextra, int, N2); 49 50 bzero (Nextra, sizeof(int) * N2); 51 52 dX = dY = N = 0; 50 53 51 54 /* assign and sort list */ -
trunk/Ohana/src/gastro/src/gfitpoly.c
r2435 r5386 100 100 on first pass, find the coeffs. 101 101 on next pass, find just the residuals */ 102 103 dX = dY = d2X = d2Y = N = 0; 102 104 for (last = 0; last < 2; last++) { 103 105 if (last) { -
trunk/Ohana/src/gastro2/src/gaussj.c
r2442 r5386 7 7 double big,dum,pivinv; 8 8 9 irow = icol = 0; 10 9 11 ALLOCATE (indxc, int, n); 10 12 ALLOCATE (indxr, int, n); -
trunk/Ohana/src/gastro2/src/grid.c
r2442 r5386 27 27 YMAX = +0.5*NFIELD*Target[0].header.Naxis[1]; 28 28 29 dX = dY = 0; 29 30 /* make two passes, with grids offset by 0.5 box for the second */ 30 31 for (n = 0; n < 2; n++) { -
trunk/Ohana/src/imclean/src/LoadStarsChad.c
r3519 r5386 27 27 /* zero things that will sum */ 28 28 for (i = 0; i < HIST_BINS; i++) { Mhist[i] = Shist[i] = 0; } 29 29 30 N = 0; 30 31 Nstars = 0; 31 32 NSTARS = 500; … … 103 104 } 104 105 satfound = done = FALSE; 106 saturate = complete = 0.0; 105 107 for (i = 0; (i < HIST_BINS) && !done; i++) { 106 108 if ((!satfound) && (Mhist[i] > 0)) { -
trunk/Ohana/src/imclean/src/LoadStarsDophot.c
r3519 r5386 21 21 double SMedHist, dMed; 22 22 23 N MedHist = 0;23 N = NMedHist = 0; 24 24 bzero (MedHist, 2002*sizeof(int)); 25 25 … … 126 126 } 127 127 satfound = done = FALSE; 128 saturate = complete = 0.0; 128 129 for (i = 0; (i < HIST_BINS) && !done; i++) { 129 130 if ((!satfound) && (Mhist[i] > 0)) { -
trunk/Ohana/src/imclean/src/LoadStarsSex.c
r3519 r5386 30 30 31 31 /* zero things that will sum */ 32 A = A2 = S2 = 0;32 N = A = A2 = S2 = 0; 33 33 gotFWHM = FALSE; 34 34 for (i = 0; i < HIST_BINS; i++) { Mhist[i] = Shist[i] = 0; } … … 117 117 } 118 118 satfound = done = FALSE; 119 saturate = complete = 0.0; 119 120 for (i = 0; (i < HIST_BINS) && !done; i++) { 120 121 if ((!satfound) && (Mhist[i] > 0)) { -
trunk/Ohana/src/imregister/imphot/subset.c
r4024 r5386 7 7 int Nsubset, NameSelectLength; 8 8 int *index; 9 10 NameSelectLength = 0; 9 11 10 12 /* allocate space for reference lists */ -
trunk/Ohana/src/imregister/photreg/output.c
r3606 r5386 81 81 char *c1, *c2, *code, *photsys, *extname; 82 82 int i; 83 unsigned inttsecond;83 unsigned long tsecond; 84 84 85 85 /* create primary header */ … … 99 99 100 100 /* add current date/time to header */ 101 str_to_time ("now", (unsigned long *)&tsecond);102 datestr = sec_to_date ( tsecond);101 str_to_time ("now", &tsecond); 102 datestr = sec_to_date ((unsigned int) tsecond); 103 103 fits_modify (&header, "DATE", "%s", 1, datestr); 104 104 fits_modify (&theader, "DATE", "%s", 1, datestr); -
trunk/Ohana/src/imregister/src/photcode.c
r5144 r5386 1 1 # include "imregister.h" 2 static char *version = "photcode $Revision: 3. 2$";2 static char *version = "photcode $Revision: 3.3 $"; 3 3 4 4 int main (int argc, char **argv) { … … 61 61 } 62 62 if (ccd == -1) { 63 fprintf (stderr, "warning: ccd % snot found in camera config file\n", ccd);63 fprintf (stderr, "warning: ccd %d not found in camera config file\n", ccd); 64 64 ccd = 0; 65 65 } -
trunk/Ohana/src/kapa/graph/DrawFrame.c
r4769 r5386 81 81 if (mode == 1) { 82 82 fontname = GetRotFont (&fontsize); 83 pos = 0; 83 84 84 85 /* temporarily assume rectilinear axes */ -
trunk/Ohana/src/kapa/graph/DrawLabels.c
r2473 r5386 7 7 char *fontname; 8 8 9 pos = 0; 9 10 fontname = GetRotFont (&size); 10 11 XSetForeground (graphic.display, graphic.gc, graphic.fore); -
trunk/Ohana/src/kapa/graph/DrawRotString.c
r4769 r5386 25 25 26 26 /* apply appropriate offset */ 27 Xoff = Yoff = 0; 27 28 switch (pos) { 28 29 case 0: Xoff = -dX; Yoff = dY; break; … … 338 339 /* compute string length */ 339 340 /* PS fonts are somewhat different scales from bitmap font equivalents */ 341 fscale = 1.0; 340 342 if (!strcmp (currentname, "times")) fscale = 1.07; 341 343 if (!strcmp (currentname, "courier")) fscale = 1.5; … … 346 348 347 349 /* apply appropriate offset */ 350 Xoff = Yoff = 0; 348 351 switch (pos) { 349 352 case 0: Xoff = -dX; Yoff = -dY; break; -
trunk/Ohana/src/kapa/graph/LoadObject.c
r4772 r5386 112 112 char *buff; 113 113 114 buff = NULL; 114 115 Npts = layout[0].objects[N].Npts; 115 116 status = 1; -
trunk/Ohana/src/kapa/graph/PSFrame.c
r4769 r5386 55 55 char string[64], *fontname; 56 56 57 pos = size = 0; 58 57 59 if (mode == 1) { size = MAX (0.02, 7.0 / P); } 58 60 if (mode == 0) { size = MAX (0.01, 4.0 / P); } -
trunk/Ohana/src/kapa/graph/PSLabels.c
r4769 r5386 7 7 char *fontname; 8 8 9 pos = 0; 9 10 fontname = GetRotFont (&size); 10 11 for (i = 0; i < 8; i++) { -
trunk/Ohana/src/kii/colorbar/DragColorbar.c
r2466 r5386 17 17 slope = layout[0].slope; 18 18 start = layout[0].start; 19 oldfrac_x = 10;19 oldfrac_x = oldfrac_y = 10; 20 20 21 21 while (1) { -
trunk/Ohana/src/kii/overlay/DrawOverlay.c
r2466 r5386 9 9 double expand, X0, Y0; 10 10 11 expand = 1.0; 11 12 if (layout[0].expand > 0) { 12 13 expand = 1 / (1.0*layout[0].expand); -
trunk/Ohana/src/kii/overlay/PaintOverlay.c
r2466 r5386 11 11 XSetForeground (graphic[0].display, graphic[0].gc, layout[0].overlay[N].color); 12 12 13 expand = 1.0; 13 14 if (layout[0].expand > 0) { 14 15 expand = 1 / (1.0*layout[0].expand); -
trunk/Ohana/src/kii/picture/CursorOps.c
r2466 r5386 5 5 double expand; 6 6 7 expand = 1.0; 7 8 if (layout[0].expand > 0) { 8 9 expand = 1 / (1.0*layout[0].expand); … … 22 23 23 24 /* notice that here, expand is the reciprocal of the expand above */ 25 expand = 1.0; 24 26 if (layout[0].expand > 0) { 25 27 expand = abs(layout[0].expand); -
trunk/Ohana/src/kii/picture/Remap16.c
r2466 r5386 26 26 white2 = 0x00ff & (white >> 8); 27 27 28 expand = expand_in = expand_out = 1.0; 28 29 if (layout[0].expand == 0) /* set up expansions */ 29 30 layout[0].expand = 1; -
trunk/Ohana/src/kii/picture/Remap24.c
r2466 r5386 27 27 white3 = 0x0000ff & (white >> 16); 28 28 29 expand = expand_in = expand_out = 1.0; 29 30 if (layout[0].expand == 0) /* set up expansions */ 30 31 layout[0].expand = 1; -
trunk/Ohana/src/kii/picture/Remap32.c
r2466 r5386 20 20 white = layout[0].white; 21 21 22 expand = expand_in = expand_out = 1.0; 22 23 if (layout[0].expand == 0) /* set up expansions */ 23 24 layout[0].expand = 1; -
trunk/Ohana/src/kii/picture/Remap8.c
r2466 r5386 20 20 white = layout[0].white; 21 21 22 expand = expand_in = expand_out = 1.0; 22 23 if (layout[0].expand == 0) /* set up expansions */ 23 24 layout[0].expand = 1; -
trunk/Ohana/src/kii/setup/DrawBitmap.c
r2466 r5386 11 11 int i, j, byte_line, byte, bit, flag; 12 12 unsigned long int black, white; 13 14 black = graphic[0].black; 15 white = graphic[0].white; 13 16 14 17 if (mode == 0) { -
trunk/Ohana/src/libdvo/src/dvo_image_raw.c
r5241 r5386 49 49 50 50 /* get datatype size */ 51 ImageSize = 0; 51 52 if (db[0].format == DVO_FORMAT_INTERNAL) ImageSize = sizeof(Image); 52 53 if (db[0].format == DVO_FORMAT_LONEOS) ImageSize = sizeof(ImageLoneos); -
trunk/Ohana/src/nightd/src/misc.c
r3466 r5386 191 191 192 192 done = FALSE; 193 exit_good = FALSE;193 exit_good = exit_stat = FALSE; 194 194 for (i = 0; !done && (i < 10*timeout); i++) { 195 195 Nread = read (rfd[0], buffer, 0x4000); -
trunk/Ohana/src/opihi/cmd.astro/help/region
r4688 r5386 10 10 AIT - aitoff projection (good for the full sky) 11 11 GLS - ?? (also good for the full sky) 12 13 optional orientation flags: 14 15 -ew : display with East Left (default) 16 +ew : display with East Right 17 -ns : display with North Down 18 +ns : display with North Up (default) -
trunk/Ohana/src/opihi/cmd.astro/region.c
r4689 r5386 89 89 set_variable ("DMAX", Dec + graphmode.ymax); 90 90 91 set_int_variable ("EAST_RIGHT", !graphmode.flipeast); 92 set_int_variable ("NORTH_UP", !graphmode.flipnorth); 93 91 94 graphmode.coords.pc1_1 = (graphmode.flipeast) ? -1 : 1; 92 95 graphmode.coords.pc2_2 = (graphmode.flipnorth) ? -1 : 1; -
trunk/Ohana/src/opihi/dvo/cmpread.c
r5144 r5386 93 93 bzero (vec[0].elements, Nstars*sizeof(float)); 94 94 95 value = 0; 95 96 for (i = 0; i < Nstars; i++) { 96 97 switch (field) { -
trunk/Ohana/src/relphot/src/gcatalog.c
r5320 r5386 3 3 int gcatalog (Catalog *catalog, int FINAL) { 4 4 5 char mode;6 7 5 if (FINAL) { 8 6 catalog[0].catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; -
trunk/Ohana/src/relphot/src/liststats.c
r4796 r5386 27 27 int i, ks, ke, Nm; 28 28 double Mo, dMo, M, dM, X2, dS, *chi; 29 30 ke = ks = dMo = 0; 29 31 30 32 stats[0].Nmeas = N; -
trunk/Ohana/src/uniphot/include/uniphot.h
r5320 r5386 76 76 int args PROTO((int argc, char **argv)); 77 77 void dumpresult PROTO(()); 78 Group *find_image_sgroups PROTO((FITS_DB *db, ImageLink * imlink, int *Nsgroup));79 Group *find_image_tgroups PROTO((FITS_DB *db, ImageLink * imlink, int *Ntgroup));78 Group *find_image_sgroups PROTO((FITS_DB *db, ImageLink **imlink, int *Nsgroup)); 79 Group *find_image_tgroups PROTO((FITS_DB *db, ImageLink **imlink, int *Ntgroup)); 80 80 void fit_sgroup PROTO((Group *sgroup, int Nsgroup)); 81 81 void fit_tgroup PROTO((Group *tgroup, int Ntgroup)); -
trunk/Ohana/src/uniphot/src/find_image_sgroups.c
r4864 r5386 1 1 # include "uniphot.h" 2 2 3 Group *find_image_sgroups (FITS_DB *db, ImageLink * imlink, int *Nsgroup) {3 Group *find_image_sgroups (FITS_DB *db, ImageLink **Imlink, int *Nsgroup) { 4 4 5 5 int i, j, Nimage, Ngroup, Nentry, NENTRY; … … 8 8 Coords coords; 9 9 Image *image; 10 ImageLink *imlink; 10 11 12 imlink = *Imlink; 11 13 image = fits_table_get_Image (&db[0].ftable, &Nimage, &db[0].swapped); 12 14 -
trunk/Ohana/src/uniphot/src/find_image_tgroups.c
r4864 r5386 1 1 # include "uniphot.h" 2 2 3 Group *find_image_tgroups (FITS_DB *db, ImageLink * imlink, int *Ntgroup) {3 Group *find_image_tgroups (FITS_DB *db, ImageLink **Imlink, int *Ntgroup) { 4 4 5 5 char *start, *stop; … … 8 8 Group *group; 9 9 Image *image; 10 ImageLink *imlink; 10 11 11 12 image = fits_table_get_Image (&db[0].ftable, &Nimage, &db[0].swapped); 13 ALLOCATE (imlink, ImageLink, Nimage); 12 14 13 15 /* sort time list (use only valid images?) */ … … 75 77 group[i].Nimage = Nentry; 76 78 } 79 *Imlink = imlink; 77 80 *Ntgroup = Ngroup; 78 81 return (group); -
trunk/Ohana/src/uniphot/src/liststats.c
r2492 r5386 27 27 int i, ks, ke, Nm; 28 28 double Mo, dMo, M, dM, X2, dS, *chi; 29 30 ke = ks = dMo = 0; 29 31 30 32 stats[0].Nmeas = N; -
trunk/Ohana/src/uniphot/src/uniphot.c
r4864 r5386 3 3 int main (int argc, char **argv) { 4 4 5 int i, N image, Ntgroup, Nsgroup;5 int i, Ntgroup, Nsgroup; 6 6 Group *tgroup, *sgroup; 7 7 ImageLink *imlinks; … … 20 20 subset_images (&db); 21 21 22 ALLOCATE (imlinks, ImageLink, Nimage); 23 tgroup = find_image_tgroups (&db, imlinks, &Ntgroup); 24 sgroup = find_image_sgroups (&db, imlinks, &Nsgroup); 22 tgroup = find_image_tgroups (&db, &imlinks, &Ntgroup); 23 sgroup = find_image_sgroups (&db, &imlinks, &Nsgroup); 25 24 26 25 /* determine fit values */
Note:
See TracChangeset
for help on using the changeset viewer.
