- Timestamp:
- Mar 17, 2013, 6:16:50 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/Ohana/src/addstar/src/GetFileMode.c
r35108 r35316 20 20 havePHOT_VER = gfits_scan (header, "PHOT_VER", "%s", 1, ctmp); 21 21 haveTARG_VER = gfits_scan (header, "TARG_VER", "%s", 1, ctmp); 22 if (havePHOT_VER && haveTARG_VER) return SDSS_OBJ; 22 if (havePHOT_VER && haveTARG_VER) { 23 if (VERBOSE) fprintf (stderr, "found SDSS objects\n"); 24 return SDSS_OBJ; 25 } 23 26 24 27 if (haveNaxis && (Naxis == 2)) { … … 28 31 if ((Nx > 0) && (Ny > 0)) { 29 32 if (haveCTYPE && !strcmp (&ctype[4], "-WRP")) { 33 if (VERBOSE) fprintf (stderr, "found MOSAIC CMP\n"); 30 34 return MOSAIC_CMP; 31 35 } 36 if (VERBOSE) fprintf (stderr, "found SIMPLE CMP\n"); 32 37 return SIMPLE_CMP; 33 38 } … … 36 41 if (haveNaxis && (TEXTMODE || !simple)) { 37 42 if (haveCTYPE && !strcmp (&ctype[4], "-WRP")) { 43 if (VERBOSE) fprintf (stderr, "found MOSAIC CMP\n"); 38 44 return MOSAIC_CMP; 39 45 } 46 if (VERBOSE) fprintf (stderr, "found SIMPLE CMP\n"); 40 47 return SIMPLE_CMP; 41 48 } … … 43 50 if (!extend && strcmp (&ctype[4], "-DIS")) { 44 51 if (!strcmp (&ctype[4], "-WRP")) { 52 if (VERBOSE) fprintf (stderr, "found MOSAIC CMF\n"); 45 53 return MOSAIC_CMF; 46 54 } 55 if (VERBOSE) fprintf (stderr, "found SIMPLE CMF\n"); 47 56 return SIMPLE_CMF; 48 57 } 49 58 50 59 if (!extend && !strcmp (&ctype[4], "-DIS")) { 60 if (VERBOSE) fprintf (stderr, "found MOSAIC PHU\n"); 51 61 return MOSAIC_PHU; 52 62 } 53 63 54 64 if (extend && strcmp (&ctype[4], "-DIS")) { 65 if (VERBOSE) fprintf (stderr, "found SIMPLE MEF\n"); 55 66 return SIMPLE_MEF; 56 67 } 57 68 58 69 if (extend && !strcmp (&ctype[4], "-DIS")) { 70 if (VERBOSE) fprintf (stderr, "found MOSAIC MEF\n"); 59 71 return MOSAIC_MEF; 60 72 } 61 73 74 if (VERBOSE) fprintf (stderr, "extension type is unknown\n"); 62 75 return (NONE); 63 76 }
Note:
See TracChangeset
for help on using the changeset viewer.
