Changeset 39416
- Timestamp:
- Mar 1, 2016, 11:30:25 AM (10 years ago)
- Location:
- branches/eam_branches/ohana.20160226/src
- Files:
-
- 16 edited
-
addstar/src/ConfigInit.c (modified) (1 diff)
-
addstar/src/LoadDataSDSS.c (modified) (1 diff)
-
addstar/src/ReadImageHeader.c (modified) (2 diffs)
-
addstar/src/ReadStarsFITS.c (modified) (1 diff)
-
addstar/src/SkyRegionUtils.c (modified) (1 diff)
-
addstar/src/build_links.c (modified) (3 diffs)
-
addstar/src/calibrate.c (modified) (1 diff)
-
addstar/src/greference.c (modified) (1 diff)
-
addstar/src/loadgalphot_table.c (modified) (1 diff)
-
addstar/src/loadsupercos_rawdata.c (modified) (1 diff)
-
addstar/src/mkcmf.c (modified) (5 diffs)
-
addstar/src/sky_tessalation.c (modified) (4 diffs)
-
delstar/src/delete_duplicate_images.c (modified) (1 diff)
-
delstar/src/delete_fix_LAP.c (modified) (1 diff)
-
delstar/src/find_image_db.c (modified) (1 diff)
-
delstar/src/gimages.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20160226/src/addstar/src/ConfigInit.c
r39041 r39416 224 224 225 225 /* get detection filtering mask */ 226 if (!ScanConfig (config, "DETECTIONFILTER", "% d", 0, &options.detectionFilter)) {226 if (!ScanConfig (config, "DETECTIONFILTER", "%u", 0, &options.detectionFilter)) { 227 227 options.detectionFilter = 0; 228 228 } -
branches/eam_branches/ohana.20160226/src/addstar/src/LoadDataSDSS.c
r38553 r39416 5 5 // each SDSS data set corresponds to 5 images (ugriz) 6 6 Catalog *LoadDataSDSS (FILE *f, char *imagename, Image **images, off_t *nvalid, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t Nimages) { 7 OHANA_UNUSED_PARAM(Nimages); 7 8 8 9 off_t Nskip, Nvalid, NVALID; -
branches/eam_branches/ohana.20160226/src/addstar/src/ReadImageHeader.c
r39041 r39416 209 209 } 210 210 211 if (!gfits_scan (header, ImageIDKeyword, "% d", 1, &image[0].externID)) {211 if (!gfits_scan (header, ImageIDKeyword, "%u", 1, &image[0].externID)) { 212 212 image[0].externID = 0; 213 213 } … … 272 272 273 273 /* find expected number of stars */ 274 if (!gfits_scan (header, "NSTARS", "% d", 1, &image[0].nstar) && !NO_STARS) {274 if (!gfits_scan (header, "NSTARS", "%u", 1, &image[0].nstar) && !NO_STARS) { 275 275 fprintf (stderr, "WARNING: can't get NSTARS from header (TEXT mode will be invalid)\n"); 276 276 } -
branches/eam_branches/ohana.20160226/src/addstar/src/ReadStarsFITS.c
r38553 r39416 43 43 // corresponding image header, load the stars from the table 44 44 Catalog *ReadStarsFITS (FILE *f, Header *header, Header *in_theader) { 45 OHANA_UNUSED_PARAM(header); 45 46 46 47 off_t Nskip; -
branches/eam_branches/ohana.20160226/src/addstar/src/SkyRegionUtils.c
r24977 r39416 2 2 3 3 SkyList *SkyListExistingSubset (SkyList *input, char *path) { 4 OHANA_UNUSED_PARAM(path); 4 5 5 6 int i, status, Nsubset, NSUBSET; -
branches/eam_branches/ohana.20160226/src/addstar/src/build_links.c
r39346 r39416 27 27 not partial, and has a correct set of average[].measureOffset,Nmeasure values */ 28 28 off_t *init_measure_links (Average *average, off_t Naverage, Measure *measure, off_t Nmeasure) { 29 OHANA_UNUSED_PARAM(measure); 29 30 30 31 off_t i, j, N; … … 161 162 /* build the initial links assuming the table is sorted */ 162 163 off_t *init_missing_links (Average *average, off_t Naverage, Missing *missing, off_t Nmissing) { 164 OHANA_UNUSED_PARAM(missing); 163 165 164 166 off_t i, j, N; … … 229 231 not partial, and has a correct set of average[].lensingOffset,Nlensing values */ 230 232 off_t *init_lensing_links (Average *average, off_t Naverage, Lensing *lensing, off_t Nlensing) { 233 OHANA_UNUSED_PARAM(lensing); 231 234 232 235 off_t i, j, N; -
branches/eam_branches/ohana.20160226/src/addstar/src/calibrate.c
r30613 r39416 157 157 /* create a hash array from Nstar[] entries */ 158 158 ALLOCATE (Nlist, int, MaxN + 1); 159 memset (Nlist, 0, MAX (0, MaxN*sizeof(int))); 159 if (MaxN >= 0) { 160 memset (Nlist, 0, sizeof(int)); 161 } 160 162 for (i = 0; i < Ncal; i++) { 161 163 Nlist[Nstar[i]] ++; -
branches/eam_branches/ohana.20160226/src/addstar/src/greference.c
r38986 r39416 4 4 5 5 Catalog *greference (char *Refcat, SkyRegion *region, int photcode) { 6 OHANA_UNUSED_PARAM(photcode); 6 7 7 8 Catalog *catalog = NULL; -
branches/eam_branches/ohana.20160226/src/addstar/src/loadgalphot_table.c
r39282 r39416 3 3 4 4 int loadgalphot_table (SkyList *skylistInput, HostTable *hosts, char *filename, AddstarClientOptions *options) { 5 OHANA_UNUSED_PARAM(hosts); 5 6 6 7 int i, Nstars; -
branches/eam_branches/ohana.20160226/src/addstar/src/loadsupercos_rawdata.c
r38986 r39416 7 7 8 8 int loadsupercos_rawdata (Image *image, int *imlist, int Nimage, SkyTable *skytable, char *filename, AddstarClientOptions options) { 9 OHANA_UNUSED_PARAM(Nimage); 9 10 10 11 int i; -
branches/eam_branches/ohana.20160226/src/addstar/src/mkcmf.c
r39248 r39416 1368 1368 1369 1369 int WriteXSRCtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars, float zeroPt, float exptime) { 1370 OHANA_UNUSED_PARAM(Flag); 1370 1371 1371 1372 int i, j; … … 1527 1528 1528 1529 int WriteXFITtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars) { 1530 OHANA_UNUSED_PARAM(Flag); 1529 1531 1530 1532 int i; … … 1688 1690 1689 1691 int WriteXGALtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars) { 1692 OHANA_UNUSED_PARAM(Flag); 1690 1693 1691 1694 int i; … … 1804 1807 1805 1808 int WriteXRADtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars, int Nrad) { 1809 OHANA_UNUSED_PARAM(Flag); 1806 1810 1807 1811 int i, j, k; … … 1881 1885 1882 1886 int WriteDETFtable (FILE *fits, char *extroot, double *X, double *Y, double *M, unsigned int *Flag, int Nstars) { 1887 OHANA_UNUSED_PARAM(X); 1888 OHANA_UNUSED_PARAM(Y); 1889 OHANA_UNUSED_PARAM(M); 1890 OHANA_UNUSED_PARAM(Flag); 1891 OHANA_UNUSED_PARAM(Nstars); 1883 1892 1884 1893 int i; -
branches/eam_branches/ohana.20160226/src/addstar/src/sky_tessalation.c
r37807 r39416 202 202 // for local projects such as the PS1 Medium Deep fields 203 203 int sky_tessellation_local (FITS_DB *db, int level, int Nmax) { 204 OHANA_UNUSED_PARAM(level); 205 OHANA_UNUSED_PARAM(Nmax); 204 206 205 207 int Nimage; … … 239 241 // we generate projects on uniform rings of constant dec height 240 242 int sky_tessellation_rings (FITS_DB *db, int level, int Nmax) { 243 OHANA_UNUSED_PARAM(level); 244 OHANA_UNUSED_PARAM(Nmax); 241 245 242 246 int j, nDEC, Nimage, Nring, Ntotal, Ndigit; … … 294 298 // based on code supplied by Tamas 2012.07.23 295 299 int sky_tessellation_tamas (FITS_DB *db, int level, int Nmax) { 300 OHANA_UNUSED_PARAM(level); 301 OHANA_UNUSED_PARAM(Nmax); 296 302 297 303 int j, nDEC, Nimage, Nring, Ntotal, Ndigit; … … 740 746 // format : guide to generate the filenames (c-type string format) 741 747 SkyRectangle *sky_rectangle_tamas (double *Dec, double dm, double halfa, double halftheta, int *nring, char *format) { 748 OHANA_UNUSED_PARAM(halfa); 742 749 743 750 static int Nname = 0; -
branches/eam_branches/ohana.20160226/src/delstar/src/delete_duplicate_images.c
r39313 r39416 630 630 631 631 off_t find_obstime_range (Image *image, off_t Nimage, off_t firstEntry) { 632 OHANA_UNUSED_PARAM(image); 632 633 633 634 Nsubset = 0; -
branches/eam_branches/ohana.20160226/src/delstar/src/delete_fix_LAP.c
r38986 r39416 465 465 466 466 int delete_fix_LAP_measures (off_t *measureDrop, Catalog *catalog, ImageSubset *image, off_t Nimage) { 467 OHANA_UNUSED_PARAM(Nimage); 467 468 468 469 /* internal counters */ -
branches/eam_branches/ohana.20160226/src/delstar/src/find_image_db.c
r38441 r39416 83 83 84 84 for (i = 0; i < Nimage; i++) { 85 if (image[i].tzero < START) continue;86 if (image[i].tzero > END) continue;85 if (image[i].tzero < start) continue; 86 if (image[i].tzero > end) continue; 87 87 if (code != NULL) { 88 88 if (image[i].photcode != code[0].code) continue; -
branches/eam_branches/ohana.20160226/src/delstar/src/gimages.c
r27435 r39416 46 46 47 47 /* get other header info */ 48 haveNx = gfits_scan (&header, "NAXIS1", "%h d", 1, &image[0].NX);49 haveNy = gfits_scan (&header, "NAXIS2", "%h d", 1, &image[0].NY);48 haveNx = gfits_scan (&header, "NAXIS1", "%hu", 1, &image[0].NX); 49 haveNy = gfits_scan (&header, "NAXIS2", "%hu", 1, &image[0].NY); 50 50 if (!haveNx && !haveNy) { 51 haveNx = gfits_scan (&header, "IMNAXIS1", "%h d", 1, &image[0].NX);52 haveNy = gfits_scan (&header, "IMNAXIS2", "%h d", 1, &image[0].NY);51 haveNx = gfits_scan (&header, "IMNAXIS1", "%hu", 1, &image[0].NX); 52 haveNy = gfits_scan (&header, "IMNAXIS2", "%hu", 1, &image[0].NY); 53 53 } 54 54 if (!haveNx && !haveNy) { 55 haveNx = gfits_scan (&header, "ZNAXIS1", "%h d", 1, &image[0].NX);56 haveNy = gfits_scan (&header, "ZNAXIS2", "%h d", 1, &image[0].NY);55 haveNx = gfits_scan (&header, "ZNAXIS1", "%hu", 1, &image[0].NX); 56 haveNy = gfits_scan (&header, "ZNAXIS2", "%hu", 1, &image[0].NY); 57 57 } 58 58 if (!haveNx || !haveNy) {
Note:
See TracChangeset
for help on using the changeset viewer.
