IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 12, 2015, 10:28:36 PM (11 years ago)
Author:
eugene
Message:

merge changes from EAM branch ipp-20150419

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/synthetic_zpts.c

    r38062 r38466  
    77static char *extname[5] = {"map_g", "map_r", "map_i", "map_z", "map_y"};
    88
    9 SynthZeroPoints *SynthZeroPointsLoad (char *filename) {
     9static SynthZeroPoints *zpts = NULL;
     10
     11int SynthZeroPointsLoad (char *filename) {
    1012
    1113  FILE *f = fopen (filename, "r");
    1214  if (!f) {
    1315    fprintf (stderr, "ERROR: cannot open file %s\n", filename);
    14     return NULL;
     16    return FALSE;
    1517  }
    1618
     
    2325  // map_y
    2426
    25   SynthZeroPoints *zpts = NULL;
    2627  ALLOCATE (zpts, SynthZeroPoints, 1);
    2728 
     
    2930    if (VERBOSE) fprintf (stderr, "can't read header\n");
    3031    fclose (f);
    31     return NULL;
     32    return FALSE;
    3233  }
    3334
     
    4950  zpts->Ny = zpts->matrix[0].Naxis[1];
    5051
     52  return TRUE;
     53}
     54
     55SynthZeroPoints *SynthZeroPointsGet () {
    5156  return zpts;
    5257}
    53 
Note: See TracChangeset for help on using the changeset viewer.