IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36590


Ignore:
Timestamp:
Mar 17, 2014, 1:33:17 PM (12 years ago)
Author:
eugene
Message:

fix left-behind photcode APIs; add sync for relphot remote clients to avoid loading overloading

Location:
branches/eam_branches/ipp-20140206/Ohana/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140206/Ohana/src/opihi/dvo/photometry.c

    r35416 r36590  
    662662      break;
    663663    case AVE_dMAG:
    664       value = PhotdM (code, average, secfilt);
     664      value = PhotAveErr (code, average, secfilt);
    665665      break;
    666666    case AVE_Xm:
     
    865865  /* for ErrSelect, check average errors */
    866866  if (ErrSelect) {
    867     dM = PhotdM (code, average, secfilt);
     867    dM = PhotAveErr (code, average, secfilt);
    868868    if (dM > ErrValue) return (FALSE);
    869869  }
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/launch_region_hosts.c

    r36562 r36590  
    7878    if (PARALLEL_REGIONS_MANUAL) continue;
    7979
     80    // launch the job, then wait for it to be done loading catalogs.  force the remote
     81    // client to generate the file
     82    char *syncfile = make_filename (CATDIR, host->hostname, host->hostID, "loadcat.sync");
     83    clear_sync_file (syncfile);
     84
    8085    // launch the job on the remote machine (no handshake)
    8186    int errorInfo = 0;
     
    8691    }
    8792    host->pid = pid; // save for future reference
     93
     94    // remove client is done, go ahead with next client
     95    check_sync_file (syncfile, 1);
     96    clear_sync_file (syncfile);
     97    free (syncfile);
    8898  }
    8999
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/relphot_parallel_images.c

    r36577 r36590  
    5252  catalog = load_catalogs (skylist, &Ncatalog, 0, NULL);
    5353  MARKTIME("-- load catalog data: %f sec\n", dtime);
     54
     55  // NOTE: if I let all hosts load blindly, I saturate the data clients with too many
     56  // relphot_client requests.  I need to have the master mediate this.  the master
     57  // will not launch the next remote job until this one says it is done
     58  char *syncfile = make_filename (CATDIR, regionHosts->hosts[myHost].hostname, REGION_HOST_ID, "loadcat.sync");
     59  update_sync_file (syncfile, 1);
    5460 
    5561  // generate tables go from catID,objID -> catSeq,objSeq
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/setMrelCatalog.c

    r36535 r36590  
    255255
    256256        // Map (Maplist) and Mkron (Mkronlist,dkronlist) are used to calculate mean mags per filter
    257         float Map = PhotAper (&measure[k]);
     257        float Map = PhotAperCat (&measure[k]);
    258258        if (!isnan(Map)) {
    259259            Maplist[Nap] = Map - Mcal - Mmos - Mgrid;
     
    263263        }
    264264
    265         float Mkron = PhotKron (&measure[k]);
     265        float Mkron = PhotKronCat (&measure[k]);
    266266        if (!isnan(Mkron)) {
    267267          Mkronlist[Nkron] = Mkron - Mcal - Mmos - Mgrid;
Note: See TracChangeset for help on using the changeset viewer.