Changeset 38444
- Timestamp:
- Jun 12, 2015, 9:30:51 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150419/Ohana/src/addstar
- Files:
-
- 41 edited
- 1 copied
-
include/addstar.h (modified) (2 diffs)
-
src/ConfigInit.c (modified) (1 diff)
-
src/ReadStarsFITS.c (modified) (11 diffs)
-
src/SEDfit.c (modified) (1 diff)
-
src/UpdateDatabase_Image.c (modified) (5 diffs)
-
src/UpdateDatabase_Refcat.c (modified) (3 diffs)
-
src/UpdateDatabase_Reflist.c (modified) (3 diffs)
-
src/UpdateImageIDs.c (modified) (1 diff)
-
src/addstar.c (modified) (5 diffs)
-
src/addstar_create_ID.c (modified) (1 diff)
-
src/args.c (modified) (1 diff)
-
src/args_parallel_client.c (modified) (1 diff)
-
src/dumpskycells.c (modified) (1 diff)
-
src/find_matches.c (modified) (2 diffs)
-
src/find_matches_ICRF.c (modified) (1 diff)
-
src/find_matches_closest.c (modified) (2 diffs)
-
src/find_matches_closest_refstars.c (modified) (2 diffs)
-
src/find_matches_refstars.c (modified) (2 diffs)
-
src/find_matches_starpar.c (modified) (1 diff)
-
src/findskycell.c (modified) (4 diffs)
-
src/load2mass_as_rawdata.c (modified) (1 diff)
-
src/load2mass_catalog.c (modified) (1 diff)
-
src/loadICRF_catalog.c (modified) (1 diff)
-
src/loadICRF_save_remote.c (modified) (2 diffs)
-
src/loadICRF_table.c (modified) (1 diff)
-
src/loadstarpar_catalog.c (modified) (1 diff)
-
src/loadstarpar_save_remote.c (modified) (3 diffs)
-
src/loadstarpar_table.c (modified) (1 diff)
-
src/loadsupercos.c (modified) (1 diff)
-
src/loadsupercos_rawdata.c (modified) (1 diff)
-
src/loadwise_prelim_rawdata.c (modified) (1 diff)
-
src/loadwise_rawdata.c (modified) (1 diff)
-
src/mkcmf.c (modified) (6 diffs)
-
src/resort_catalogs.c (modified) (1 diff)
-
src/resort_threaded.c (modified) (2 diffs)
-
src/resort_unthreaded.c (modified) (2 diffs)
-
src/sedstar.c (modified) (3 diffs)
-
src/skycells.c (modified) (1 diff)
-
src/skycells_to_mdc.c (modified) (1 diff)
-
test (modified) (1 prop)
-
test/compress.dvo (copied) (copied from trunk/Ohana/src/addstar/test/compress.dvo )
-
test/simple.dvo (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/Ohana/src/addstar/include/addstar.h
r38268 r38444 84 84 char GSCFILE[256]; 85 85 char *CATDIR; 86 char CATMODE[16]; /* raw, mef, split, mysql */ 87 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ 86 char CATMODE[16]; /* raw, mef, split, mysql */ 87 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ 88 char CATCOMPRESS[16]; /* GZIP_1, NONE */ 88 89 char TWO_MASS_DIR_AS[256]; 89 90 char TWO_MASS_DIR_DR2[256]; … … 325 326 void *memrchr(const void *s, int c, size_t n); 326 327 int addstar_create_ID (); 327 int strextend (char *input, char *format,...);328 328 329 329 void initMosaicCoords (); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/ConfigInit.c
r33963 r38444 134 134 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 135 135 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 136 if (!ScanConfig (config, "CATCOMPRESS", "%s", 0, CATCOMPRESS)) { 137 strcpy (CATCOMPRESS, "NONE"); 138 } 136 139 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) { 137 140 SKY_DEPTH = SKY_DEPTH_HST; -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/ReadStarsFITS.c
r37995 r38444 153 153 off_t Nstars; 154 154 unsigned int i; 155 char swapped;156 155 double ZeroPt; 157 156 Stars *stars = NULL; 158 157 SMPData *smpdata = NULL; 159 158 160 swapped = FALSE; 161 smpdata = gfits_table_get_SMPData (table, &Nstars, &swapped); 159 smpdata = gfits_table_get_SMPData (table, &Nstars, NULL, NULL); 162 160 if (!smpdata) { 163 161 fprintf (stderr, "skipping inconsistent entry\n"); … … 229 227 PS1_DEV_0 *ps1data; 230 228 231 ps1data = gfits_table_get_PS1_DEV_0 (table, &Nstars, NULL );229 ps1data = gfits_table_get_PS1_DEV_0 (table, &Nstars, NULL, NULL); 232 230 if (!ps1data) { 233 231 fprintf (stderr, "skipping inconsistent entry\n"); … … 300 298 PS1_DEV_1 *ps1data; 301 299 302 ps1data = gfits_table_get_PS1_DEV_1 (table, &Nstars, NULL );300 ps1data = gfits_table_get_PS1_DEV_1 (table, &Nstars, NULL, NULL); 303 301 if (!ps1data) { 304 302 fprintf (stderr, "skipping inconsistent entry\n"); … … 383 381 } 384 382 385 ps1data = gfits_table_get_CMF_PS1_V1 (table, &Nstars, NULL );383 ps1data = gfits_table_get_CMF_PS1_V1 (table, &Nstars, NULL, NULL); 386 384 if (!ps1data) { 387 385 fprintf (stderr, "skipping inconsistent entry\n"); … … 545 543 CMF_PS1_V2 *ps1data; 546 544 547 ps1data = gfits_table_get_CMF_PS1_V2 (table, &Nstars, NULL );545 ps1data = gfits_table_get_CMF_PS1_V2 (table, &Nstars, NULL, NULL); 548 546 if (!ps1data) { 549 547 fprintf (stderr, "skipping inconsistent entry\n"); … … 622 620 CMF_PS1_V3 *ps1data; 623 621 624 ps1data = gfits_table_get_CMF_PS1_V3 (table, &Nstars, NULL );622 ps1data = gfits_table_get_CMF_PS1_V3 (table, &Nstars, NULL, NULL); 625 623 if (!ps1data) { 626 624 fprintf (stderr, "skipping inconsistent entry\n"); … … 706 704 CMF_PS1_V4 *ps1data; 707 705 708 ps1data = gfits_table_get_CMF_PS1_V4 (table, &Nstars, NULL );706 ps1data = gfits_table_get_CMF_PS1_V4 (table, &Nstars, NULL, NULL); 709 707 if (!ps1data) { 710 708 fprintf (stderr, "skipping inconsistent entry\n"); … … 1259 1257 } 1260 1258 1261 ps1data = gfits_table_get_CMF_PS1_SV1 (table, &Nstars, NULL );1259 ps1data = gfits_table_get_CMF_PS1_SV1 (table, &Nstars, NULL, NULL); 1262 1260 if (!ps1data) { 1263 1261 fprintf (stderr, "skipping inconsistent entry\n"); … … 1423 1421 CMF_PS1_SV2 *ps1data; 1424 1422 1425 ps1data = gfits_table_get_CMF_PS1_SV2 (table, &Nstars, NULL );1423 ps1data = gfits_table_get_CMF_PS1_SV2 (table, &Nstars, NULL, NULL); 1426 1424 if (!ps1data) { 1427 1425 fprintf (stderr, "skipping inconsistent entry\n"); … … 1753 1751 CMF_PS1_DV4 *ps1data; 1754 1752 1755 ps1data = gfits_table_get_CMF_PS1_DV4 (table, &Nstars, NULL );1753 ps1data = gfits_table_get_CMF_PS1_DV4 (table, &Nstars, NULL, NULL); 1756 1754 if (!ps1data) { 1757 1755 fprintf (stderr, "skipping inconsistent entry\n"); … … 1839 1837 CMF_PS1_DV5 *ps1data; 1840 1838 1841 ps1data = gfits_table_get_CMF_PS1_DV5 (table, &Nstars, NULL );1839 ps1data = gfits_table_get_CMF_PS1_DV5 (table, &Nstars, NULL, NULL); 1842 1840 if (!ps1data) { 1843 1841 fprintf (stderr, "skipping inconsistent entry\n"); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/SEDfit.c
r38318 r38444 198 198 outcat[0].Naverage = Nave; 199 199 outcat[0].Nmeasure = Nmeas; 200 outcat[0].Nsecf _mem = Nave*Nsec;200 outcat[0].Nsecfilt_mem = Nave*Nsec; 201 201 202 202 free (sourceValue.mags); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateDatabase_Image.c
r37807 r38444 12 12 } 13 13 14 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;15 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;14 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 15 if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 16 16 17 17 // XXX this is probably not needed anymore … … 47 47 catalog.filename = skylist[0].filename[i]; 48 48 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 49 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;50 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;49 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 50 if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 51 51 52 52 // an error exit status here is a significant error … … 56 56 } 57 57 58 // Nave s_disk == 0 implies an empty catalog file58 // Naverage_disk == 0 implies an empty catalog file 59 59 // for only_match, skip empty catalogs 60 if ((catalog.Nave s_disk == 0) && options[0].only_match) {60 if ((catalog.Naverage_disk == 0) && options[0].only_match) { 61 61 dvo_catalog_unlock (&catalog); 62 62 dvo_catalog_free (&catalog); … … 73 73 SetProtect (TRUE); 74 74 if (options[0].update) { 75 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;75 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 76 76 dvo_catalog_update (&catalog, VERBOSE); 77 77 } else { … … 92 92 /*** update the image table ***/ 93 93 /* setup image table format and lock */ 94 gfits_db_init (&db); 94 95 db.mode = dvo_catalog_catmode (CATMODE); 95 96 db.format = dvo_catalog_catformat (CATFORMAT); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateDatabase_Refcat.c
r15743 r38444 36 36 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 37 37 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 38 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;39 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;38 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 39 if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 40 40 41 41 // an error exit status here is a significant error … … 45 45 } 46 46 47 // Nave s_disk == 0 implies an empty catalog file47 // Naverage_disk == 0 implies an empty catalog file 48 48 // for only_match, skip empty catalogs 49 if ((catalog.Nave s_disk == 0) && options[0].only_match) {49 if ((catalog.Naverage_disk == 0) && options[0].only_match) { 50 50 dvo_catalog_unlock (&catalog); 51 51 dvo_catalog_free (&catalog); … … 63 63 SetProtect (TRUE); 64 64 if (options[0].update) { 65 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;65 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 66 66 dvo_catalog_update (&catalog, VERBOSE); 67 67 } else { -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateDatabase_Reflist.c
r27435 r38444 36 36 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 37 37 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 38 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;39 if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;38 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 39 if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 40 40 41 41 // an error exit status here is a significant error … … 46 46 47 47 /* for only_match, skip empty catalogs XXX EAM : this leaves behind empty files */ 48 if ((catalog.Nave s_disk == 0) && options[0].only_match) {48 if ((catalog.Naverage_disk == 0) && options[0].only_match) { 49 49 dvo_catalog_unlock (&catalog); 50 50 dvo_catalog_free (&catalog); … … 59 59 SetProtect (TRUE); 60 60 if (options[0].update) { 61 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;61 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 62 62 dvo_catalog_update (&catalog, VERBOSE); 63 63 } else { -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateImageIDs.c
r38184 r38444 9 9 /*** update the image table ***/ 10 10 /* setup image table format and lock */ 11 gfits_db_init (&db); 11 12 db.mode = dvo_catalog_catmode (CATMODE); 12 13 db.format = dvo_catalog_catformat (CATFORMAT); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/addstar.c
r37807 r38444 104 104 105 105 // set the parameters which guide catalog open/load/create 106 catalog.filename = skylist[0].filename[i]; 107 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 108 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 109 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF | LOAD_LENSING; 110 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 106 catalog.filename = skylist[0].filename[i]; 107 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 108 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 109 catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data 110 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING; 111 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 111 112 112 113 // XXX need to do something to enforce consistency. we can change options.update … … 117 118 if (catalog.catmode != DVO_MODE_SPLIT) options.update = FALSE; 118 119 119 if (options.update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;120 if (options.update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 120 121 121 122 // open as read or write, depending on desire … … 134 135 if (VERBOSE) MARKTIME ("load cpt: %f sec\n", dtime); RESETTIME; 135 136 136 // Nave s_disk == 0 implies an empty catalog file137 // Naverage_disk == 0 implies an empty catalog file 137 138 // for only_match, skip empty catalogs 138 if ((catalog.Nave s_disk == 0) && options.only_match) {139 if ((catalog.Naverage_disk == 0) && options.only_match) { 139 140 dvo_catalog_unlock (&catalog); 140 141 dvo_catalog_free (&catalog); … … 174 175 SetProtect (TRUE); 175 176 if (options.update) { 176 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF |LOAD_LENSING;177 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING; 177 178 dvo_catalog_update (&catalog, VERBOSE); 178 179 } else { … … 193 194 /*** update the image table ***/ 194 195 /* setup image table format and lock */ 196 gfits_db_init (&db); 195 197 db.mode = dvo_catalog_catmode (CATMODE); 196 198 db.format = dvo_catalog_catformat (CATFORMAT); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/addstar_create_ID.c
r35760 r38444 10 10 /*** update the image table ***/ 11 11 /* setup image table format and lock */ 12 //gfits_db_init (&db);12 gfits_db_init (&db); 13 13 db.mode = dvo_catalog_catmode (CATMODE); 14 14 db.format = dvo_catalog_catformat (CATFORMAT); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/args.c
r37807 r38444 480 480 } 481 481 482 int strextend (char *input, char *format,...) {483 484 char tmpextra[1024], tmpline[1024];485 va_list argp;486 487 va_start (argp, format);488 vsnprintf (tmpextra, 1024, format, argp);489 snprintf (tmpline, 1024, "%s %s", input, tmpextra);490 strcpy (input, tmpline);491 492 return TRUE;493 }494 495 482 /** addstar modes: 496 483 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/args_parallel_client.c
r37116 r38444 125 125 } 126 126 127 int strextend (char *input, char *format,...) {128 129 char tmpextra[1024], tmpline[1024];130 va_list argp;131 132 va_start (argp, format);133 vsnprintf (tmpextra, 1024, format, argp);134 snprintf (tmpline, 1024, "%s %s", input, tmpextra);135 strcpy (input, tmpline);136 137 return TRUE;138 }139 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/dumpskycells.c
r33719 r38444 46 46 /*** open the image table ***/ 47 47 /* setup image table format and lock */ 48 gfits_db_init (&db); 48 49 db.mode = dvo_catalog_catmode (CATMODE); 49 50 db.format = dvo_catalog_catformat (CATFORMAT); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches.c
r38318 r38444 91 91 92 92 /* set up pointers for linked list of measure */ 93 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas _disk)) {93 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) { 94 94 next_meas = init_measure_links (catalog[0].average, Nave, catalog[0].measure, Nmeas); 95 95 } else { … … 316 316 catalog[0].Naverage = Nave; 317 317 catalog[0].Nmeasure = Nmeas; 318 catalog[0].Nsecf _mem = Nave*Nsecfilt;318 catalog[0].Nsecfilt_mem = Nave*Nsecfilt; 319 319 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n", Nstars, Nave, Nmeas, Nmatch); 320 320 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_ICRF.c
r37807 r38444 164 164 catalog[0].Naverage = Nave; 165 165 catalog[0].Nmeasure = Nmeas; 166 catalog[0].Nsecf _mem = Nave*Nsecfilt;166 catalog[0].Nsecfilt_mem = Nave*Nsecfilt; 167 167 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: %d "OFF_T_FMT" "OFF_T_FMT" ("OFF_T_FMT" matches)\n", Nstars, Nave, Nmeas, Nmatch); 168 168 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_closest.c
r38318 r38444 91 91 92 92 /* set up pointers for linked list of measure */ 93 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas _disk)) {93 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) { 94 94 // this version is only valid if we have done a full catalog load, and if the catalog 95 95 // is sorted while processed … … 376 376 catalog[0].Nmeasure = Nmeas; 377 377 catalog[0].Nlensing = Nlens; 378 catalog[0].Nsecf _mem = Nave*Nsecfilt;378 catalog[0].Nsecfilt_mem = Nave*Nsecfilt; 379 379 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas, Nlens: "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n", Nstars, Nave, Nmeas, Nlens, Nmatch); 380 380 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_closest_refstars.c
r38318 r38444 100 100 101 101 /* set up pointers for linked list of measure */ 102 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas _disk)) {102 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) { 103 103 // this version is only valid if we have done a full catalog load, and if the catalog 104 104 // is sorted while processed … … 342 342 catalog[0].Naverage = Nave; 343 343 catalog[0].Nmeasure = Nmeas; 344 catalog[0].Nsecf _mem = Nave*Nsecfilt;344 catalog[0].Nsecfilt_mem = Nave*Nsecfilt; 345 345 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n", Nstars, Nave, Nmeas, Nmatch); 346 346 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_refstars.c
r38318 r38444 70 70 71 71 /* set up pointers for linked list of measurements */ 72 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas _disk)) {72 if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) { 73 73 // this version is only valid if we have done a full catalog load, and if the catalog 74 74 // is sorted while processed … … 293 293 catalog[0].Naverage = Nave; 294 294 catalog[0].Nmeasure = Nmeas; 295 catalog[0].Nsecf _mem = Nave*Nsecfilt;295 catalog[0].Nsecfilt_mem = Nave*Nsecfilt; 296 296 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: %d "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n", Nstars, Nave, Nmeas, Nmatch); 297 297 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_starpar.c
r38318 r38444 205 205 catalog[0].Naverage = Nave; 206 206 catalog[0].Nstarpar = Nstarpar; 207 catalog[0].Nsecf _mem = Nave*Nsecfilt;207 catalog[0].Nsecfilt_mem = Nave*Nsecfilt; 208 208 if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nstarpar: %d "OFF_T_FMT" "OFF_T_FMT" ("OFF_T_FMT" matches)\n", Nstars, Nave, Nstarpar, Nmatch); 209 209 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/findskycell.c
r37116 r38444 173 173 snprintf (imagefile, DVO_MAX_PATH, "%s/Images.dat", catdir); 174 174 175 gfits_db_init (&db); 175 176 status = dvo_image_lock (&db, imagefile, 2.0, LCK_XCLD); 176 177 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename); … … 183 184 // convert database table to internal structure (binary to Image) 184 185 // 'image' points to the same memory as db->ftable->buffer 185 image = gfits_table_get_Image (&db.ftable, &Nimage, &db.s wapped);186 image = gfits_table_get_Image (&db.ftable, &Nimage, &db.scaledValue, &db.nativeOrder); 186 187 if (!image) { 187 188 fprintf (stderr, "ERROR: failed to read images\n"); … … 557 558 snprintf (imagefile, DVO_MAX_PATH, "%s/Images.dat", catdir); 558 559 560 gfits_db_init (&db); 559 561 status = dvo_image_lock (&db, imagefile, 2.0, LCK_XCLD); 560 562 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename); … … 567 569 // convert database table to internal structure (binary to Image) 568 570 // 'image' points to the same memory as db->ftable->buffer 569 image = gfits_table_get_Image (&db.ftable, &Nimage, &db.s wapped);571 image = gfits_table_get_Image (&db.ftable, &Nimage, &db.scaledValue, &db.nativeOrder); 570 572 if (!image) { 571 573 fprintf (stderr, "ERROR: failed to read images\n"); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/load2mass_as_rawdata.c
r34088 r38444 181 181 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 182 182 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 183 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;183 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 184 184 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 185 185 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/load2mass_catalog.c
r38318 r38444 56 56 catalog[0].Naverage = Nave; 57 57 catalog[0].Nmeasure = Nmeas; 58 catalog[0].Nsecf _mem = Nave*Nsec;58 catalog[0].Nsecfilt_mem = Nave*Nsec; 59 59 return (TRUE); 60 60 } -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadICRF_catalog.c
r37807 r38444 10 10 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 11 11 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 12 catalog.catflags = LOAD_AVES | LOAD_SECF | LOAD_MEAS;12 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_SECFILT | DVO_LOAD_MEASURE; 13 13 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 14 14 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadICRF_save_remote.c
r37807 r38444 2 2 # include "loadICRF.h" 3 3 # define DEBUG 1 4 5 int strextend (char *input, char *format,...) {6 7 char tmpextra[1024], tmpline[1024];8 va_list argp;9 10 va_start (argp, format);11 vsnprintf (tmpextra, 1024, format, argp);12 snprintf (tmpline, 1024, "%s %s", input, tmpextra);13 strcpy (input, tmpline);14 15 return TRUE;16 }17 4 18 5 int loadICRF_save_remote (ICRF_Stars *stars, int Nstars, HostTable *hosts, SkyRegion *region, char *fullname, AddstarClientOptions *options) { … … 64 51 65 52 // need to generate the remote command 66 char command[1024];67 s nprintf (command, 1024, "loadICRF_client");68 strextend ( command, "-hostID %d", host->hostID);69 strextend ( command, "-D CATDIR %s", CATDIR);70 strextend ( command, "-hostdir %s", host->pathname);71 strextend ( command, "-cpt %s", region->name);72 strextend ( command, "-input %s", filename);73 strextend ( command, "-D ADDSTAR_RADIUS %f", options->radius);53 char *command = NULL; 54 strextend (&command, "loadICRF_client"); 55 strextend (&command, "-hostID %d", host->hostID); 56 strextend (&command, "-D CATDIR %s", CATDIR); 57 strextend (&command, "-hostdir %s", host->pathname); 58 strextend (&command, "-cpt %s", region->name); 59 strextend (&command, "-input %s", filename); 60 strextend (&command, "-D ADDSTAR_RADIUS %f", options->radius); 74 61 75 62 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadICRF_table.c
r37807 r38444 1 1 # include "addstar.h" 2 2 # include "loadICRF.h" 3 4 # define GET_COLUMN(OUT,NAME,TYPE) \5 TYPE *OUT = gfits_get_bintable_column_data (&theader, &ftable, NAME, type, &Nrow, &Ncol); \6 myAssert (!strcmp(type, #TYPE), "wrong column type");7 3 8 4 int loadICRF_table (SkyList *skylistInput, HostTable *hosts, char *filename, AddstarClientOptions *options) { -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadstarpar_catalog.c
r37807 r38444 10 10 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 11 11 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 12 catalog.catflags = LOAD_AVES | LOAD_SECF |LOAD_STARPAR;12 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_SECFILT | DVO_LOAD_STARPAR; 13 13 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 14 14 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadstarpar_save_remote.c
r37807 r38444 2 2 # include "loadstarpar.h" 3 3 # define DEBUG 1 4 5 int strextend (char *input, char *format,...) {6 7 char tmpextra[1024], tmpline[1024];8 va_list argp;9 10 va_start (argp, format);11 vsnprintf (tmpextra, 1024, format, argp);12 snprintf (tmpline, 1024, "%s %s", input, tmpextra);13 strcpy (input, tmpline);14 15 return TRUE;16 }17 4 18 5 int loadstarpar_save_remote (StarPar_Stars *stars, int Nstars, HostTable *hosts, SkyRegion *region, char *fullname, AddstarClientOptions *options) { … … 62 49 63 50 // need to generate the remote command 64 char command[1024];65 s nprintf (command, 1024, "loadstarpar_client");66 strextend ( command, "-hostID %d", host->hostID);67 strextend ( command, "-D CATDIR %s", CATDIR);68 strextend ( command, "-hostdir %s", host->pathname);69 strextend ( command, "-cpt %s", region->name);70 strextend ( command, "-input %s", filename);51 char *command = NULL; 52 strextend (&command, "loadstarpar_client"); 53 strextend (&command, "-hostID %d", host->hostID); 54 strextend (&command, "-D CATDIR %s", CATDIR); 55 strextend (&command, "-hostdir %s", host->pathname); 56 strextend (&command, "-cpt %s", region->name); 57 strextend (&command, "-input %s", filename); 71 58 72 59 // launch the job on the remote machine (no handshake) … … 78 65 } 79 66 host->pid = pid; // save for future reference 67 free (command); 80 68 81 69 save_remote_host (host); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadstarpar_table.c
r37807 r38444 1 1 # include "addstar.h" 2 2 # include "loadstarpar.h" 3 4 # define GET_COLUMN(OUT,NAME,TYPE) \5 TYPE *OUT = gfits_get_bintable_column_data (&theader, &ftable, NAME, type, &Nrow, &Ncol); \6 myAssert (!strcmp(type, #TYPE), "wrong column type");7 3 8 4 int loadstarpar_table (SkyList *skylistInput, HostTable *hosts, char *filename, AddstarClientOptions *options) { -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadsupercos.c
r33653 r38444 47 47 48 48 // attempt to open the existing images table. if it does not exist, we will save the loaded images 49 gfits_db_init (&db); 49 50 db.mode = dvo_catalog_catmode (CATMODE); 50 51 db.format = dvo_catalog_catformat (CATFORMAT); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadsupercos_rawdata.c
r38268 r38444 171 171 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 172 172 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 173 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;173 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 174 174 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 175 175 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadwise_prelim_rawdata.c
r33653 r38444 186 186 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 187 187 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 188 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;188 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 189 189 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 190 190 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadwise_rawdata.c
r38268 r38444 188 188 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 189 189 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 190 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;190 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 191 191 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 192 192 -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/mkcmf.c
r37995 r38444 500 500 } 501 501 502 gfits_table_set_PS1_DEV_0 (ftable, stars, Nstars );502 gfits_table_set_PS1_DEV_0 (ftable, stars, Nstars, TRUE); 503 503 gfits_modify (ftable->header, "EXTTYPE", "%s", 1, "PS1_DEV_0"); 504 504 } … … 547 547 } 548 548 549 gfits_table_set_PS1_DEV_1 (ftable, stars, Nstars );549 gfits_table_set_PS1_DEV_1 (ftable, stars, Nstars, TRUE); 550 550 gfits_modify (ftable->header, "EXTTYPE", "%s", 1, "PS1_DEV_1"); 551 551 } … … 596 596 } 597 597 598 gfits_table_set_CMF_PS1_V1 (ftable, stars, Nstars );598 gfits_table_set_CMF_PS1_V1 (ftable, stars, Nstars, TRUE); 599 599 gfits_modify (ftable->header, "EXTTYPE", "%s", 1, "PS1_V1"); 600 600 } … … 651 651 } 652 652 653 gfits_table_set_CMF_PS1_V2 (ftable, stars, Nstars );653 gfits_table_set_CMF_PS1_V2 (ftable, stars, Nstars, TRUE); 654 654 gfits_modify (ftable->header, "EXTTYPE", "%s", 1, "PS1_V2"); 655 655 } … … 710 710 } 711 711 712 gfits_table_set_CMF_PS1_V3 (ftable, stars, Nstars );712 gfits_table_set_CMF_PS1_V3 (ftable, stars, Nstars, TRUE); 713 713 gfits_modify (ftable->header, "EXTTYPE", "%s", 1, "PS1_V3"); 714 714 } … … 778 778 } 779 779 780 gfits_table_set_CMF_PS1_V4 (ftable, stars, Nstars );780 gfits_table_set_CMF_PS1_V4 (ftable, stars, Nstars, TRUE); 781 781 gfits_modify (ftable->header, "EXTTYPE", "%s", 1, "PS1_V4"); 782 782 } -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/resort_catalogs.c
r37116 r38444 74 74 table->hosts[i].pathname = tmppath; 75 75 76 char command[1024];77 s nprintf (command, 1024, "addstar_client -resort");78 strextend ( command, "-D CATDIR %s", CATDIR);79 strextend ( command, "-hostID %d", table->hosts[i].hostID);80 strextend ( command, "-hostdir %s", table->hosts[i].pathname);81 strextend ( command, "-region %f %f %f %f", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);76 char *command = NULL; 77 strextend (&command, "addstar_client -resort"); 78 strextend (&command, "-D CATDIR %s", CATDIR); 79 strextend (&command, "-hostID %d", table->hosts[i].hostID); 80 strextend (&command, "-hostdir %s", table->hosts[i].pathname); 81 strextend (&command, "-region %f %f %f %f", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 82 82 83 if (VERBOSE) strextend ( command, "%s-v");84 if (NTHREADS) strextend ( command, "%s-threads %d", NTHREADS);85 if (OLD_RESORT) strextend ( command, "%s-old-resort");86 if (options->nosort == 3) strextend ( command, "%s-force-sort");87 if (options->existing_regions) strextend ( command, "%s-existing-regions");83 if (VERBOSE) strextend (&command, "-v"); 84 if (NTHREADS) strextend (&command, "-threads %d", NTHREADS); 85 if (OLD_RESORT) strextend (&command, "-old-resort"); 86 if (options->nosort == 3) strextend (&command, "-force-sort"); 87 if (options->existing_regions) strextend (&command, "-existing-regions"); 88 88 89 89 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/resort_threaded.c
r37116 r38444 43 43 44 44 // set the parameters which guide catalog open/load/create 45 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 46 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 47 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_LENSING; 48 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 45 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 46 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 47 catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data 48 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_LENSING; 49 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 49 50 50 51 // an error exit status here is a significant error (disk I/O or file access) … … 57 58 } 58 59 59 // Nave s_disk == 0 implies an empty catalog file, skip empty catalogs60 if (catalog.Nave s_disk == 0) {60 // Naverage_disk == 0 implies an empty catalog file, skip empty catalogs 61 if (catalog.Naverage_disk == 0) { 61 62 dvo_catalog_unlock (&catalog); 62 63 dvo_catalog_free (&catalog); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/resort_unthreaded.c
r37116 r38444 21 21 22 22 // set the parameters which guide catalog open/load/create 23 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 24 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 25 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_LENSING; 26 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 23 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 24 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 25 catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data 26 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_LENSING; 27 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 27 28 28 29 // an error exit status here is a significant error (disk I/O or file access) … … 32 33 } 33 34 34 // Nave s_disk == 0 implies an empty catalog file, skip empty catalogs35 if (catalog.Nave s_disk == 0) {35 // Naverage_disk == 0 implies an empty catalog file, skip empty catalogs 36 if (catalog.Naverage_disk == 0) { 36 37 dvo_catalog_unlock (&catalog); 37 38 dvo_catalog_free (&catalog); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/sedstar.c
r25757 r38444 26 26 for (i = 0; i < skylist[0].Nregions; i++) { 27 27 incatalog.filename = skylist[0].filename[i]; 28 incatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF;28 incatalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT; 29 29 30 30 // an error exit status here is a significant error … … 34 34 } 35 35 36 // Nave s_disk == 0 implies an empty catalog file37 if ((incatalog.Nave s_disk == 0) && options.only_match) {36 // Naverage_disk == 0 implies an empty catalog file 37 if ((incatalog.Naverage_disk == 0) && options.only_match) { 38 38 if (VERBOSE) fprintf (stderr, "skipping empty region\n"); 39 39 dvo_catalog_unlock (&incatalog); … … 54 54 outcatalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 55 55 outcatalog.Nsecfilt = GetPhotcodeNsecfilt (); 56 outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;56 outcatalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 57 57 58 58 // an error exit status here is a significant error -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/skycells.c
r21048 r38444 12 12 /*** update the image table ***/ 13 13 /* setup image table format and lock */ 14 gfits_db_init (&db); 14 15 db.mode = dvo_catalog_catmode (CATMODE); 15 16 db.format = dvo_catalog_catformat (CATFORMAT); -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/skycells_to_mdc.c
r33720 r38444 5 5 // Convert FITS_DB to images structure 6 6 off_t NdbImages; 7 Image *dbImages = gfits_table_get_Image(&db->ftable, &NdbImages, &db->s wapped);7 Image *dbImages = gfits_table_get_Image(&db->ftable, &NdbImages, &db->scaledValue, &db->nativeOrder); 8 8 9 9 // If tess_id was not supplied assume that it is the basename of the CATDIR -
branches/eam_branches/ipp-20150419/Ohana/src/addstar/test
- Property svn:mergeinfo set to
-
branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/simple.dvo
r37036 r38444 10 10 test.fields PS1_V2 PS1_V1 11 11 test.fields PS1_V3 PS1_V1 12 test.fields PS1_V 4PS1_V112 test.fields PS1_V5 PS1_V1 13 13 14 14 test.fields PS1_DEV_0 PS1_V2 … … 17 17 test.fields PS1_V2 PS1_V2 18 18 test.fields PS1_V3 PS1_V2 19 test.fields PS1_V 4 PS1_V419 test.fields PS1_V5 PS1_V2 20 20 21 21 test.fields PS1_DEV_0 PS1_V3 … … 24 24 test.fields PS1_V2 PS1_V3 25 25 test.fields PS1_V3 PS1_V3 26 test.fields PS1_V 4 PS1_V426 test.fields PS1_V5 PS1_V3 27 27 28 28 test.fields PS1_DEV_0 PS1_V4 … … 31 31 test.fields PS1_V2 PS1_V4 32 32 test.fields PS1_V3 PS1_V4 33 test.fields PS1_V 4PS1_V433 test.fields PS1_V5 PS1_V4 34 34 end 35 35 … … 54 54 55 55 mkinput 56 echo mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE 57 exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE 58 if ($TAP_VERBOSE) 59 echo exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass 60 exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass 61 else 62 echo addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass 63 exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass >& tmp.log 64 end 56 tapEXEC mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE 57 tapEXEC addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass 65 58 66 59 list testfields -copy testfields_$1 … … 79 72 if ("$name:0" == "SKIP") continue 80 73 if ("$name:2" == "SKIP") continue 74 81 75 read -fits Chip.psf $name:0 82 76 mextract $name:2 … … 92 86 set d = $name:0 - $name:2 93 87 vstat -q d 94 tapOK {abs($MEAN) < 0.001} "$name:0 vs $name:2 (MEAN )"95 tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA )"88 tapOK {abs($MEAN) < 0.001} "$name:0 vs $name:2 (MEAN = $MEAN)" 89 tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA = $SIGMA)" 96 90 97 91 # detection ID must be first for this to work: … … 142 136 if ("$name:0" == "PSF_THETA") 143 137 # echo $MEAN 144 tapOK {abs($MEAN) < 0.006} "$name:0 vs $name:2 (MEAN )"145 tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA )"138 tapOK {abs($MEAN) < 0.006} "$name:0 vs $name:2 (MEAN = $MEAN)" 139 tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA = $SIGMA)" 146 140 continue 147 141 end 148 142 149 tapOK {abs($MEAN) < 0.001} "$name:0 vs $name:2 (MEAN )"150 tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA )"143 tapOK {abs($MEAN) < 0.001} "$name:0 vs $name:2 (MEAN = $MEAN)" 144 tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA = $MEAN)" 151 145 end 152 146 … … 231 225 PSF_INST_MAG : mag:inst 232 226 PSF_INST_MAG_SIG : mag:err 233 AP_MAG_STANDARD : mag:ap # FAIL227 # AP_MAG_STANDARD : mag:ap # FAIL 234 228 AP_MAG_RADIUS : SKIP # no accessor 235 229 PEAK_FLUX_AS_MAG : SKIP # no accessor … … 237 231 CAL_PSF_MAG_SIG : SKIP # photometry is not calibrated in the cmf 238 232 SKY : sky 239 SKY_SIG : sky_err233 SKY_SIGMA : sky_err 240 234 PSF_CHISQ : psf_chisq 241 235 CR_NSIGMA : cr_nsigma … … 267 261 PSF_INST_MAG : mag:inst 268 262 PSF_INST_MAG_SIG : mag:err 269 AP_MAG_STANDARD : mag:ap # FAIL263 # AP_MAG_STANDARD : mag:ap # FAIL 270 264 AP_MAG_RADIUS : SKIP # no accessor 271 265 PEAK_FLUX_AS_MAG : SKIP # no accessor … … 273 267 CAL_PSF_MAG_SIG : SKIP # photometry is not calibrated in the cmf 274 268 SKY : sky 275 SKY_SIG : sky_err269 SKY_SIGMA : sky_err 276 270 PSF_CHISQ : psf_chisq 277 271 CR_NSIGMA : cr_nsigma … … 303 297 PSF_INST_FLUX : SKIP # not ingested into DVO 304 298 PSF_INST_FLUX_SIG : SKIP # not ingested into DVO 305 AP_MAG_STANDARD : mag:aperinst # FAIL299 # AP_MAG_STANDARD : mag:aperinst # FAIL 306 300 AP_MAG_RAW : SKIP # not ingested into DVO 307 301 AP_MAG_RADIUS : SKIP # not ingested into DVO … … 312 306 PEAK_FLUX_AS_MAG : SKIP # not ingested into DVO 313 307 SKY : sky 314 SKY_SIG : sky_err308 SKY_SIGMA : sky_err 315 309 PSF_CHISQ : psf_chisq 316 310 CR_NSIGMA : cr_nsigma … … 332 326 MOMENTS_R1 : SKIP # not ingested into DVO 333 327 MOMENTS_RH : SKIP # not ingested into DVO 334 KRON_FLUX : mag:kron inst335 KRON_FLUX_ERR : mag:kron err328 KRON_FLUX : mag:kron:inst 329 KRON_FLUX_ERR : mag:kron:err 336 330 KRON_FLUX_INNER : SKIP # not ingested into DVO 337 331 KRON_FLUX_OUTER : SKIP # not ingested into DVO
Note:
See TracChangeset
for help on using the changeset viewer.
