Changeset 31092
- Timestamp:
- Mar 30, 2011, 9:46:36 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213/Ohana/src
- Files:
-
- 8 edited
- 2 copied
-
addstar/include/skycells.h (modified) (1 diff)
-
addstar/src/args_skycells.c (modified) (2 diffs)
-
addstar/src/sky_tessalation.c (modified) (1 diff)
-
gcompare/Makefile (modified) (1 diff)
-
gcompare/include/gcompare.h (modified) (1 diff)
-
gcompare/src/gc_compare.c (copied) (copied from trunk/Ohana/src/gcompare/src/gc_compare.c )
-
gcompare/src/gcompare.c (modified) (5 diffs)
-
opihi/cmd.astro/Makefile (modified) (1 diff)
-
opihi/cmd.astro/cline.c (copied) (copied from trunk/Ohana/src/opihi/cmd.astro/cline.c )
-
opihi/cmd.astro/init.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/Ohana/src/addstar/include/skycells.h
r28673 r31092 69 69 double CELLSIZE; 70 70 int LEVEL; 71 char PROJECTION_NUMBER[8]; 71 72 72 73 double CENTER_RA, CENTER_DEC; -
branches/eam_branches/ipp-20110213/Ohana/src/addstar/src/args_skycells.c
r28673 r31092 93 93 remove_argument (N, &argc, argv); 94 94 OVERLAP_DEC = atof (argv[N]); 95 remove_argument (N, &argc, argv); 96 } 97 PROJECTION_NUMBER[0] = 0; 98 if ((N = get_argument (argc, argv, "-projection-number"))) { 99 remove_argument (N, &argc, argv); 100 int projection_number = atoi(argv[N]); 101 // We store projection number as a string, but range check as a number 102 if (projection_number > 10000) { 103 fprintf (stderr, "maximum projection-number value is 10000\n"); 104 help(); 105 } else if (projection_number < 0) { 106 fprintf (stderr, "projection-number value must be > 0\n"); 107 help(); 108 } 109 strcpy(PROJECTION_NUMBER, argv[N]); 95 110 remove_argument (N, &argc, argv); 96 111 } … … 208 223 fprintf (stderr, " -nx Nx : subdivide skycell projection in x by Nx\n"); 209 224 fprintf (stderr, " -ny Ny : subdivide skycell projection in y by Ny\n"); 225 fprintf (stderr, " -projection-number Np : set projection-number (local mode only)\n"); 210 226 fprintf (stderr, " -help : this list\n"); 211 227 fprintf (stderr, " -h : this list\n\n"); -
branches/eam_branches/ipp-20110213/Ohana/src/addstar/src/sky_tessalation.c
r30613 r31092 208 208 sky_rectangle_local (&rectangle); 209 209 strcpy (rectangle.name, "skycell"); 210 211 if (strlen(PROJECTION_NUMBER) > 0) { 212 // We store projection number as a string so one can pass in 213 // values like 00, 01, etc. 214 strcat(rectangle.name, "."); 215 strcat(rectangle.name, PROJECTION_NUMBER); 216 } 210 217 211 218 // subdivide each image (Nx x Ny subcells) -
branches/eam_branches/ipp-20110213/Ohana/src/gcompare/Makefile
r12842 r31092 24 24 $(SRC)/compare.$(ARCH).o $(SRC)/sort.$(ARCH).o \ 25 25 $(SRC)/count_neighbors.$(ARCH).o $(SRC)/nextline.$(ARCH).o \ 26 $(SRC)/nextword.$(ARCH).o $(SRC)/gcompare.$(ARCH).o 26 $(SRC)/nextword.$(ARCH).o $(SRC)/gcompare.$(ARCH).o \ 27 $(SRC)/gc_compare.$(ARCH).o 27 28 28 29 $(GCOMPARE): $(INC)/gcompare.h -
branches/eam_branches/ipp-20110213/Ohana/src/gcompare/include/gcompare.h
r21153 r31092 26 26 data_type input PROTO((char *, int, int, int)); 27 27 match_type *compare PROTO((data_type, data_type, int *, double, double, double, double)); 28 match_type *gc_compare PROTO((data_type, data_type, int *, double, double, double, double)); 28 29 int get_argument PROTO((int, char **, char *)); 29 30 int remove_argument PROTO((int, int *, char **)); -
branches/eam_branches/ipp-20110213/Ohana/src/gcompare/src/gcompare.c
r16040 r31092 6 6 7 7 int Nskip1, Nskip2, Nmatches, N; 8 int X1, X2, Y1, Y2, deltas, match, nomatch1, nomatch2 ;8 int X1, X2, Y1, Y2, deltas, match, nomatch1, nomatch2, greatcircle; 9 9 data_type data1, data2; 10 10 match_type *matches; … … 12 12 13 13 DX = DY = Nskip1 = Nskip2 = 0; 14 noauto = match = nomatch1 = nomatch2 = deltas = FALSE;14 noauto = match = nomatch1 = nomatch2 = deltas = greatcircle = FALSE; 15 15 16 16 if (remove_argument(get_argument (argc, argv, "-d"), &argc, argv)) … … 26 26 if (remove_argument(get_argument (argc, argv, "-n2"), &argc, argv)) 27 27 nomatch2 = TRUE; 28 if (remove_argument(get_argument (argc, argv, "-C"), &argc, argv)) 29 greatcircle = TRUE; 28 30 if (!(match || deltas || nomatch1 || nomatch2)) { 29 31 fprintf (stderr, "no output mode, use at least one of -d, -m, -n1, or -n2\n"); … … 75 77 76 78 fprintf (stderr, "noauto: %e\n", noauto); 77 matches = compare (data1, data2, &Nmatches, radius, DX, DY, noauto); 79 if (greatcircle) { 80 matches = gc_compare (data1, data2, &Nmatches, radius, DX, DY, noauto); 81 } 82 else { 83 matches = compare (data1, data2, &Nmatches, radius, DX, DY, noauto); 84 } 85 78 86 79 87 output (data1, data2, matches, Nmatches, match, deltas, nomatch1, nomatch2); … … 90 98 fprintf (stderr, " -d return delta coords\n"); 91 99 fprintf (stderr, " -m return matched lines\n"); 100 fprintf (stderr, " -C uses great circle calculation\n"); 92 101 fprintf (stderr, " -n1 return unmatched lines, file 1\n"); 93 102 fprintf (stderr, " -n2 return unmatched lines, file 2\n"); -
branches/eam_branches/ipp-20110213/Ohana/src/opihi/cmd.astro/Makefile
r25757 r31092 22 22 $(SRC)/coords.$(ARCH).o \ 23 23 $(SRC)/cdot.$(ARCH).o \ 24 $(SRC)/cline.$(ARCH).o \ 24 25 $(SRC)/cplot.$(ARCH).o \ 25 26 $(SRC)/csystem.$(ARCH).o \ -
branches/eam_branches/ipp-20110213/Ohana/src/opihi/cmd.astro/init.c
r25757 r31092 6 6 int coords PROTO((int, char **)); 7 7 int cdot PROTO((int, char **)); 8 int cline PROTO((int, char **)); 8 9 int cplot PROTO((int, char **)); 9 10 int csystem PROTO((int, char **)); … … 53 54 {1, "coords", coords, "load coordinates for buffer from file"}, 54 55 {1, "cdot", cdot, "plot point in sky coordinates"}, 56 {1, "cline", cline, "plot line connecting two sky coordinates"}, 55 57 {1, "cplot", cplot, "plot vectors in sky coordinates"}, 56 58 {1, "csystem", csystem, "convert between coordinate systems"},
Note:
See TracChangeset
for help on using the changeset viewer.
