IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36506


Ignore:
Timestamp:
Feb 11, 2014, 8:57:15 AM (12 years ago)
Author:
eugene
Message:

inching towards a working relphot -parallel-regions

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

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/args.c

    r36504 r36506  
    359359    remove_argument (N, &argc, argv);
    360360    mode = PARALLEL_REGIONS;
     361    if (N >= argc) relphot_usage();
     362    REGION_FILE = strcreate (argv[N])
     363    remove_argument (N, &argc, argv);
    361364  }
    362365
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/assign_images.c

    r36503 r36506  
    33// This function generates a subset of the images based on selections.  Input db has already
    44// been loaded with the raw fits table data
    5 SkyList *assign_images (FITS_DB *db, RegionHostTable *regionHosts) {
     5int assign_images (FITS_DB *db, RegionHostTable *regionHosts) {
    66
    77  off_t Nimage;
     
    3030  select_images_hostregion (regionHosts, image, Nimage);
    3131
     32  return TRUE;
    3233}
    3334
    3435# define D_NIMAGE 1000
    3536
     37// assign images to the region hosts; at the end, each host will have its list of images
    3638int select_images_hostregion (RegionHostTable *hosts, Image *image, off_t Nimage) {
    3739
     
    6668      continue;
    6769    }
     70
     71    // XXX need to make sure mosaics for each saved image are also saved
     72    // skip them here and add explicitly below.
    6873
    6974    /* define image center - note the DIS images (mosaic phu) are special */
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/help.c

    r36504 r36506  
    66  fprintf (stderr, "       or:    relphot -averages -region RA RA DEC DEC\n");
    77  fprintf (stderr, "       or:    relphot -apply-offsets -region RA RA DEC DEC\n");
    8   fprintf (stderr, "       or:    relphot -parallel-regions ()\n");
     8  fprintf (stderr, "       or:    relphot -parallel-regions (RegionFile)\n");
    99  fprintf (stderr, "       or:    relphot -parallel-images ()\n");
    1010  fprintf (stderr, "  use -h for more usage information\n");
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/relphot_parallel_regions.c

    r36504 r36506  
    33// measure.M contains: -2.5*log(DN) + 2.5*log(exptime) + 25.0
    44
    5 int relphot_parallel_images () {
     5int relphot_parallel_regions () {
    66
    77  int i, status, Ncatalog;
     
    1313
    1414  // load the RegionTable (UserRegion should not be used at this level)
    15   RegionHostTable *regionHosts = RegionHostTableLoad (CATDIR, "RegionHostTable.dat");
     15  RegionHostTable *regionHosts = RegionHostTableLoad (CATDIR, REGION_FILE);
    1616
    1717  /* register database handle with shutdown procedure */
     
    3838
    3939  /* assign the images to the different region hosts */
    40   XXX = assign_images (&db, regionHosts);
     40  if (!assign_images (&db, regionHosts)) Shutdown ("error assigning images to region hosts");
    4141  MARKTIME("-- assign images: %f sec\n", dtime);
    4242
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/share_mean_mags.c

    r36503 r36506  
    5858    catalog[catSeq].secfilt[objSeq*Nsec + Nsecfilt].mag = meanmags[i].mag;
    5959  }
    60   SaveMeanMags (meanmags, Nmeanmags, where);
    6160}
Note: See TracChangeset for help on using the changeset viewer.