IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2012, 6:20:27 AM (14 years ago)
Author:
eugene
Message:

add ohana version of realpath, fix rconnect version of relphot, update testing

File:
1 edited

Legend:

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

    r33254 r33301  
    2222  // load the current sky table (layout of all SkyRegions)
    2323  SkyTable *sky = SkyTableLoadOptimal (CATDIR, NULL, NULL, TRUE, -1, VERBOSE);
     24  if (!sky) {
     25      fprintf (stderr, "ERROR running loading sky table from %s\n", CATDIR);
     26      exit (2);
     27  }
    2428  SkyTableSetFilenames (sky, CATDIR, "cpt");
    2529
    2630  SkyList *skylist = SkyListByPatch (sky, -1, &UserPatch);
     31  if (!skylist) {
     32      fprintf (stderr, "ERROR setting up skylist for %s\n", CATDIR);
     33      exit (2);
     34  }
    2735 
    2836  switch (MODE) {
     
    3038      int Ncatalog;
    3139      Catalog *catalog = load_catalogs (skylist, &Ncatalog, HOST_ID, HOSTDIR);
     40      if (!catalog) {
     41          fprintf (stderr, "ERROR loading catalogs from %s\n", CATDIR);
     42          exit (2);
     43      }
    3244      BrightCatalog *bcatalog = BrightCatalogMerge (catalog, Ncatalog);
    3345      if (!BrightCatalogSave (BCATALOG, bcatalog)) {
    34         abort();
     46          fprintf (stderr, "ERROR saving bright catalog from %s\n", CATDIR);
     47          exit (2);
    3548      }
    3649      break;
     
    4154      off_t Nimage;
    4255      ImageSubset *image = ImageSubsetLoad (IMAGES, &Nimage);
     56      if (!image) {
     57          fprintf (stderr, "ERROR loading image subset %s\n", CATDIR);
     58          exit (2);
     59      }
    4360     
    4461      // save the available image information in the static array in ImageOps.c
Note: See TracChangeset for help on using the changeset viewer.