Changeset 6684
- Timestamp:
- Mar 26, 2006, 1:14:47 PM (20 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 34 edited
-
addstar/src/ConfigInit.c (modified) (2 diffs)
-
addstar/src/addstar.c (modified) (6 diffs)
-
addstar/src/args.c (modified) (2 diffs)
-
addstar/src/image-db.c (modified) (2 diffs)
-
addstar/src/mkcatalog.c (modified) (1 diff)
-
delstar/src/ConfigInit.c (modified) (2 diffs)
-
fixcat/src/ConfigInit.c (modified) (1 diff)
-
imregister/base/ConfigInit.c (modified) (2 diffs)
-
imregister/imphot/ConfigInit.c (modified) (2 diffs)
-
kapa/doc/ChangeLog.txt (modified) (1 diff)
-
kapa/event/SetSection.c (modified) (1 diff)
-
kapa/graph/LoadLabels.c (modified) (1 diff)
-
kapa/graph/LoadPtext.c (modified) (1 diff)
-
kapa/include/constants.h (modified) (1 diff)
-
kapa/include/structures.h (modified) (4 diffs)
-
kapa/setup/DefineLayout.c (modified) (1 diff)
-
libautocode/def/average-pmtest.d (modified) (2 diffs)
-
libdvo/src/dvo_image_raw.c (modified) (1 diff)
-
markstar/src/ConfigInit.c (modified) (1 diff)
-
opihi/Makefile.Common (modified) (1 diff)
-
opihi/cmd.data/Makefile (modified) (1 diff)
-
opihi/cmd.data/box.c (modified) (2 diffs)
-
opihi/cmd.data/init.c (modified) (2 diffs)
-
opihi/dvo/LoadImages.c (modified) (1 diff)
-
opihi/dvo/catdir.c (modified) (2 diffs)
-
opihi/dvo/region_list.c (modified) (4 diffs)
-
opihi/include/display.h (modified) (2 diffs)
-
opihi/include/dvo1.h (modified) (1 diff)
-
opihi/lib.data/open_graph.c (modified) (2 diffs)
-
opihi/lib.data/open_image.c (modified) (2 diffs)
-
photdbc/src/ConfigInit.c (modified) (1 diff)
-
relphot/src/ConfigInit.c (modified) (1 diff)
-
relphot/src/initialize.c (modified) (1 diff)
-
uniphot/src/ConfigInit.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/ConfigInit.c
r6675 r6684 60 60 ScanConfig (config, "TYCHO_DIR", "%s", 0, TYCHO_DIR); 61 61 62 ScanConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat);63 62 ScanConfig (config, "GSCFILE", "%s", 0, GSCFILE); 64 63 ScanConfig (config, "CATDIR", "%s", 0, CATDIR); … … 72 71 SKY_TABLE[0] = 0; 73 72 } 73 sprintf (ImageCat, "%s/Images.dat", CATDIR); 74 75 /* dropped: ScanConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat); */ 76 74 77 75 78 /* used by client/server setup */ -
trunk/Ohana/src/addstar/src/addstar.c
r6683 r6684 15 15 16 16 double dtime; 17 struct timeval start, stop , t1, t2;17 struct timeval start, stop; 18 18 19 19 gettimeofday (&start, NULL); … … 38 38 status = dvo_image_lock (&db, ImageCat, 3600.0, LCK_XCLD); 39 39 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename); 40 gettimeofday (&stop, NULL);41 dtime = DTIME (stop, start);42 40 43 41 switch (options.mode) { … … 65 63 if (VERBOSE) fprintf (stderr, "writing to %d regions\n", skylist[0].Nregions); 66 64 67 gettimeofday (&stop, NULL);68 dtime = DTIME (stop, start);69 fprintf (stderr, "mark: gstars: time %9.4f sec\n", dtime);70 71 65 Naverage = Nmeasure = 0; 72 66 for (i = 0; i < skylist[0].Nregions; i++) { 73 74 gettimeofday (&t1, NULL);75 67 76 68 catalog.filename = skylist[0].filename[i]; … … 87 79 Ns = Nstars; 88 80 89 gettimeofday (&t2, NULL);90 dtime = DTIME (t2, t1);91 fprintf (stderr, "load time %9.4f sec for %5d stars, %6d average, %7d measure\n", dtime, Ns, Na, Nm);92 93 81 Naverage += catalog.Naverage; 94 82 Nmeasure += catalog.Nmeasure; 95 96 gettimeofday (&t1, NULL);97 83 98 84 switch (options.mode) { … … 114 100 } 115 101 116 gettimeofday (&t2, NULL);117 dtime = DTIME (t2, t1);118 fprintf (stderr, "match time %9.4f sec for %5d stars, %6d average, %7d measure\n", dtime, Ns, Na, Nm);119 120 gettimeofday (&t1, NULL);121 122 102 if (Nsubset == 0) { 123 103 unlock_catalog (&catalog); … … 129 109 } 130 110 free (catalog.filename); 131 132 gettimeofday (&t2, NULL);133 dtime = DTIME (t2, t1);134 fprintf (stderr, "save time %9.4f sec for %5d stars, %6d average, %7d measure\n", dtime, Ns, Na, Nm);135 136 111 } 137 138 gettimeofday (&stop, NULL);139 dtime = DTIME (stop, start);140 fprintf (stderr, "mark: match: time %9.4f sec\n", dtime);141 112 142 113 if (options.calibrate) { FindCalibration (&image); } -
trunk/Ohana/src/addstar/src/args.c
r6683 r6684 46 46 options.photcode = 0; 47 47 if ((N = get_argument (argc, argv, "-p"))) { 48 remove_argument (N, &argc, argv); 49 options.photcode = GetPhotcodeCodebyName (argv[N]); 50 remove_argument (N, &argc, argv); 51 } 52 if ((N = get_argument (argc, argv, "-photcode"))) { 48 53 remove_argument (N, &argc, argv); 49 54 options.photcode = GetPhotcodeCodebyName (argv[N]); … … 253 258 fprintf (stderr, " optional flags:\n"); 254 259 fprintf (stderr, " -region ra ra dec dec : only add data in specified region (-ref mode only)\n"); 255 fprintf (stderr, " -p (photcode) : specify photcode (override header)\n"); 260 fprintf (stderr, " -p (photcode) : specify photcode (-ref / -cat / or override header)\n"); 261 fprintf (stderr, " -photcode (photcode) : specify photcode (-ref / -cat / or override header)\n"); 256 262 fprintf (stderr, " -time (YYYY/MM/DD,HH:MM:SS) : specify date/time (override header)\n"); 257 263 fprintf (stderr, " -mosaic (filename) : identify associated mosaic frame for chip image\n"); -
trunk/Ohana/src/addstar/src/image-db.c
r6236 r6684 35 35 if (!strcasecmp (CATFORMAT, "ELIXIR")) db[0].format = DVO_FORMAT_ELIXIR; 36 36 if (!strcasecmp (CATFORMAT, "PANSTARRS")) db[0].format = DVO_FORMAT_PANSTARRS; 37 if (!strcasecmp (CATFORMAT, "PMTEST")) db[0].format = DVO_FORMAT_PMTEST; 37 38 if (db[0].format == DVO_FORMAT_UNDEF) { 38 39 fprintf (stderr, "invalid output catalog format\n"); … … 51 52 if (db[0].format == DVO_FORMAT_ELIXIR) fits_modify (&db[0].header, "FORMAT", "%s", 1, "ELIXIR"); 52 53 if (db[0].format == DVO_FORMAT_PANSTARRS) fits_modify (&db[0].header, "FORMAT", "%s", 1, "PANSTARRS"); 54 if (db[0].format == DVO_FORMAT_PMTEST) fits_modify (&db[0].header, "FORMAT", "%s", 1, "PMTEST"); 53 55 } -
trunk/Ohana/src/addstar/src/mkcatalog.c
r5445 r6684 15 15 if (!strcasecmp (CATFORMAT, "ELIXIR")) catalog[0].catformat = DVO_FORMAT_ELIXIR; 16 16 if (!strcasecmp (CATFORMAT, "PANSTARRS")) catalog[0].catformat = DVO_FORMAT_PANSTARRS; 17 if (!strcasecmp (CATFORMAT, "PMTEST")) catalog[0].catformat = DVO_FORMAT_PMTEST; 17 18 if (catalog[0].catformat == DVO_FORMAT_UNDEF) { 18 19 fprintf (stderr, "invalid output catalog format\n"); -
trunk/Ohana/src/delstar/src/ConfigInit.c
r5451 r6684 18 18 ScanConfig (config, "NSIGMA", "%lf", 0, &NSIGMA); 19 19 ScanConfig (config, "ALPHA", "%lf", 0, &ALPHA); 20 ScanConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat);21 ScanConfig (config, "IMAGE_CATALOG_TEMPLATE", "%s", 0, ImageTemplate);22 ScanConfig (config, "CATALOG_TEMPLATE", "%s", 0, CatTemplate);23 20 ScanConfig (config, "GSCFILE", "%s", 0, GSCFILE); 24 21 ScanConfig (config, "CATDIR", "%s", 0, CATDIR); … … 26 23 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 27 24 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile); 25 26 sprintf (ImageCat, "%s/Images.dat", CATDIR); 28 27 29 28 ScanConfig (config, "DATE-KEYWORD", "%s", 0, DateKeyword); -
trunk/Ohana/src/fixcat/src/ConfigInit.c
r2490 r6684 16 16 17 17 /* used in other pipeline functions */ 18 ScanConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat);19 18 ScanConfig (config, "CATDIR", "%s", 0, CATDIR); 20 19 ScanConfig (config, "GSCDIR", "%s", 0, GSCDIR); 21 20 ScanConfig (config, "GSCFILE", "%s", 0, GSCFILE); 21 sprintf (ImageCat, "%s/Images.dat", CATDIR); 22 22 23 /* unique to markstar */ 23 24 ScanConfig (config, "SEARCH_RADIUS", "%lf", 0, &RADIUS); -
trunk/Ohana/src/imregister/base/ConfigInit.c
r2823 r6684 6 6 7 7 int i, NDB; 8 char *config, *file, ElixirBase[80] ;8 char *config, *file, ElixirBase[80], catdir[256]; 9 9 10 10 /*** load configuration info ***/ … … 23 23 WarnConfig (config, "PHOT_DATABASE", "%s", 0, PhotDB); 24 24 WarnConfig (config, "TRANS_DATABASE", "%s", 0, TransDB); 25 WarnConfig (config, "IMAGE_CATALOG", "%s", 0, ImPhotDB); 25 26 WarnConfig (config, "CATDIR", "%s", 0, catdir); 27 sprintf (ImPhotDB, "%s/Images.dat", catdir); 26 28 27 29 /* small text databases: filters, camera defs */ -
trunk/Ohana/src/imregister/imphot/ConfigInit.c
r4024 r6684 7 7 8 8 int i, NDB; 9 char *config, *file, ElixirBase[80] ;9 char *config, *file, ElixirBase[80], catdir[256]; 10 10 11 11 /*** load configuration info ***/ … … 20 20 success = TRUE; 21 21 22 WarnConfig (config, "IMAGE_CATALOG", "%s", 0, ImPhotDB); 22 WarnConfig (config, "CATDIR", "%s", 0, catdir); 23 sprintf (ImPhotDB, "%s/Images.dat", catdir); 23 24 24 25 /* small text databases: filters, camera defs */ -
trunk/Ohana/src/kapa/doc/ChangeLog.txt
r5928 r6684 1 2 - kapa 1.5 3 * fixed residual label text 4 * fixed box -axis,-label,-ticks bug (was ignoring user input) 5 * dropped unused axis.label (is replaced by label.text) 1 6 2 7 - kapa 1.4 -
trunk/Ohana/src/kapa/event/SetSection.c
r5852 r6684 46 46 section[ThisSection].axis[i].areticks = FALSE; 47 47 section[ThisSection].axis[i].islabel = FALSE; 48 strcpy (section[ThisSection].axis[i].label, "");49 48 } 50 49 for (i = 0; i < 8; i++) { -
trunk/Ohana/src/kapa/graph/LoadLabels.c
r5852 r6684 14 14 label = KiiRecvData (sock); 15 15 16 Nbytes = MIN (strlen(label), 127); 16 bzero (layout[0].label[mode].text, LABEL_MAXLEN); 17 18 Nbytes = MIN (strlen(label), LABEL_MAXLEN - 1); 17 19 strncpy (layout[0].label[mode].text, label, Nbytes); 18 20 label[Nbytes] = 0; -
trunk/Ohana/src/kapa/graph/LoadPtext.c
r6678 r6684 27 27 layout[0].ptext[N].angle = tT; 28 28 29 bzero (layout[0].ptext[N].text, LABEL_MAXLEN); 30 29 31 string = KiiRecvData (sock); 30 32 strcpy (layout[0].ptext[N].text, string); -
trunk/Ohana/src/kapa/include/constants.h
r3695 r6684 14 14 # define MIN_WIDTH 250 15 15 # define MIN_HEIGHT 250 16 # define LABEL_MAXLEN 128 16 17 17 18 /* label names */ -
trunk/Ohana/src/kapa/include/structures.h
r5852 r6684 79 79 int size; 80 80 char font[64]; 81 char text[ 128];81 char text[LABEL_MAXLEN]; 82 82 } Label; 83 83 … … 88 88 } Overlay; 89 89 90 # if (0)91 typedef struct {92 char ctype[16];93 double crval1, crpix1, cdelt1;94 double crval2, crpix2, cdelt2;95 double pc1_1, pc1_2;96 double pc2_1, pc2_2;97 } Coords;98 # endif99 100 90 typedef struct { 101 91 float *x, *y, *z, *dxp, *dxm, *dyp, *dym; … … 110 100 char isaxis, areticks, islabel, islog; 111 101 double fx, dfx, fy, dfy; /* axis location on graphic */ 112 char label[64];113 102 } Axis; 114 103 … … 127 116 double y, dy; 128 117 129 char name[ 64];118 char name[LABEL_MAXLEN]; /* name of the section */ 130 119 131 120 } Layout; -
trunk/Ohana/src/kapa/setup/DefineLayout.c
r5852 r6684 32 32 section[0].axis[i].areticks = FALSE; 33 33 section[0].axis[i].islabel = FALSE; 34 strcpy (section[0].axis[i].label, " ");35 34 } 36 35 for (i = 0; i < 8; i++) { -
trunk/Ohana/src/libautocode/def/average-pmtest.d
r6683 r6684 2 2 EXTNAME DVO_AVERAGE_PMTEST 3 3 TYPE BINTABLE 4 SIZE 764 SIZE 80 5 5 DESCRIPTION DVO Average Object Table 6 6 … … 29 29 FIELD offset, offset, int, offset to first measurement 30 30 FIELD missing, missing, int, offset to first missing obs 31 FIELD dummy, dummy, int, extra space 31 32 -
trunk/Ohana/src/libdvo/src/dvo_image_raw.c
r5386 r6684 24 24 if (!strcmp (format, "ELIXIR")) db[0].format = DVO_FORMAT_ELIXIR; 25 25 if (!strcmp (format, "PANSTARRS")) db[0].format = DVO_FORMAT_PANSTARRS; 26 if (!strcmp (format, "PMTEST")) db[0].format = DVO_FORMAT_PANSTARRS; 26 27 if (db[0].format != DVO_FORMAT_UNDEF) goto got_format; 27 28 } -
trunk/Ohana/src/markstar/src/ConfigInit.c
r4828 r6684 17 17 18 18 /* used in other pipeline functions */ 19 ScanConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat);20 19 ScanConfig (config, "CATDIR", "%s", 0, CATDIR); 21 20 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 22 21 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 22 23 sprintf (ImageCat, "%s/Images.dat", CATDIR); 23 24 24 25 ScanConfig (config, "GSCDIR", "%s", 0, GSCDIR); -
trunk/Ohana/src/opihi/Makefile.Common
r6683 r6684 26 26 $(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a 27 27 @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi 28 @echo ""29 @echo "current: $^"30 @echo "current: $*"31 @echo "current: $@"32 28 rm -f $@ 33 cp $ ^$@29 cp $< $@ 34 30 35 31 lib%.clean: -
trunk/Ohana/src/opihi/cmd.data/Makefile
r6642 r6684 26 26 $(SDIR)/clear.$(ARCH).o \ 27 27 $(SDIR)/clip.$(ARCH).o \ 28 $(SDIR)/close.$(ARCH).o \ 28 29 $(SDIR)/concat.$(ARCH).o \ 29 30 $(SDIR)/contour.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.data/box.c
r5919 r6684 6 6 Graphdata graphmode; 7 7 8 Ngraph = -1; 9 if ((N = get_argument (argc, argv, "-n"))) { 10 remove_argument (N, &argc, argv); 11 Ngraph = atof (argv[N]); 12 remove_argument (N, &argc, argv); 13 } 14 if (!GetGraph (&graphmode, &Xgraph, &Ngraph)) return (FALSE); 15 8 16 strcpy (graphmode.ticks, "2222"); 9 17 if ((N = get_argument (argc, argv, "-ticks"))) { … … 38 46 } 39 47 } 40 41 Ngraph = -1;42 if ((N = get_argument (argc, argv, "-n"))) {43 remove_argument (N, &argc, argv);44 Ngraph = atof (argv[N]);45 remove_argument (N, &argc, argv);46 }47 if (!GetGraph (&graphmode, &Xgraph, &Ngraph)) return (FALSE);48 48 49 49 if (argc != 1) goto usage; -
trunk/Ohana/src/opihi/cmd.data/init.c
r6642 r6684 9 9 int clear PROTO((int, char **)); 10 10 int clip PROTO((int, char **)); 11 int close_device PROTO((int, char **)); 11 12 int concat PROTO((int, char **)); 12 13 int contour PROTO((int, char **)); … … 115 116 {"clear", clear, "erase plot"}, 116 117 {"clip", clip, "clip values in a buffer to be within a range"}, 118 {"close", close_device, "close the current display device"}, 117 119 {"concat", concat, "reduce vector dimension"}, 118 120 {"contour", contour, "create contour from image"}, -
trunk/Ohana/src/opihi/dvo/LoadImages.c
r4864 r6684 3 3 Image *LoadImages (int *nimage) { 4 4 5 char filename[256];5 char *catdir, filename[256]; 6 6 Image *image; 7 7 FITS_DB db; 8 8 9 VarConfig ("IMAGE_CATALOG", "%s", filename); 9 /* VarConfig ("IMAGE_CATALOG", "%s", filename); */ 10 11 catdir = GetCATDIR (); 12 sprintf (filename, "%s/Images.dat", catdir); 10 13 11 14 fits_db_init (&db); -
trunk/Ohana/src/opihi/dvo/catdir.c
r5900 r6684 3 3 int catdir_define (int argc, char **argv) { 4 4 5 char *current; 5 6 int status, N, VERBOSE; 6 7 … … 14 15 fprintf (stderr, "USAGE: catdir (name)\n"); 15 16 fprintf (stderr, " (name) may be a path or 'default'\n"); 17 current = GetCATDIR (); 18 if (current == NULL) { 19 fprintf (stderr, "catdir not defined\n"); 20 } else { 21 fprintf (stderr, "current: %s\n", current); 22 } 16 23 return (FALSE); 17 24 } -
trunk/Ohana/src/opihi/dvo/region_list.c
r5996 r6684 11 11 12 12 char *newpath; 13 char catdir [256];13 char catdir_config[256]; 14 14 char gscfile[256]; 15 15 char skyfile[256]; … … 18 18 /* find CATDIR in config system */ 19 19 if (path == NULL) { 20 if (VarConfig ("CATDIR", "%s", catdir ) == NULL) return (FALSE);21 newpath = catdir ;20 if (VarConfig ("CATDIR", "%s", catdir_config) == NULL) return (FALSE); 21 newpath = catdir_config; 22 22 } else { 23 23 newpath = path; … … 32 32 33 33 if (verbose) { 34 fprintf (stderr, "CATDIR %s\n", catdir);34 fprintf (stderr, "CATDIR %s\n", CATDIR); 35 35 fprintf (stderr, "GSCFILE %s\n", gscfile); 36 36 fprintf (stderr, "SKYFILE %s\n", skyfile); … … 42 42 43 43 if (sky != NULL) SkyTableFree (sky); 44 sky = SkyTableLoadOptimal ( catdir, skyfile, gscfile, skydepth, verbose);44 sky = SkyTableLoadOptimal (CATDIR, skyfile, gscfile, skydepth, verbose); 45 45 if (sky == NULL) return FALSE; 46 46 47 SkyTableSetFilenames (sky, catdir, "cpt");47 SkyTableSetFilenames (sky, CATDIR, "cpt"); 48 48 49 49 return (TRUE); 50 } 51 52 char *GetCATDIR () { 53 if (CATDIR == NULL) { 54 SetCATDIR (NULL, FALSE); 55 } 56 return (CATDIR); 50 57 } 51 58 -
trunk/Ohana/src/opihi/include/display.h
r5850 r6684 24 24 void InitGraph PROTO((void)); 25 25 int open_graph PROTO((int N)); 26 int close_graph PROTO((int N)); 26 27 void QuitGraph PROTO((void)); 27 28 void SetGraph PROTO((Graphdata data)); … … 35 36 void InitImage PROTO((void)); 36 37 int open_image PROTO((int N)); 38 int close_image PROTO((int N)); 37 39 void QuitImage PROTO((void)); 38 40 void SetImageDevice PROTO((int state)); -
trunk/Ohana/src/opihi/include/dvo1.h
r6683 r6684 73 73 SkyList *SkyListLoadFile PROTO((char *filename)); 74 74 int SetCATDIR PROTO((char *path, int verbose)); 75 char * GetCATDIR PROTO(()); 75 76 SkyTable *GetSkyTable PROTO(()); 76 77 SkyList *SkyListFromFile PROTO((char *filename)); -
trunk/Ohana/src/opihi/lib.data/open_graph.c
r5919 r6684 8 8 static int Xgraph[NXGRAPH]; 9 9 static Graphdata graphdata[NXGRAPH]; 10 11 12 10 13 11 void QuitGraph () { … … 80 78 81 79 Xgraph[N] = fd; 80 return (TRUE); 81 } 82 83 int close_graph (int N) { 84 85 if (N < 0) return (FALSE); 86 if (N >= NXGRAPH) return (FALSE); 87 88 KiiClose (Xgraph[N]); 89 Xgraph[N] = -1; 82 90 return (TRUE); 83 91 } -
trunk/Ohana/src/opihi/lib.data/open_image.c
r5919 r6684 33 33 } 34 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 35 /* set SIGPIPE to this function to close cleanly */ 54 36 void XImageDead (int input) { … … 80 62 81 63 Ximage[N] = fd; 64 return (TRUE); 65 } 66 67 int close_image (int N) { 68 69 if (N < 0) return (FALSE); 70 if (N >= NXIMAGE) return (FALSE); 71 72 KiiClose (Ximage[N]); 73 Ximage[N] = -1; 82 74 return (TRUE); 83 75 } -
trunk/Ohana/src/photdbc/src/ConfigInit.c
r4828 r6684 48 48 WarnConfig (config, "NMEAS_MIN", "%d", 0, &NMEAS_MIN); 49 49 50 WarnConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat);51 50 WarnConfig (config, "GSCFILE", "%s", 0, GSCFILE); 52 51 WarnConfig (config, "CATDIR", "%s", 0, CATDIR); 53 52 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 54 53 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 54 sprintf (ImageCat, "%s/Images.dat", CATDIR); 55 55 56 56 WarnConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile); -
trunk/Ohana/src/relphot/src/ConfigInit.c
r5014 r6684 28 28 GetConfig (config, "IMAGE_GOOD_FRACTION", "%lf", 0, &IMAGE_GOOD_FRACTION); 29 29 30 GetConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat);31 GetConfig (config, "IMAGE_CATALOG_TEMPLATE", "%s", 0, ImageTemplate);32 GetConfig (config, "CATALOG_TEMPLATE", "%s", 0, CatTemplate);33 30 GetConfig (config, "GSCFILE", "%s", 0, GSCFILE); 34 31 GetConfig (config, "CATDIR", "%s", 0, CATDIR); 35 32 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 36 33 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 34 sprintf (ImageCat, "%s/Images.dat", CATDIR); 35 37 36 GetConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile); 38 37 GetConfig (config, "ZERO_PT", "%lf", 0, &ZERO_POINT); -
trunk/Ohana/src/relphot/src/initialize.c
r4796 r6684 45 45 fprintf (stderr, "IMAGE_OFFSET %lf\n", IMAGE_OFFSET); 46 46 fprintf (stderr, "IMAGE_CATALOG %s\n", ImageCat); 47 fprintf (stderr, "IMAGE_CATALOG_TEMPLATE %s\n", ImageTemplate);48 fprintf (stderr, "CATALOG_TEMPLATE %s\n", CatTemplate);49 47 fprintf (stderr, "GSCFILE %s\n", GSCFILE); 50 48 fprintf (stderr, "CATDIR %s\n", CATDIR); -
trunk/Ohana/src/uniphot/src/ConfigInit.c
r4828 r6684 20 20 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 21 21 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 22 sprintf (ImageCat, "%s/Images.dat", CATDIR); 22 23 23 ScanConfig (config, "IMAGE_CATALOG", "%s", 0, ImageCat);24 24 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile); 25 25 ScanConfig (config, "ZERO_PT", "%lf", 0, &ZERO_POINT);
Note:
See TracChangeset
for help on using the changeset viewer.
