IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33450


Ignore:
Timestamp:
Mar 9, 2012, 7:17:43 AM (14 years ago)
Author:
eugene
Message:

save a copy of the images table if we are not a local copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/dvosplit/src/dvosplit.c

    r33222 r33450  
    3131  }
    3232
    33   // XXX should strip off any trailing slashes
     33  // dvosplit can be run locally (no -outdir specified); otherwise, copy Photcode.dat,
     34  // Images.dat, SkyTable.fits
    3435  int LocalCopy = !strcmp (CATDIR, OUTDIR);
    3536
     
    127128  }
    128129
    129   // save sky table copy
     130  // save sky table copy (Local or not Local : the depth has changed)
    130131  filename = SkyTableFilename (OUTDIR);
    131132  check_file_access (filename, TRUE, TRUE, VERBOSE);
     
    135136  }
    136137
     138  if (!LocalCopy) {
     139    // copy the images table
     140    char line[2048];
     141    snprintf (line, 2048, "cp %s/Images.dat %s/Images.dat", CATDIR, OUTDIR);
     142    system (line);
     143  }
     144
    137145  exit (0);
    138146}
Note: See TracChangeset for help on using the changeset viewer.