IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2009, 4:36:31 PM (17 years ago)
Author:
eugene
Message:

add psastroExtract, modification of psastroLoadRefstars and psastroChooseRefstars APIs (merge from eam_branches_20090312)

Location:
trunk/psastro
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro

  • trunk/psastro/src/psastroLoadRefstars.c

    r21422 r23412  
    1414# define ELIXIR_MODE 1
    1515
    16 char *psastroSetMagLimit (float *minMag, float *maxRho, pmConfig *config);
    17 
    18 psArray *psastroLoadRefstars (pmConfig *config) {
     16psArray *psastroLoadRefstars (pmConfig *config, const char *source) {
    1917
    2018    int fd;
     
    6967    float minMag;
    7068    float maxRho;
    71     char *photcode = psastroSetMagLimit (&minMag, &maxRho, config);
     69    char *photcode = psastroSetMagLimit (&minMag, &maxRho, config, source);
    7270    PS_ASSERT (photcode, NULL);
    7371
     
    240238  goto escape; }
    241239
    242 char *psastroSetMagLimit (float *minMag, float *maxRho, pmConfig *config) {
     240char *psastroSetMagLimit (float *minMag, float *maxRho, pmConfig *config, const char *source) {
    243241
    244242    bool status;
     
    249247
    250248    // select the input data sources
    251     pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
     249    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, source);
    252250    if (!input) {
    253251        psLogMsg ("psastro", PS_LOG_DETAIL, "no supplied reference header data");
Note: See TracChangeset for help on using the changeset viewer.