IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33362


Ignore:
Timestamp:
Feb 24, 2012, 7:51:06 AM (14 years ago)
Author:
eugene
Message:

fix zero point offsets

Location:
branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/initialize_setphot.c

    r33329 r33362  
    11# include "setphot.h"
     2
     3static char *ZPT_OFFSETS_FILTERS = NULL;
     4static char *ZPT_OFFSETS_VALUES = NULL;
    25
    36void initialize_setphot (int argc, char **argv) {
     
    2225    exit (1);
    2326  }
     27
     28  // if we have a zpt offset list, parse it here
     29  parse_zpt_offsets (ZPT_OFFSETS_FILTERS, ZPT_OFFSETS_VALUES);
    2430}
    2531
     
    8692  // -zpt-offsets code[,code,etc] value[,value,etc]
    8793  // eg: -zpt-offsets g,r,i 0.01,0.02,-0.02
    88   char *ZPT_OFFSETS_FILTERS = NULL;
    89   char *ZPT_OFFSETS_VALUES = NULL;
    9094  if ((N = get_argument (argc, argv, "-zpt-offsets"))) {
    9195    remove_argument (N, &argc, argv);
     
    9498    ZPT_OFFSETS_VALUES = strcreate (argv[N]);
    9599    remove_argument (N, &argc, argv);
    96    
    97     parse_zpt_offsets (ZPT_OFFSETS_FILTERS, ZPT_OFFSETS_VALUES);
    98100  }
    99101 
  • branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/load_zpt_table.c

    r33329 r33362  
    358358int parse_zpt_offsets (char *ZPT_OFFSET_FILTERS, char *ZPT_OFFSET_VALUES) {
    359359
     360  if (!ZPT_OFFSET_FILTERS) return TRUE;
    360361  assert (ZPT_OFFSET_FILTERS);
    361362  assert (ZPT_OFFSET_VALUES);
Note: See TracChangeset for help on using the changeset viewer.