IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37613


Ignore:
Timestamp:
Nov 16, 2014, 8:14:49 PM (12 years ago)
Author:
eugene
Message:

error on missing photcodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/loadICRF_readstars.c

    r37570 r37613  
    5050
    5151  // ICRF QSO photcodes (we store flux in Jy and AB mags)
    52   PhotCode *codeS = GetPhotcodebyName ("ICRF_S");
    53   PhotCode *codeC = GetPhotcodebyName ("ICRF_C");
    54   PhotCode *codeX = GetPhotcodebyName ("ICRF_X");
    55   PhotCode *codeU = GetPhotcodebyName ("ICRF_U");
    56   PhotCode *codeK = GetPhotcodebyName ("ICRF_K");
     52  PhotCode *codeS = GetPhotcodebyName ("ICRF_S"); if (!codeS) { fprintf (stderr, "missing ICRF_S, exiting\n"); exit (1); }
     53  PhotCode *codeC = GetPhotcodebyName ("ICRF_C"); if (!codeC) { fprintf (stderr, "missing ICRF_C, exiting\n"); exit (1); }
     54  PhotCode *codeX = GetPhotcodebyName ("ICRF_X"); if (!codeX) { fprintf (stderr, "missing ICRF_X, exiting\n"); exit (1); }
     55  PhotCode *codeU = GetPhotcodebyName ("ICRF_U"); if (!codeU) { fprintf (stderr, "missing ICRF_U, exiting\n"); exit (1); }
     56  PhotCode *codeK = GetPhotcodebyName ("ICRF_K"); if (!codeK) { fprintf (stderr, "missing ICRF_K, exiting\n"); exit (1); }
    5757
    5858  /* read in stars line-by-line */
Note: See TracChangeset for help on using the changeset viewer.