IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2009, 10:42:55 AM (17 years ago)
Author:
Paul Price
Message:

Want to calculate zero point from exposure time of input warp, rather than the actual warp under consideration in ppMops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMops/src/ppMops.c

    r24325 r24339  
    1616    data->zp = atof(argv[2]);
    1717    data->output = psStringCopy(argv[3]);
     18
     19    if (!isfinite(data->zp)) {
     20        psErrorStackPrint(stderr, "Zero point is unknown\n");
     21        exit(PS_EXIT_CONFIG_ERROR);
     22    }
    1823
    1924    psArray *detections = NULL;         // Detections
     
    4348            exit(PS_EXIT_DATA_ERROR);
    4449        }
    45     }
    46 
    47     // Correct ZP for exposure time
    48     data->zp += 2.5 * log10(psMetadataLookupF32(NULL, header, "EXPTIME"));
    49     if (!isfinite(data->zp)) {
    50         psErrorStackPrint(stderr, "Zero point is unknown\n");
    51         exit(PS_EXIT_CONFIG_ERROR);
    5250    }
    5351
Note: See TracChangeset for help on using the changeset viewer.