IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18875


Ignore:
Timestamp:
Aug 2, 2008, 12:50:27 AM (18 years ago)
Author:
Sebastian Jester
Message:

Identify SDSS tsObj files by presence of PHOT_VER and TARG_VER rather than CAMCOL and STRIPE - the latter are present also in IPP outputs generated from SDSS input images. Thus, this change is required to be able to run addstar on IPP photometry of SDSS data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sj_branch_20080802/Ohana/src/addstar/src/GetFileMode.c

    r16810 r18875  
    1616  gfits_scan (header, "EXTEND", "%t", 1, &extend);
    1717   
    18   {
    19     int tmp, haveCAMCOL, haveSTRIPE;
    20    
    21     // SDSS tsObj files have CAMCOL & STRIP keywords present in the header
    22     haveCAMCOL = gfits_scan (header, "CAMCOL",  "%d", 1, &tmp);
    23     haveSTRIPE = gfits_scan (header, "STRIPE",  "%d", 1, &tmp);
    24     if (haveCAMCOL && haveSTRIPE) return SDSS_OBJ;
    25   }
     18{
     19    int tmp, havePHOT_VER, haveTARG_VER;
     20
     21    // SDSS tsObj files have a version number for the PHOTO and
     22    // TS (target selection) pipelines present as header keywords
     23    havePHOT_VER = gfits_scan (header, "PHOT_VER", "%s", 1, &tmp);
     24    haveTARG_VER = gfits_scan (header, "TARG_VER", "%s", 1, &tmp);
     25    if (havePHOT_VER && haveTARG_VER) return SDSS_OBJ;
     26}
    2627
    2728  if ((Naxis == 2) || TEXTMODE || !simple) {
Note: See TracChangeset for help on using the changeset viewer.