IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2013, 4:31:05 PM (13 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20130307 : parallelize dvosecfilt, use dvo_average,measure,secfilt_init functions more broadly; move image calibration to relphot_images; add synthetic photometry referece (w-band); put relphot MARKTIME & INITTIME in macros; in dvo_clients, mextract fields which need image data use a subset image metadata table (instead of loading full Images.dat table); create FIELD and MOSAIC fields for mextract; somewhat better rules for photcode:ave & similar selections in mextract; add hpm_* concept in relastro (high-speed proper motions); fix precision errors in dvopsps; check for dvopsps exit conditions; error-bar clipping to limits of plotting window; parallelize delstar -dup-images; do NOT delete parents (because parent IDs are broken after dvomerge); minor handshake when setting up KAPA connection; avextract and related do not need to launch remote jobs on all clients if region does not include tables from all hosts; add fitplx and xsection functions to mana; enable addstar of diff cmfs (at least PS1_DV3)

Location:
trunk/Ohana
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/opihi

  • trunk/Ohana/src/opihi/dvo/dvo_host_utils.c

    r35109 r35416  
    88# define DIE(WHO,MSG) { perror(WHO); myAbort(MSG); }
    99
    10 int HostTableLaunchJobs (HostTable *table, char *basecmd, char *options, int VERBOSE) {
     10int HostTableLaunchJobs (SkyList *sky, HostTable *table, char *basecmd, char *options, int VERBOSE) {
    1111
    1212  char uniquer[12];
     
    3535
    3636  int top_status = TRUE;
    37   int i;
     37  int i, j;
    3838  for (i = 0; i < table->Nhosts; i++) {
     39
     40      if (sky && (sky->Nregions < table->Nhosts)) {
     41      // do any of the regions want this host?
     42      int wantThisHost = FALSE;
     43      for (j = 0; j < sky->Nregions; j++) {
     44        if (HostTableTestHost (sky->regions[j], table->hosts[i].hostID)) {
     45          wantThisHost = TRUE;
     46          break;
     47        }
     48      }
     49      if (!wantThisHost) {
     50        // fprintf (stderr, "skip host %s\n", table->hosts[i].hostname);
     51        continue;
     52      }
     53      // fprintf (stderr, "not skip host %s\n", table->hosts[i].hostname);
     54    }
    3955
    4056    // ensure that the paths are absolute path names
     
    88104// an alternative ending step ignores the result files and instead saves the names into
    89105// the list 'result:n' for the user to access as desired
    90 int HostTableParallelOps (int argc, char **argv, char *ResultFile, int ReadVectors, int Nelements, int VERBOSE) {
     106int HostTableParallelOps (SkyList *sky, int argc, char **argv, char *ResultFile, int ReadVectors, int Nelements, int VERBOSE) {
    91107
    92108  int i;
    93109
    94   // load the list of hosts
    95   SkyTable *sky = GetSkyTable();
    96   if (!sky) {
    97     gprint (GP_ERR, "failed to load sky table for database\n");
    98     return FALSE;
    99   }
     110  // XX // load the list of hosts
     111  // XX SkyTable *sky = GetSkyTable();
     112  // XX if (!sky) {
     113  // XX   gprint (GP_ERR, "failed to load sky table for database\n");
     114  // XX   return FALSE;
     115  // XX }
    100116
    101117  char *tmppath = GetCATDIR ();
     
    145161
    146162  // launch this command remotely
    147   HostTableLaunchJobs (table, basecmd, options, VERBOSE);
     163  HostTableLaunchJobs (sky, table, basecmd, options, VERBOSE);
    148164  free (options);
    149165  free (basecmd);
     
    183199
    184200    if (table->hosts[i].status) continue;
     201    if (!table->hosts[i].pid) continue;
    185202
    186203    if (ReadVectors) {
Note: See TracChangeset for help on using the changeset viewer.