- Timestamp:
- Feb 17, 2012, 6:20:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/relphot_client.c
r33254 r33301 22 22 // load the current sky table (layout of all SkyRegions) 23 23 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 } 24 28 SkyTableSetFilenames (sky, CATDIR, "cpt"); 25 29 26 30 SkyList *skylist = SkyListByPatch (sky, -1, &UserPatch); 31 if (!skylist) { 32 fprintf (stderr, "ERROR setting up skylist for %s\n", CATDIR); 33 exit (2); 34 } 27 35 28 36 switch (MODE) { … … 30 38 int Ncatalog; 31 39 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 } 32 44 BrightCatalog *bcatalog = BrightCatalogMerge (catalog, Ncatalog); 33 45 if (!BrightCatalogSave (BCATALOG, bcatalog)) { 34 abort(); 46 fprintf (stderr, "ERROR saving bright catalog from %s\n", CATDIR); 47 exit (2); 35 48 } 36 49 break; … … 41 54 off_t Nimage; 42 55 ImageSubset *image = ImageSubsetLoad (IMAGES, &Nimage); 56 if (!image) { 57 fprintf (stderr, "ERROR loading image subset %s\n", CATDIR); 58 exit (2); 59 } 43 60 44 61 // save the available image information in the static array in ImageOps.c
Note:
See TracChangeset
for help on using the changeset viewer.
