Changeset 36578
- Timestamp:
- Mar 7, 2014, 2:44:39 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140206/Ohana/src
- Files:
-
- 9 edited
-
relastro/src/indexCatalogs.c (modified) (1 diff)
-
relastro/src/load_catalogs.c (modified) (2 diffs)
-
relastro/src/relastro_parallel_images.c (modified) (1 diff)
-
relastro/src/share_images_pos.c (modified) (1 diff)
-
relastro/src/share_mean_pos.c (modified) (1 diff)
-
relphot/src/help.c (modified) (2 diffs)
-
relphot/src/load_catalogs.c (modified) (1 diff)
-
relphot/src/share_image_mags.c (modified) (1 diff)
-
relphot/src/share_mean_mags.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/indexCatalogs.c
r36574 r36578 10 10 int i; 11 11 off_t j; 12 13 if (!Ncatalog) return TRUE; 12 14 13 15 // find the max value of catID -
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/load_catalogs.c
r35105 r36578 115 115 Catalog *load_catalogs_parallel (SkyList *sky, int *Ncatalog) { 116 116 117 char uniquer[12]; 118 int TIME = time(NULL); 119 int PID = getpid(); 120 snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000); 121 117 122 // load the list of hosts 118 123 HostTable *table = HostTableLoad (CATDIR, sky->hosts); … … 131 136 132 137 ALLOCATE (table->hosts[i].results, char, 1024); 133 snprintf (table->hosts[i].results, 1024, "%s/relastro.catalog. subset.dat", table->hosts[i].pathname);138 snprintf (table->hosts[i].results, 1024, "%s/relastro.catalog.%s.dat", table->hosts[i].pathname, uniquer); 134 139 135 140 // options / arguments that can affect relastro_client -load: -
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/relastro_parallel_images.c
r36577 r36578 48 48 MARKTIME("-- load catalog data: %f sec\n", dtime); 49 49 50 if (Ncatalog == 0) {51 fprintf (stderr, "ERROR: no valid data for relastro, exiting\n");52 exit (2);53 }54 55 50 // generate tables go from catID,objID -> catSeq,objSeq 56 51 indexCatalogs (catalog, Ncatalog); -
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/share_images_pos.c
r36577 r36578 53 53 for (i = 0; i < regionHosts->Nhosts; i++) { 54 54 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 55 if ( (REGION_HOST_ID > -1)&& !regionHosts->hosts[i].isNeighbor) continue;55 if (REGION_HOST_ID && !regionHosts->hosts[i].isNeighbor) continue; 56 56 57 57 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagepos.sync"); -
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/share_mean_pos.c
r36577 r36578 67 67 for (i = 0; i < regionHosts->Nhosts; i++) { 68 68 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 69 if ( (REGION_HOST_ID > -1)&& !regionHosts->hosts[i].isNeighbor) continue;69 if (REGION_HOST_ID && !regionHosts->hosts[i].isNeighbor) continue; 70 70 71 71 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanpos.sync"); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/help.c
r36516 r36578 2 2 3 3 void relphot_usage (void) { 4 fprintf (stderr, "ERROR: USAGE: relphot (photcode[s]) -region RA RA DEC DEC\n"); 5 fprintf (stderr, " or: relphot (photcode[s]) -catalog (name)\n"); 6 fprintf (stderr, " or: relphot -averages -region RA RA DEC DEC\n"); 7 fprintf (stderr, " or: relphot -apply-offsets -region RA RA DEC DEC\n"); 8 fprintf (stderr, " or: relphot -parallel-regions -region-hosts (RegionFile)\n"); 9 fprintf (stderr, " or: relphot -parallel-images (ImageTable) -region-hosts (RegionFile)\n"); 4 fprintf (stderr, "ERROR: USAGE: relphot (photcodes) -images\n"); 5 fprintf (stderr, " or: relphot -averages\n"); 6 fprintf (stderr, " or: relphot -apply-offsets\n"); 7 fprintf (stderr, " or: relphot (photcodes) -parallel-regions -region-hosts (RegionFile)\n"); 8 fprintf (stderr, " or: relphot (photcodes) -parallel-images (ImageTable) -region-hosts (RegionFile)\n\n"); 9 fprintf (stderr, " regions: -region RA RA DEC DEC)\n"); 10 fprintf (stderr, " or: -catalog (name)\n"); 10 11 fprintf (stderr, " use -h for more usage information\n"); 11 12 exit (2); … … 21 22 22 23 show_help: 23 fprintf (stderr, "ERROR: USAGE: relphot (photcode[s]) -region RA RA DEC DEC\n"); 24 fprintf (stderr, " or: relphot (photcode[s]) -catalog (name)\n"); 25 fprintf (stderr, " or: relphot -averages -region RA RA DEC DEC\n"); 26 fprintf (stderr, " or: relphot -apply-offsets -region RA RA DEC DEC\n"); 27 fprintf (stderr, " or: relphot -parallel-regions ()\n"); 28 fprintf (stderr, " or: relphot -parallel-images ()\n"); 24 fprintf (stderr, "ERROR: USAGE: relphot (photcodes) -images\n"); 25 fprintf (stderr, " or: relphot -averages\n"); 26 fprintf (stderr, " or: relphot -apply-offsets\n"); 27 fprintf (stderr, " or: relphot (photcodes) -parallel-regions -region-hosts (RegionFile)\n"); 28 fprintf (stderr, " or: relphot (photcodes) -parallel-images (ImageTable) -region-hosts (RegionFile)\n\n"); 29 fprintf (stderr, " regions: -region RA RA DEC DEC)\n"); 30 fprintf (stderr, " or: -catalog (name)\n"); 29 31 fprintf (stderr, " options: \n"); 30 32 fprintf (stderr, " -time (start) (stop)\n"); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/load_catalogs.c
r36516 r36578 89 89 90 90 fprintf (stderr, "using "OFF_T_FMT" of "OFF_T_FMT" stars ("OFF_T_FMT" of "OFF_T_FMT" measurements)\n", Nstar, Nstar_total, Nmeas, Nmeas_total); 91 if (!hostID && (Nstar < 1)) Shutdown ("%s", "ERROR: no stars match the minimum requirements; exiting \n");91 if (!hostID && !REGION_HOST_ID && (Nstar < 1)) Shutdown ("%s", "ERROR: no stars match the minimum requirements; exiting \n"); 92 92 // in regular relphot, we shutdown here; in relphot_client, we generate and return an empty table (for consistency) 93 94 93 95 94 // XXX consider only returning the populated catalogs -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/share_image_mags.c
r36577 r36578 53 53 for (i = 0; i < regionHosts->Nhosts; i++) { 54 54 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 55 if ( (REGION_HOST_ID > -1)&& !regionHosts->hosts[i].isNeighbor) continue;55 if (REGION_HOST_ID && !regionHosts->hosts[i].isNeighbor) continue; 56 56 57 57 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.sync"); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/share_mean_mags.c
r36577 r36578 77 77 // if (not_neighbor(host[i])) continue; 78 78 if (regionHosts->hosts[i].hostID == REGION_HOST_ID) continue; 79 if ( (REGION_HOST_ID > -1)&& !regionHosts->hosts[i].isNeighbor) continue;79 if (REGION_HOST_ID && !regionHosts->hosts[i].isNeighbor) continue; 80 80 81 81 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.sync");
Note:
See TracChangeset
for help on using the changeset viewer.
