Changeset 38441 for trunk/Ohana/src/getstar
- Timestamp:
- Jun 12, 2015, 6:18:23 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 10 edited
-
. (modified) (1 prop)
-
src/getstar/src/WriteImageFITS.c (modified) (1 diff)
-
src/getstar/src/dvoImageExtract.c (modified) (2 diffs)
-
src/getstar/src/dvoImageOverlaps.c (modified) (2 diffs)
-
src/getstar/src/dvoImagesAtCoords.c (modified) (2 diffs)
-
src/getstar/src/getstar.c (modified) (5 diffs)
-
src/getstar/src/select_by_region.c (modified) (1 diff)
-
src/getstar/src/write_getstar_ps1_dev_0.c (modified) (1 diff)
-
src/getstar/src/write_getstar_ps1_dev_1.c (modified) (1 diff)
-
src/getstar/src/write_getstar_ps1_dev_2.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20150429 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/getstar/src/WriteImageFITS.c
r14590 r38441 36 36 37 37 table.header = &theader; 38 gfits_table_set_SMPData (&table, NULL, Nstars );38 gfits_table_set_SMPData (&table, NULL, Nstars, TRUE); 39 39 gfits_fwrite_Theader (f, &theader); 40 40 gfits_fwrite_table (f, &table); -
trunk/Ohana/src/getstar/src/dvoImageExtract.c
r29001 r38441 14 14 /*** update the image table ***/ 15 15 /* setup image table format and lock */ 16 gfits_db_init (&db); 16 17 db.mode = dvo_catalog_catmode (CATMODE); 17 18 db.format = dvo_catalog_catformat (CATFORMAT); … … 31 32 32 33 // convert database table to internal structure 33 images = gfits_table_get_Image (&db.ftable, &Nimages, &db.s wapped);34 images = gfits_table_get_Image (&db.ftable, &Nimages, &db.scaledValue, &db.nativeOrder); 34 35 if (!images) { 35 36 fprintf (stderr, "ERROR: failed to read images\n"); -
trunk/Ohana/src/getstar/src/dvoImageOverlaps.c
r29001 r38441 17 17 /*** update the image table ***/ 18 18 /* setup image table format and lock */ 19 gfits_db_init (&db); 19 20 db.mode = dvo_catalog_catmode (CATMODE); 20 21 db.format = dvo_catalog_catformat (CATFORMAT); … … 34 35 35 36 // convert database table to internal structure 36 dbImages = gfits_table_get_Image (&db.ftable, &NdbImages, &db.s wapped);37 dbImages = gfits_table_get_Image (&db.ftable, &NdbImages, &db.scaledValue, &db.nativeOrder); 37 38 if (!dbImages) { 38 39 fprintf (stderr, "ERROR: failed to read images\n"); -
trunk/Ohana/src/getstar/src/dvoImagesAtCoords.c
r36131 r38441 43 43 /*** update the image table ***/ 44 44 /* setup image table format and lock */ 45 gfits_db_init (&db); 45 46 db.mode = dvo_catalog_catmode (CATMODE); 46 47 db.format = dvo_catalog_catformat (CATFORMAT); … … 60 61 61 62 // convert database table to internal structure 62 dbImages = gfits_table_get_Image (&db.ftable, &NdbImages, &db.s wapped);63 dbImages = gfits_table_get_Image (&db.ftable, &NdbImages, &db.scaledValue, &db.nativeOrder); 63 64 if (!dbImages) { 64 65 fprintf (stderr, "ERROR: failed to read images\n"); -
trunk/Ohana/src/getstar/src/getstar.c
r37359 r38441 28 28 output.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 29 29 output.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 30 output.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF;30 output.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT; 31 31 output.Nsecfilt = GetPhotcodeNsecfilt (); 32 32 … … 63 63 catalog.filename = skylist[0].filename[i]; 64 64 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 65 catalog.catflags = LOAD_AVES | LOAD_SECF;66 catalog.catflags |= needMeas ? LOAD_MEAS : SKIP_MEAS;65 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_SECFILT; 66 catalog.catflags |= needMeas ? DVO_LOAD_MEASURE : DVO_SKIP_MEASURE; 67 67 68 68 // an error exit status here is a significant error … … 71 71 exit (2); 72 72 } 73 if (!catalog.Nave s_disk) {73 if (!catalog.Naverage_disk) { 74 74 dvo_catalog_unlock (&catalog); 75 75 dvo_catalog_free (&catalog); … … 95 95 catalog.filename = skylist[0].filename[i]; 96 96 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 97 catalog.catflags = LOAD_AVES | LOAD_SECF;98 catalog.catflags |= needMeas ? LOAD_MEAS : SKIP_MEAS;97 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_SECFILT; 98 catalog.catflags |= needMeas ? DVO_LOAD_MEASURE : DVO_SKIP_MEASURE; 99 99 100 100 // an error exit status here is a significant error … … 104 104 } 105 105 /* skip empty catalogs */ 106 if (!catalog.Nave s_disk) continue;106 if (!catalog.Naverage_disk) continue; 107 107 stars = select_by_image (&catalog, &image, 0, 0, stars, &Nstars); 108 108 } -
trunk/Ohana/src/getstar/src/select_by_region.c
r37044 r38441 162 162 output[0].Naverage = Nave; 163 163 output[0].Nmeasure = Nmeas; 164 output[0].Nsecf _mem = Nave*Nsecfilt;164 output[0].Nsecfilt_mem = Nave*Nsecfilt; 165 165 166 166 fprintf (stderr, "output catalog has "OFF_T_FMT" stars ("OFF_T_FMT" measures, %d secfilt)\n", -
trunk/Ohana/src/getstar/src/write_getstar_ps1_dev_0.c
r37044 r38441 111 111 112 112 ftable.header = &theader; 113 gfits_table_set_Getstar_PS1_DEV_0 (&ftable, output, Noutput );113 gfits_table_set_Getstar_PS1_DEV_0 (&ftable, output, Noutput, TRUE); 114 114 115 115 gfits_fwrite_header (f, &header); -
trunk/Ohana/src/getstar/src/write_getstar_ps1_dev_1.c
r37044 r38441 114 114 115 115 ftable.header = &theader; 116 gfits_table_set_Getstar_PS1_DEV_1 (&ftable, output, Noutput );116 gfits_table_set_Getstar_PS1_DEV_1 (&ftable, output, Noutput, TRUE); 117 117 118 118 gfits_fwrite_header (f, &header); -
trunk/Ohana/src/getstar/src/write_getstar_ps1_dev_2.c
r37044 r38441 120 120 121 121 ftable.header = &theader; 122 gfits_table_set_Getstar_PS1_DEV_2 (&ftable, output, Noutput );122 gfits_table_set_Getstar_PS1_DEV_2 (&ftable, output, Noutput, TRUE); 123 123 124 124 gfits_fwrite_header (f, &header);
Note:
See TracChangeset
for help on using the changeset viewer.
