IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38444


Ignore:
Timestamp:
Jun 12, 2015, 9:30:51 PM (11 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20150419/Ohana/src/addstar
Files:
41 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/include/addstar.h

    r38268 r38444  
    8484char   GSCFILE[256];
    8585char  *CATDIR;
    86 char   CATMODE[16];    /* raw, mef, split, mysql */
    87 char   CATFORMAT[16];  /* internal, elixir, loneos, panstarrs */
     86char   CATMODE[16];     /* raw, mef, split, mysql */
     87char   CATFORMAT[16];   /* internal, elixir, loneos, panstarrs */
     88char   CATCOMPRESS[16]; /* GZIP_1, NONE */
    8889char   TWO_MASS_DIR_AS[256];
    8990char   TWO_MASS_DIR_DR2[256];
     
    325326void *memrchr(const void *s, int c, size_t n);
    326327int addstar_create_ID ();
    327 int strextend (char *input, char *format,...);
    328328
    329329void initMosaicCoords ();
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/ConfigInit.c

    r33963 r38444  
    134134  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
    135135  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
     136  if (!ScanConfig (config, "CATCOMPRESS",       "%s",  0, CATCOMPRESS)) {
     137    strcpy (CATCOMPRESS, "NONE");
     138  }
    136139  if (!ScanConfig (config, "SKY_DEPTH",         "%d",  0, &SKY_DEPTH)) {
    137140    SKY_DEPTH = SKY_DEPTH_HST;
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/ReadStarsFITS.c

    r37995 r38444  
    153153  off_t Nstars;
    154154  unsigned int i;
    155   char swapped;
    156155  double ZeroPt;
    157156  Stars *stars = NULL;
    158157  SMPData *smpdata = NULL;
    159158
    160   swapped = FALSE;
    161   smpdata = gfits_table_get_SMPData (table, &Nstars, &swapped);
     159  smpdata = gfits_table_get_SMPData (table, &Nstars, NULL, NULL);
    162160  if (!smpdata) {
    163161    fprintf (stderr, "skipping inconsistent entry\n");
     
    229227  PS1_DEV_0 *ps1data;
    230228
    231   ps1data = gfits_table_get_PS1_DEV_0 (table, &Nstars, NULL);
     229  ps1data = gfits_table_get_PS1_DEV_0 (table, &Nstars, NULL, NULL);
    232230  if (!ps1data) {
    233231    fprintf (stderr, "skipping inconsistent entry\n");
     
    300298  PS1_DEV_1 *ps1data;
    301299
    302   ps1data = gfits_table_get_PS1_DEV_1 (table, &Nstars, NULL);
     300  ps1data = gfits_table_get_PS1_DEV_1 (table, &Nstars, NULL, NULL);
    303301  if (!ps1data) {
    304302    fprintf (stderr, "skipping inconsistent entry\n");
     
    383381  }
    384382
    385   ps1data = gfits_table_get_CMF_PS1_V1 (table, &Nstars, NULL);
     383  ps1data = gfits_table_get_CMF_PS1_V1 (table, &Nstars, NULL, NULL);
    386384  if (!ps1data) {
    387385    fprintf (stderr, "skipping inconsistent entry\n");
     
    545543  CMF_PS1_V2 *ps1data;
    546544
    547   ps1data = gfits_table_get_CMF_PS1_V2 (table, &Nstars, NULL);
     545  ps1data = gfits_table_get_CMF_PS1_V2 (table, &Nstars, NULL, NULL);
    548546  if (!ps1data) {
    549547    fprintf (stderr, "skipping inconsistent entry\n");
     
    622620  CMF_PS1_V3 *ps1data;
    623621
    624   ps1data = gfits_table_get_CMF_PS1_V3 (table, &Nstars, NULL);
     622  ps1data = gfits_table_get_CMF_PS1_V3 (table, &Nstars, NULL, NULL);
    625623  if (!ps1data) {
    626624    fprintf (stderr, "skipping inconsistent entry\n");
     
    706704  CMF_PS1_V4 *ps1data;
    707705
    708   ps1data = gfits_table_get_CMF_PS1_V4 (table, &Nstars, NULL);
     706  ps1data = gfits_table_get_CMF_PS1_V4 (table, &Nstars, NULL, NULL);
    709707  if (!ps1data) {
    710708    fprintf (stderr, "skipping inconsistent entry\n");
     
    12591257  }
    12601258
    1261   ps1data = gfits_table_get_CMF_PS1_SV1 (table, &Nstars, NULL);
     1259  ps1data = gfits_table_get_CMF_PS1_SV1 (table, &Nstars, NULL, NULL);
    12621260  if (!ps1data) {
    12631261    fprintf (stderr, "skipping inconsistent entry\n");
     
    14231421  CMF_PS1_SV2 *ps1data;
    14241422
    1425   ps1data = gfits_table_get_CMF_PS1_SV2 (table, &Nstars, NULL);
     1423  ps1data = gfits_table_get_CMF_PS1_SV2 (table, &Nstars, NULL, NULL);
    14261424  if (!ps1data) {
    14271425    fprintf (stderr, "skipping inconsistent entry\n");
     
    17531751  CMF_PS1_DV4 *ps1data;
    17541752
    1755   ps1data = gfits_table_get_CMF_PS1_DV4 (table, &Nstars, NULL);
     1753  ps1data = gfits_table_get_CMF_PS1_DV4 (table, &Nstars, NULL, NULL);
    17561754  if (!ps1data) {
    17571755    fprintf (stderr, "skipping inconsistent entry\n");
     
    18391837  CMF_PS1_DV5 *ps1data;
    18401838
    1841   ps1data = gfits_table_get_CMF_PS1_DV5 (table, &Nstars, NULL);
     1839  ps1data = gfits_table_get_CMF_PS1_DV5 (table, &Nstars, NULL, NULL);
    18421840  if (!ps1data) {
    18431841    fprintf (stderr, "skipping inconsistent entry\n");
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/SEDfit.c

    r38318 r38444  
    198198  outcat[0].Naverage  = Nave;
    199199  outcat[0].Nmeasure  = Nmeas;
    200   outcat[0].Nsecf_mem = Nave*Nsec;
     200  outcat[0].Nsecfilt_mem = Nave*Nsec;
    201201 
    202202  free (sourceValue.mags);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateDatabase_Image.c

    r37807 r38444  
    1212  }
    1313
    14   catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    15   if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;
     14  catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     15  if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    1616 
    1717  // XXX this is probably not needed anymore
     
    4747    catalog.filename  = skylist[0].filename[i];
    4848    catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    49     catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    50     if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;
     49    catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     50    if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    5151
    5252    // an error exit status here is a significant error
     
    5656    }
    5757
    58     // Naves_disk == 0 implies an empty catalog file
     58    // Naverage_disk == 0 implies an empty catalog file
    5959    // for only_match, skip empty catalogs
    60     if ((catalog.Naves_disk == 0) && options[0].only_match) {
     60    if ((catalog.Naverage_disk == 0) && options[0].only_match) {
    6161      dvo_catalog_unlock (&catalog);
    6262      dvo_catalog_free (&catalog);
     
    7373      SetProtect (TRUE);
    7474      if (options[0].update) {
    75         catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     75        catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    7676        dvo_catalog_update (&catalog, VERBOSE);
    7777      } else {
     
    9292    /*** update the image table ***/
    9393    /* setup image table format and lock */
     94    gfits_db_init (&db);
    9495    db.mode   = dvo_catalog_catmode (CATMODE);
    9596    db.format = dvo_catalog_catformat (CATFORMAT);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateDatabase_Refcat.c

    r15743 r38444  
    3636    catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    3737    catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    38     catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    39     if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;
     38    catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     39    if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    4040 
    4141    // an error exit status here is a significant error
     
    4545    }
    4646
    47     // Naves_disk == 0 implies an empty catalog file
     47    // Naverage_disk == 0 implies an empty catalog file
    4848    // for only_match, skip empty catalogs
    49     if ((catalog.Naves_disk == 0) && options[0].only_match) {
     49    if ((catalog.Naverage_disk == 0) && options[0].only_match) {
    5050      dvo_catalog_unlock (&catalog);
    5151      dvo_catalog_free (&catalog);
     
    6363      SetProtect (TRUE);
    6464      if (options[0].update) {
    65         catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     65        catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    6666        dvo_catalog_update (&catalog, VERBOSE);
    6767      } else {
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateDatabase_Reflist.c

    r27435 r38444  
    3636    catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    3737    catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    38     catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    39     if (options[0].update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;
     38    catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     39    if (options[0].update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    4040
    4141    // an error exit status here is a significant error
     
    4646
    4747    /* for only_match, skip empty catalogs XXX EAM : this leaves behind empty files */
    48     if ((catalog.Naves_disk == 0) && options[0].only_match) {
     48    if ((catalog.Naverage_disk == 0) && options[0].only_match) {
    4949      dvo_catalog_unlock (&catalog);
    5050      dvo_catalog_free (&catalog);
     
    5959      SetProtect (TRUE);
    6060      if (options[0].update) {
    61         catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     61        catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    6262        dvo_catalog_update (&catalog, VERBOSE);
    6363      } else {
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/UpdateImageIDs.c

    r38184 r38444  
    99  /*** update the image table ***/
    1010  /* setup image table format and lock */
     11  gfits_db_init (&db);
    1112  db.mode   = dvo_catalog_catmode (CATMODE);
    1213  db.format = dvo_catalog_catformat (CATFORMAT);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/addstar.c

    r37807 r38444  
    104104
    105105    // set the parameters which guide catalog open/load/create
    106     catalog.filename  = skylist[0].filename[i];
    107     catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    108     catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    109     catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF | LOAD_LENSING;
    110     catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
     106    catalog.filename    = skylist[0].filename[i];
     107    catalog.catmode     = dvo_catalog_catmode (CATMODE);         // set the default catmode from config data
     108    catalog.catformat   = dvo_catalog_catformat (CATFORMAT);     // set the default catformat from config data
     109    catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data
     110    catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING;
     111    catalog.Nsecfilt    = GetPhotcodeNsecfilt ();
    111112
    112113    // XXX need to do something to enforce consistency.  we can change options.update
     
    117118    if (catalog.catmode != DVO_MODE_SPLIT) options.update = FALSE;
    118119
    119     if (options.update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;
     120    if (options.update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    120121
    121122    // open as read or write, depending on desire
     
    134135    if (VERBOSE) MARKTIME ("load cpt: %f sec\n", dtime); RESETTIME;
    135136
    136     // Naves_disk == 0 implies an empty catalog file
     137    // Naverage_disk == 0 implies an empty catalog file
    137138    // for only_match, skip empty catalogs
    138     if ((catalog.Naves_disk == 0) && options.only_match) {
     139    if ((catalog.Naverage_disk == 0) && options.only_match) {
    139140      dvo_catalog_unlock (&catalog);
    140141      dvo_catalog_free (&catalog);
     
    174175      SetProtect (TRUE);
    175176      if (options.update) {
    176         catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF | LOAD_LENSING;
     177        catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING;
    177178        dvo_catalog_update (&catalog, VERBOSE);
    178179      } else {
     
    193194  /*** update the image table ***/
    194195  /* setup image table format and lock */
     196  gfits_db_init (&db);
    195197  db.mode   = dvo_catalog_catmode (CATMODE);
    196198  db.format = dvo_catalog_catformat (CATFORMAT);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/addstar_create_ID.c

    r35760 r38444  
    1010  /*** update the image table ***/
    1111  /* setup image table format and lock */
    12   // gfits_db_init (&db);
     12  gfits_db_init (&db);
    1313  db.mode   = dvo_catalog_catmode (CATMODE);
    1414  db.format = dvo_catalog_catformat (CATFORMAT);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/args.c

    r37807 r38444  
    480480}
    481481
    482 int strextend (char *input, char *format,...) {
    483 
    484   char tmpextra[1024], tmpline[1024];
    485   va_list argp;
    486 
    487   va_start (argp, format);
    488   vsnprintf (tmpextra, 1024, format, argp);
    489   snprintf (tmpline, 1024, "%s %s", input, tmpextra);
    490   strcpy (input, tmpline);
    491 
    492   return TRUE;
    493 }
    494 
    495482/** addstar modes:
    496483 
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/args_parallel_client.c

    r37116 r38444  
    125125}
    126126
    127 int strextend (char *input, char *format,...) {
    128 
    129   char tmpextra[1024], tmpline[1024];
    130   va_list argp;
    131 
    132   va_start (argp, format);
    133   vsnprintf (tmpextra, 1024, format, argp);
    134   snprintf (tmpline, 1024, "%s %s", input, tmpextra);
    135   strcpy (input, tmpline);
    136 
    137   return TRUE;
    138 }
    139 
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/dumpskycells.c

    r33719 r38444  
    4646  /*** open the image table ***/
    4747  /* setup image table format and lock */
     48  gfits_db_init (&db);
    4849  db.mode   = dvo_catalog_catmode (CATMODE);
    4950  db.format = dvo_catalog_catformat (CATFORMAT);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches.c

    r38318 r38444  
    9191
    9292  /* set up pointers for linked list of measure */
    93   if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas_disk)) {
     93  if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) {
    9494    next_meas = init_measure_links (catalog[0].average, Nave, catalog[0].measure, Nmeas);
    9595  } else {
     
    316316  catalog[0].Naverage = Nave;
    317317  catalog[0].Nmeasure = Nmeas;
    318   catalog[0].Nsecf_mem = Nave*Nsecfilt;
     318  catalog[0].Nsecfilt_mem = Nave*Nsecfilt;
    319319  if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n",  Nstars,  Nave,  Nmeas,  Nmatch);
    320320
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_ICRF.c

    r37807 r38444  
    164164  catalog[0].Naverage  = Nave;
    165165  catalog[0].Nmeasure  = Nmeas;
    166   catalog[0].Nsecf_mem = Nave*Nsecfilt;
     166  catalog[0].Nsecfilt_mem = Nave*Nsecfilt;
    167167  if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: %d "OFF_T_FMT" "OFF_T_FMT" ("OFF_T_FMT" matches)\n",  Nstars, Nave, Nmeas, Nmatch);
    168168
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_closest.c

    r38318 r38444  
    9191
    9292  /* set up pointers for linked list of measure */
    93   if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas_disk)) {
     93  if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) {
    9494    // this version is only valid if we have done a full catalog load, and if the catalog
    9595    // is sorted while processed
     
    376376  catalog[0].Nmeasure = Nmeas;
    377377  catalog[0].Nlensing = Nlens;
    378   catalog[0].Nsecf_mem = Nave*Nsecfilt;
     378  catalog[0].Nsecfilt_mem = Nave*Nsecfilt;
    379379  if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas, Nlens: "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n",  Nstars,  Nave,  Nmeas,  Nlens, Nmatch);
    380380
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_closest_refstars.c

    r38318 r38444  
    100100
    101101  /* set up pointers for linked list of measure */
    102   if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas_disk)) {
     102  if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) {
    103103    // this version is only valid if we have done a full catalog load, and if the catalog
    104104    // is sorted while processed
     
    342342  catalog[0].Naverage = Nave;
    343343  catalog[0].Nmeasure = Nmeas;
    344   catalog[0].Nsecf_mem = Nave*Nsecfilt;
     344  catalog[0].Nsecfilt_mem = Nave*Nsecfilt;
    345345  if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: "OFF_T_FMT" "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n",  Nstars,  Nave,  Nmeas,  Nmatch);
    346346
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_refstars.c

    r38318 r38444  
    7070
    7171  /* set up pointers for linked list of measurements */
    72   if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas_disk)) {
     72  if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeasure_disk)) {
    7373    // this version is only valid if we have done a full catalog load, and if the catalog
    7474    // is sorted while processed
     
    293293  catalog[0].Naverage = Nave;
    294294  catalog[0].Nmeasure = Nmeas;
    295   catalog[0].Nsecf_mem = Nave*Nsecfilt;
     295  catalog[0].Nsecfilt_mem = Nave*Nsecfilt;
    296296  if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nmeas: %d "OFF_T_FMT" "OFF_T_FMT", ("OFF_T_FMT" matches)\n",  Nstars,  Nave,  Nmeas,  Nmatch);
    297297
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/find_matches_starpar.c

    r38318 r38444  
    205205  catalog[0].Naverage  = Nave;
    206206  catalog[0].Nstarpar  = Nstarpar;
    207   catalog[0].Nsecf_mem = Nave*Nsecfilt;
     207  catalog[0].Nsecfilt_mem = Nave*Nsecfilt;
    208208  if (VERBOSE) fprintf (stderr, "Nstars, Nave, Nstarpar: %d "OFF_T_FMT" "OFF_T_FMT" ("OFF_T_FMT" matches)\n",  Nstars, Nave, Nstarpar, Nmatch);
    209209
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/findskycell.c

    r37116 r38444  
    173173  snprintf (imagefile, DVO_MAX_PATH, "%s/Images.dat", catdir);
    174174
     175  gfits_db_init (&db);
    175176  status = dvo_image_lock (&db, imagefile, 2.0, LCK_XCLD);
    176177  if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename);
     
    183184  // convert database table to internal structure (binary to Image)
    184185  // 'image' points to the same memory as db->ftable->buffer
    185   image = gfits_table_get_Image (&db.ftable, &Nimage, &db.swapped);
     186  image = gfits_table_get_Image (&db.ftable, &Nimage, &db.scaledValue, &db.nativeOrder);
    186187  if (!image) {
    187188      fprintf (stderr, "ERROR: failed to read images\n");
     
    557558  snprintf (imagefile, DVO_MAX_PATH, "%s/Images.dat", catdir);
    558559
     560  gfits_db_init (&db);
    559561  status = dvo_image_lock (&db, imagefile, 2.0, LCK_XCLD);
    560562  if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename);
     
    567569  // convert database table to internal structure (binary to Image)
    568570  // 'image' points to the same memory as db->ftable->buffer
    569   image = gfits_table_get_Image (&db.ftable, &Nimage, &db.swapped);
     571  image = gfits_table_get_Image (&db.ftable, &Nimage, &db.scaledValue, &db.nativeOrder);
    570572  if (!image) {
    571573    fprintf (stderr, "ERROR: failed to read images\n");
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/load2mass_as_rawdata.c

    r34088 r38444  
    181181        catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    182182        catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    183         catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     183        catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    184184        catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    185185
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/load2mass_catalog.c

    r38318 r38444  
    5656  catalog[0].Naverage = Nave;
    5757  catalog[0].Nmeasure = Nmeas;
    58   catalog[0].Nsecf_mem = Nave*Nsec;
     58  catalog[0].Nsecfilt_mem = Nave*Nsec;
    5959  return (TRUE);
    6060}
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadICRF_catalog.c

    r37807 r38444  
    1010  catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    1111  catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    12   catalog.catflags = LOAD_AVES | LOAD_SECF | LOAD_MEAS;
     12  catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_SECFILT | DVO_LOAD_MEASURE;
    1313  catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    1414   
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadICRF_save_remote.c

    r37807 r38444  
    22# include "loadICRF.h"
    33# define DEBUG 1
    4 
    5 int strextend (char *input, char *format,...) {
    6 
    7   char tmpextra[1024], tmpline[1024];
    8   va_list argp;
    9 
    10   va_start (argp, format);
    11   vsnprintf (tmpextra, 1024, format, argp);
    12   snprintf (tmpline, 1024, "%s %s", input, tmpextra);
    13   strcpy (input, tmpline);
    14 
    15   return TRUE;
    16 }
    174
    185int loadICRF_save_remote (ICRF_Stars *stars, int Nstars, HostTable *hosts, SkyRegion *region, char *fullname, AddstarClientOptions *options) {
     
    6451
    6552    // need to generate the remote command
    66     char command[1024];
    67     snprintf (command, 1024, "loadICRF_client");
    68     strextend (command, "-hostID %d", host->hostID);
    69     strextend (command, "-D CATDIR %s", CATDIR);
    70     strextend (command, "-hostdir %s", host->pathname);
    71     strextend (command, "-cpt %s", region->name);
    72     strextend (command, "-input %s", filename);
    73     strextend (command, "-D ADDSTAR_RADIUS %f", options->radius);
     53    char *command = NULL;
     54    strextend (&command, "loadICRF_client");
     55    strextend (&command, "-hostID %d", host->hostID);
     56    strextend (&command, "-D CATDIR %s", CATDIR);
     57    strextend (&command, "-hostdir %s", host->pathname);
     58    strextend (&command, "-cpt %s", region->name);
     59    strextend (&command, "-input %s", filename);
     60    strextend (&command, "-D ADDSTAR_RADIUS %f", options->radius);
    7461
    7562    fprintf (stderr, "command: %s\n", command);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadICRF_table.c

    r37807 r38444  
    11# include "addstar.h"
    22# include "loadICRF.h"
    3 
    4 # define GET_COLUMN(OUT,NAME,TYPE) \
    5   TYPE *OUT = gfits_get_bintable_column_data (&theader, &ftable, NAME, type, &Nrow, &Ncol); \
    6   myAssert (!strcmp(type, #TYPE), "wrong column type");
    73
    84int loadICRF_table (SkyList *skylistInput, HostTable *hosts, char *filename, AddstarClientOptions *options) {
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadstarpar_catalog.c

    r37807 r38444  
    1010  catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    1111  catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    12   catalog.catflags = LOAD_AVES | LOAD_SECF | LOAD_STARPAR;
     12  catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_SECFILT | DVO_LOAD_STARPAR;
    1313  catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    1414   
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadstarpar_save_remote.c

    r37807 r38444  
    22# include "loadstarpar.h"
    33# define DEBUG 1
    4 
    5 int strextend (char *input, char *format,...) {
    6 
    7   char tmpextra[1024], tmpline[1024];
    8   va_list argp;
    9 
    10   va_start (argp, format);
    11   vsnprintf (tmpextra, 1024, format, argp);
    12   snprintf (tmpline, 1024, "%s %s", input, tmpextra);
    13   strcpy (input, tmpline);
    14 
    15   return TRUE;
    16 }
    174
    185int loadstarpar_save_remote (StarPar_Stars *stars, int Nstars, HostTable *hosts, SkyRegion *region, char *fullname, AddstarClientOptions *options) {
     
    6249
    6350    // need to generate the remote command
    64     char command[1024];
    65     snprintf (command, 1024, "loadstarpar_client");
    66     strextend (command, "-hostID %d", host->hostID);
    67     strextend (command, "-D CATDIR %s", CATDIR);
    68     strextend (command, "-hostdir %s", host->pathname);
    69     strextend (command, "-cpt %s", region->name);
    70     strextend (command, "-input %s", filename);
     51    char *command = NULL;
     52    strextend (&command, "loadstarpar_client");
     53    strextend (&command, "-hostID %d", host->hostID);
     54    strextend (&command, "-D CATDIR %s", CATDIR);
     55    strextend (&command, "-hostdir %s", host->pathname);
     56    strextend (&command, "-cpt %s", region->name);
     57    strextend (&command, "-input %s", filename);
    7158
    7259    // launch the job on the remote machine (no handshake)
     
    7865    }
    7966    host->pid = pid; // save for future reference
     67    free (command);
    8068   
    8169    save_remote_host (host);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadstarpar_table.c

    r37807 r38444  
    11# include "addstar.h"
    22# include "loadstarpar.h"
    3 
    4 # define GET_COLUMN(OUT,NAME,TYPE) \
    5   TYPE *OUT = gfits_get_bintable_column_data (&theader, &ftable, NAME, type, &Nrow, &Ncol); \
    6   myAssert (!strcmp(type, #TYPE), "wrong column type");
    73
    84int loadstarpar_table (SkyList *skylistInput, HostTable *hosts, char *filename, AddstarClientOptions *options) {
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadsupercos.c

    r33653 r38444  
    4747
    4848  // attempt to open the existing images table.  if it does not exist, we will save the loaded images
     49  gfits_db_init (&db);
    4950  db.mode   = dvo_catalog_catmode (CATMODE);
    5051  db.format = dvo_catalog_catformat (CATFORMAT);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadsupercos_rawdata.c

    r38268 r38444  
    171171        catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    172172        catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    173         catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     173        catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    174174        catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    175175
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadwise_prelim_rawdata.c

    r33653 r38444  
    186186        catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    187187        catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    188         catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     188        catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    189189        catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    190190
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/loadwise_rawdata.c

    r38268 r38444  
    188188        catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    189189        catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    190         catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     190        catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    191191        catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    192192
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/mkcmf.c

    r37995 r38444  
    500500  }
    501501
    502   gfits_table_set_PS1_DEV_0 (ftable, stars, Nstars);
     502  gfits_table_set_PS1_DEV_0 (ftable, stars, Nstars, TRUE);
    503503  gfits_modify (ftable->header, "EXTTYPE",   "%s", 1, "PS1_DEV_0");
    504504}
     
    547547  }
    548548
    549   gfits_table_set_PS1_DEV_1 (ftable, stars, Nstars);
     549  gfits_table_set_PS1_DEV_1 (ftable, stars, Nstars, TRUE);
    550550  gfits_modify (ftable->header, "EXTTYPE",   "%s", 1, "PS1_DEV_1");
    551551}
     
    596596  }
    597597
    598   gfits_table_set_CMF_PS1_V1 (ftable, stars, Nstars);
     598  gfits_table_set_CMF_PS1_V1 (ftable, stars, Nstars, TRUE);
    599599  gfits_modify (ftable->header, "EXTTYPE",   "%s", 1, "PS1_V1");
    600600}
     
    651651  }
    652652
    653   gfits_table_set_CMF_PS1_V2 (ftable, stars, Nstars);
     653  gfits_table_set_CMF_PS1_V2 (ftable, stars, Nstars, TRUE);
    654654  gfits_modify (ftable->header, "EXTTYPE",   "%s", 1, "PS1_V2");
    655655}
     
    710710  }
    711711
    712   gfits_table_set_CMF_PS1_V3 (ftable, stars, Nstars);
     712  gfits_table_set_CMF_PS1_V3 (ftable, stars, Nstars, TRUE);
    713713  gfits_modify (ftable->header, "EXTTYPE",   "%s", 1, "PS1_V3");
    714714}
     
    778778  }
    779779
    780   gfits_table_set_CMF_PS1_V4 (ftable, stars, Nstars);
     780  gfits_table_set_CMF_PS1_V4 (ftable, stars, Nstars, TRUE);
    781781  gfits_modify (ftable->header, "EXTTYPE",   "%s", 1, "PS1_V4");
    782782}
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/resort_catalogs.c

    r37116 r38444  
    7474    table->hosts[i].pathname = tmppath;
    7575
    76     char command[1024];
    77     snprintf (command, 1024, "addstar_client -resort");
    78     strextend (command, "-D CATDIR %s", CATDIR);
    79     strextend (command, "-hostID %d", table->hosts[i].hostID);
    80     strextend (command, "-hostdir %s", table->hosts[i].pathname);
    81     strextend (command, "-region %f %f %f %f", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
     76    char *command = NULL;
     77    strextend (&command, "addstar_client -resort");
     78    strextend (&command, "-D CATDIR %s", CATDIR);
     79    strextend (&command, "-hostID %d", table->hosts[i].hostID);
     80    strextend (&command, "-hostdir %s", table->hosts[i].pathname);
     81    strextend (&command, "-region %f %f %f %f", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
    8282
    83     if (VERBOSE)                   strextend (command, "%s -v");
    84     if (NTHREADS)                  strextend (command, "%s -threads %d", NTHREADS);
    85     if (OLD_RESORT)                strextend (command, "%s -old-resort");
    86     if (options->nosort == 3)      strextend (command, "%s -force-sort");
    87     if (options->existing_regions) strextend (command, "%s -existing-regions");
     83    if (VERBOSE)                   strextend (&command, "-v");
     84    if (NTHREADS)                  strextend (&command, "-threads %d", NTHREADS);
     85    if (OLD_RESORT)                strextend (&command, "-old-resort");
     86    if (options->nosort == 3)      strextend (&command, "-force-sort");
     87    if (options->existing_regions) strextend (&command, "-existing-regions");
    8888
    8989    fprintf (stderr, "command: %s\n", command);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/resort_threaded.c

    r37116 r38444  
    4343
    4444    // set the parameters which guide catalog open/load/create
    45     catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    46     catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    47     catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_LENSING;
    48     catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
     45    catalog.catformat   = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
     46    catalog.catmode     = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
     47    catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data
     48    catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_LENSING;
     49    catalog.Nsecfilt    = GetPhotcodeNsecfilt ();
    4950 
    5051    // an error exit status here is a significant error (disk I/O or file access)
     
    5758    }
    5859
    59     // Naves_disk == 0 implies an empty catalog file, skip empty catalogs
    60     if (catalog.Naves_disk == 0) {
     60    // Naverage_disk == 0 implies an empty catalog file, skip empty catalogs
     61    if (catalog.Naverage_disk == 0) {
    6162      dvo_catalog_unlock (&catalog);
    6263      dvo_catalog_free (&catalog);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/resort_unthreaded.c

    r37116 r38444  
    2121
    2222    // set the parameters which guide catalog open/load/create
    23     catalog.catformat = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
    24     catalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    25     catalog.catflags  = LOAD_AVES | LOAD_MEAS | LOAD_LENSING;
    26     catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
     23    catalog.catformat   = dvo_catalog_catformat (CATFORMAT);  // set the default catformat from config data
     24    catalog.catmode     = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
     25    catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data
     26    catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_LENSING;
     27    catalog.Nsecfilt    = GetPhotcodeNsecfilt ();
    2728
    2829    // an error exit status here is a significant error (disk I/O or file access)
     
    3233    }
    3334
    34     // Naves_disk == 0 implies an empty catalog file, skip empty catalogs
    35     if (catalog.Naves_disk == 0) {
     35    // Naverage_disk == 0 implies an empty catalog file, skip empty catalogs
     36    if (catalog.Naverage_disk == 0) {
    3637      dvo_catalog_unlock (&catalog);
    3738      dvo_catalog_free (&catalog);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/sedstar.c

    r25757 r38444  
    2626  for (i = 0; i < skylist[0].Nregions; i++) {
    2727    incatalog.filename = skylist[0].filename[i];
    28     incatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF;
     28    incatalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT;
    2929
    3030    // an error exit status here is a significant error
     
    3434    }
    3535
    36     // Naves_disk == 0 implies an empty catalog file
    37     if ((incatalog.Naves_disk == 0) && options.only_match) {
     36    // Naverage_disk == 0 implies an empty catalog file
     37    if ((incatalog.Naverage_disk == 0) && options.only_match) {
    3838      if (VERBOSE) fprintf (stderr, "skipping empty region\n");
    3939      dvo_catalog_unlock (&incatalog);
     
    5454    outcatalog.catmode   = dvo_catalog_catmode (CATMODE);      // set the default catmode from config data
    5555    outcatalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    56     outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
     56    outcatalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
    5757
    5858    // an error exit status here is a significant error
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/skycells.c

    r21048 r38444  
    1212  /*** update the image table ***/
    1313  /* setup image table format and lock */
     14  gfits_db_init (&db);
    1415  db.mode   = dvo_catalog_catmode (CATMODE);
    1516  db.format = dvo_catalog_catformat (CATFORMAT);
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/skycells_to_mdc.c

    r33720 r38444  
    55    // Convert FITS_DB to images structure
    66    off_t NdbImages;
    7     Image *dbImages = gfits_table_get_Image(&db->ftable, &NdbImages, &db->swapped);
     7    Image *dbImages = gfits_table_get_Image(&db->ftable, &NdbImages, &db->scaledValue, &db->nativeOrder);
    88
    99    // If tess_id was not supplied assume that it is the basename of the CATDIR
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/test

  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/test/simple.dvo

    r37036 r38444  
    1010  test.fields PS1_V2    PS1_V1
    1111  test.fields PS1_V3    PS1_V1
    12   test.fields PS1_V4    PS1_V1
     12  test.fields PS1_V5    PS1_V1
    1313
    1414  test.fields PS1_DEV_0 PS1_V2
     
    1717  test.fields PS1_V2    PS1_V2
    1818  test.fields PS1_V3    PS1_V2
    19   test.fields PS1_V4    PS1_V4
     19  test.fields PS1_V5    PS1_V2
    2020
    2121  test.fields PS1_DEV_0 PS1_V3
     
    2424  test.fields PS1_V2    PS1_V3
    2525  test.fields PS1_V3    PS1_V3
    26   test.fields PS1_V4    PS1_V4
     26  test.fields PS1_V5    PS1_V3
    2727
    2828  test.fields PS1_DEV_0 PS1_V4
     
    3131  test.fields PS1_V2    PS1_V4
    3232  test.fields PS1_V3    PS1_V4
    33   test.fields PS1_V4    PS1_V4
     33  test.fields PS1_V5    PS1_V4
    3434end 
    3535
     
    5454
    5555  mkinput
    56   echo mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE
    57   exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE
    58   if ($TAP_VERBOSE)
    59     echo exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    60     exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    61   else
    62     echo addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    63     exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass >& tmp.log
    64   end
     56  tapEXEC mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE
     57  tapEXEC addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    6558
    6659  list testfields -copy testfields_$1
     
    7972    if ("$name:0" == "SKIP") continue
    8073    if ("$name:2" == "SKIP") continue
     74 
    8175    read -fits Chip.psf $name:0
    8276    mextract $name:2
     
    9286  set d = $name:0 - $name:2
    9387  vstat -q d
    94   tapOK {abs($MEAN)  < 0.001} "$name:0 vs $name:2 (MEAN)"
    95   tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA)"
     88  tapOK {abs($MEAN)  < 0.001} "$name:0 vs $name:2 (MEAN = $MEAN)"
     89  tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA = $SIGMA)"
    9690
    9791  # detection ID must be first for this to work:
     
    142136    if ("$name:0" == "PSF_THETA")
    143137      # echo $MEAN
    144       tapOK {abs($MEAN)  < 0.006} "$name:0 vs $name:2 (MEAN)"
    145       tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA)"
     138      tapOK {abs($MEAN)  < 0.006} "$name:0 vs $name:2 (MEAN = $MEAN)"
     139      tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA = $SIGMA)"
    146140      continue
    147141    end
    148142
    149     tapOK {abs($MEAN)  < 0.001} "$name:0 vs $name:2 (MEAN)"
    150     tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA)"
     143    tapOK {abs($MEAN)  < 0.001} "$name:0 vs $name:2 (MEAN = $MEAN)"
     144    tapOK {abs($SIGMA) < 0.001} "$name:0 vs $name:2 (SIGMA = $MEAN)"
    151145  end   
    152146
     
    231225  PSF_INST_MAG      : mag:inst 
    232226  PSF_INST_MAG_SIG  : mag:err   
    233   AP_MAG_STANDARD   : mag:ap # FAIL
     227# AP_MAG_STANDARD   : mag:ap # FAIL
    234228  AP_MAG_RADIUS     : SKIP # no accessor
    235229  PEAK_FLUX_AS_MAG  : SKIP # no accessor
     
    237231  CAL_PSF_MAG_SIG   : SKIP # photometry is not calibrated in the cmf
    238232  SKY               : sky       
    239   SKY_SIG           : sky_err   
     233  SKY_SIGMA         : sky_err   
    240234  PSF_CHISQ         : psf_chisq
    241235  CR_NSIGMA         : cr_nsigma
     
    267261  PSF_INST_MAG      : mag:inst 
    268262  PSF_INST_MAG_SIG  : mag:err   
    269   AP_MAG_STANDARD   : mag:ap # FAIL
     263# AP_MAG_STANDARD   : mag:ap # FAIL
    270264  AP_MAG_RADIUS     : SKIP # no accessor
    271265  PEAK_FLUX_AS_MAG  : SKIP # no accessor
     
    273267  CAL_PSF_MAG_SIG   : SKIP # photometry is not calibrated in the cmf
    274268  SKY               : sky       
    275   SKY_SIG           : sky_err   
     269  SKY_SIGMA         : sky_err   
    276270  PSF_CHISQ         : psf_chisq
    277271  CR_NSIGMA         : cr_nsigma
     
    303297  PSF_INST_FLUX     : SKIP # not ingested into DVO
    304298  PSF_INST_FLUX_SIG : SKIP # not ingested into DVO
    305   AP_MAG_STANDARD   : mag:aperinst # FAIL
     299# AP_MAG_STANDARD   : mag:aperinst # FAIL
    306300  AP_MAG_RAW        : SKIP # not ingested into DVO
    307301  AP_MAG_RADIUS     : SKIP # not ingested into DVO
     
    312306  PEAK_FLUX_AS_MAG  : SKIP # not ingested into DVO
    313307  SKY               : sky       
    314   SKY_SIG           : sky_err   
     308  SKY_SIGMA         : sky_err   
    315309  PSF_CHISQ         : psf_chisq
    316310  CR_NSIGMA         : cr_nsigma
     
    332326  MOMENTS_R1        : SKIP # not ingested into DVO
    333327  MOMENTS_RH        : SKIP # not ingested into DVO
    334   KRON_FLUX         : mag:kroninst
    335   KRON_FLUX_ERR     : mag:kronerr
     328  KRON_FLUX         : mag:kron:inst
     329  KRON_FLUX_ERR     : mag:kron:err
    336330  KRON_FLUX_INNER   : SKIP # not ingested into DVO
    337331  KRON_FLUX_OUTER   : SKIP # not ingested into DVO
Note: See TracChangeset for help on using the changeset viewer.