IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37693


Ignore:
Timestamp:
Nov 29, 2014, 2:59:25 AM (12 years ago)
Author:
eugene
Message:

report number of stars and measures

Location:
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/CoordOps.c

    r37682 r37693  
    77static Coords *oldCoords;   // list of available images
    88static off_t  NoldCoords;   // number of available images
    9 
    10 AstromOffsetTable *table = NULL;
    119
    1210void initCoords (void) {
     
    2624  memset (nPosSum,    0, N*sizeof(off_t));
    2725  memset (isBadCoord, 0, N*sizeof(int));
    28 
    29   // create a table to save tables with their coords
    30   table = AstromOffsetTableInit();
    31 
    3226}
    3327
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/load_catalogs.c

    r37658 r37693  
    66Catalog *load_catalogs (SkyList *skylist, int *Ncatalog, int subselect, int hostID, char *hostpath, char *syncfile) {
    77
    8   int i, j, Nstar;
     8  int i, j;
    99  // int k, m;
    1010  Catalog *catalog, *pcatalog, tcatalog;
     
    9090  fprintf (stderr, "included %d ICRF QSOs\n", ICRFmax());
    9191
    92   Nstar = 0;
     92  int Nstar = 0;
     93  int Nmeas = 0;
    9394  for (i = 0; i < Ncat; i++) {
    9495    Nstar += catalog[i].Naverage;
     96    Nmeas += catalog[i].Nmeasure;
    9597    if ((sizeof(IDX_T) == 8) && (catalog[i].Nmeasure > 0xffffffff)) {
    9698      fprintf (stderr, "ERROR: using small-sized IDX_T on data with more than 2G detections per table will cause errors\n");
     
    102104    fprintf (stderr, "warning: insufficient stars %d\n", Nstar);
    103105  }
     106  fprintf (stderr, "using %d stars, %d measurements to calibrate\n", Nstar, Nmeas);
    104107
    105108  // if we are running with parallel_images but not a parallel database, we need to
Note: See TracChangeset for help on using the changeset viewer.