IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38615


Ignore:
Timestamp:
Jul 22, 2015, 8:15:13 AM (11 years ago)
Author:
eugene
Message:

update setphot to handle new Eddie table

Location:
branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/load_zpt_table.c

    r37807 r38615  
    107107  if (NO_METADATA) {
    108108    NFILTER = 5;
    109     NSEASON = 4;
     109    NSEASON = 5;
    110110    NCHIP_X = 8;
    111111    NCHIP_Y = 8;
     
    165165  // ubercal hard-coded values
    166166  char filters_uc[5][3] = {"g", "r", "i", "z", "y"};
    167   double tstart_uc[] = {55000.0, 55296.0, 55327.0, 55662.0};
    168   double tstop_uc[]  = {55296.0, 55327.0, 55662.0, 60000.0};
     167
     168  // double tstart_uc[] = {55000.0, 55296.0, 55327.0, 55662.0};
     169  // double tstop_uc[]  = {55296.0, 55327.0, 55662.0, 60000.0};
     170
     171  double tstart_uc[] = {50000.0, 55296.0, 55327.0, 55662.0, 56110.0};
     172  double tstop_uc[]  = {55296.0, 55327.0, 55662.0, 56110.0, 65000.0};
    169173
    170174  double mjdstart, mjdstop;
     
    275279        exit (2);
    276280    }
     281
     282    // ***** skip the extra table segment *****
     283    // load data for this header
     284    if (!gfits_load_header (f, &theader)) return (NULL);
     285
     286    // read the fits table bytes
     287    if (!gfits_fread_ftable_data (f, &ftable, FALSE)) return (NULL);
     288 
     289    // skip over remaining bytes in data segment
     290    fseeko (f, ftable.datasize - ftable.validsize, SEEK_CUR);
    277291
    278292    // XXX the initial hacked-together table from Eddie is missing the last 2 elements.  they should be zero
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setphot.c

    r38471 r38615  
    5353    dvo_catalog_init (&catalog, TRUE);
    5454    catalog.filename    = HOST_ID ? localFilename : skylist[0].filename[i];
    55     catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     55    catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE;
    5656    catalog.Nsecfilt    = GetPhotcodeNsecfilt ();
    5757
Note: See TracChangeset for help on using the changeset viewer.