Changeset 38464
- Timestamp:
- Jun 12, 2015, 10:27:23 PM (11 years ago)
- Location:
- trunk/Ohana/src/uniphot
- Files:
-
- 6 edited
- 2 copied
-
Makefile (modified) (2 diffs)
-
include/setastrom.h (modified) (2 diffs)
-
src/initialize_setastrom.c (modified) (6 diffs)
-
src/repair_tycho_setastrom.c (copied) (copied from branches/eam_branches/ipp-20150419/Ohana/src/uniphot/src/repair_tycho_setastrom.c )
-
src/setastrom.c (modified) (1 diff)
-
src/setphot.c (modified) (1 diff)
-
src/tyc_correction.c (copied) (copied from branches/eam_branches/ipp-20150419/Ohana/src/uniphot/src/tyc_correction.c )
-
src/update_dvo_setastrom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/uniphot/Makefile
r38062 r38464 112 112 $(SRC)/setastrom.$(ARCH).o \ 113 113 $(SRC)/initialize_setastrom.$(ARCH).o \ 114 $(SRC)/tyc_correction.$(ARCH).o \ 114 115 $(SRC)/cam_correction.$(ARCH).o \ 115 116 $(SRC)/dcr_correction.$(ARCH).o \ 116 117 $(SRC)/kh_correction.$(ARCH).o \ 117 118 $(SRC)/astrom_correction.$(ARCH).o \ 119 $(SRC)/repair_tycho_setastrom.$(ARCH).o \ 118 120 $(SRC)/update_dvo_setastrom.$(ARCH).o \ 119 121 $(SRC)/update_catalog_setastrom.$(ARCH).o \ … … 128 130 $(SRC)/update_dvo_setastrom.$(ARCH).o \ 129 131 $(SRC)/update_catalog_setastrom.$(ARCH).o \ 132 $(SRC)/tyc_correction.$(ARCH).o \ 130 133 $(SRC)/cam_correction.$(ARCH).o \ 131 134 $(SRC)/dcr_correction.$(ARCH).o \ 132 135 $(SRC)/kh_correction.$(ARCH).o \ 136 $(SRC)/repair_tycho_setastrom.$(ARCH).o \ 133 137 $(SRC)/astrom_correction.$(ARCH).o \ 134 138 $(SRC)/initialize_setastrom.$(ARCH).o -
trunk/Ohana/src/uniphot/include/setastrom.h
r38062 r38464 49 49 char *DCR_FILE; 50 50 char *CAM_FILE; 51 char *TYC_FILE; 51 52 52 53 int KH_RESET; 53 54 int DCR_RESET; 54 55 int CAM_RESET; 56 int TYC_RESET; 55 57 56 58 SkyRegion UserPatch; … … 91 93 int load_cam_correction (char *filename); 92 94 int get_cam_correction (int chipID, int filter, float Xccd, float Yccd, double *dX, double *dY); 95 96 int load_tyc_correction (char *filename); 97 int get_tyc_correction (double **R, double **D, int *N); 98 int repair_tycho_setastrom (Catalog *catalog, SkyRegion *region); -
trunk/Ohana/src/uniphot/src/initialize_setastrom.c
r38062 r38464 7 7 fprintf (stderr, " -DCR (file) : supply DCR correction splines\n"); 8 8 fprintf (stderr, " -CAM (file) : supply camera-static correction file\n"); 9 fprintf (stderr, " -TYC (file) : supply tycho-fix file (no pm stars)\n"); 9 10 fprintf (stderr, " -v : verbose mode\n"); 10 11 fprintf (stderr, " -region Rmin Rmax Dmin Dmax\n"); … … 91 92 } 92 93 94 TYC_FILE = NULL; 95 if ((N = get_argument (argc, argv, "-TYC"))) { 96 remove_argument (N, &argc, argv); 97 char *tmpfile = strcreate (argv[N]); 98 TYC_FILE = abspath (tmpfile, DVO_MAX_PATH); 99 remove_argument (N, &argc, argv); 100 } 101 TYC_RESET = FALSE; 102 if ((N = get_argument (argc, argv, "-TYC-reset"))) { 103 remove_argument (N, &argc, argv); 104 TYC_RESET = TRUE; 105 } 106 93 107 SINGLE_CPT = NULL; 94 108 if ((N = get_argument (argc, argv, "-cpt"))) { … … 160 174 } 161 175 162 if (!KH_FILE && !DCR_FILE && !CAM_FILE ) {163 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR supplied\n");176 if (!KH_FILE && !DCR_FILE && !CAM_FILE && !TYC_FILE) { 177 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR, -TYC supplied\n"); 164 178 } 165 179 … … 175 189 fprintf (stderr, " -DCR (file) : supply DCR correction splines\n"); 176 190 fprintf (stderr, " -CAM (file) : supply camera-static correction file\n"); 191 fprintf (stderr, " -TYC (file) : supply tycho-fix file (no pm stars)\n"); 177 192 fprintf (stderr, " -region Rmin Rmax Dmin Dmax\n"); 178 193 fprintf (stderr, " -update-catformat (format) : change database schema on output\n"); … … 247 262 remove_argument (N, &argc, argv); 248 263 CAM_RESET = TRUE; 264 } 265 266 TYC_FILE = NULL; 267 if ((N = get_argument (argc, argv, "-TYC"))) { 268 remove_argument (N, &argc, argv); 269 char *tmpfile = strcreate (argv[N]); 270 TYC_FILE = abspath (tmpfile, DVO_MAX_PATH); 271 remove_argument (N, &argc, argv); 272 } 273 TYC_RESET = FALSE; 274 if ((N = get_argument (argc, argv, "-TYC-reset"))) { 275 remove_argument (N, &argc, argv); 276 TYC_RESET = TRUE; 249 277 } 250 278 … … 308 336 if (!CATDIR) usage_setastrom_client(); 309 337 310 if (!KH_FILE && !DCR_FILE && !CAM_FILE ) {311 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR supplied\n");338 if (!KH_FILE && !DCR_FILE && !CAM_FILE && !TYC_FILE) { 339 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR, -TYC supplied\n"); 312 340 } 313 341 -
trunk/Ohana/src/uniphot/src/setastrom.c
r35103 r38464 8 8 initialize_setastrom (argc, argv); 9 9 10 // argv[1] holds the correction file 11 status = update_dvo_setastrom (argv[1]); 10 status = update_dvo_setastrom (); 12 11 13 12 if (!status) exit (1); -
trunk/Ohana/src/uniphot/src/setphot.c
r38441 r38464 21 21 if (UBERCAL) { 22 22 zpts = load_zpt_ubercal (argv[1], &Nzpts, &flatcorrTable); 23 if (!zpts) Shutdown ("failed to load zero points from ubercal table"); 23 24 24 25 char flatcorrfile[DVO_MAX_PATH]; -
trunk/Ohana/src/uniphot/src/update_dvo_setastrom.c
r38441 r38464 20 20 if (DCR_FILE) if (!load_dcr_correction (DCR_FILE)) { fprintf (stderr, "failed to load DCR correction %s\n", DCR_FILE); exit (1); } 21 21 if (CAM_FILE) if (!load_cam_correction (CAM_FILE)) { fprintf (stderr, "failed to load CAM correction %s\n", CAM_FILE); exit (1); } 22 if (TYC_FILE) if (!load_tyc_correction (TYC_FILE)) { fprintf (stderr, "failed to load TYC correction %s\n", TYC_FILE); exit (1); } 22 23 23 24 // determine the populated SkyRegions overlapping the requested area (default depth) … … 56 57 } 57 58 59 if (TYC_FILE) { 60 repair_tycho_setastrom (&catalog, skylist[0].regions[i]); 61 } 58 62 update_catalog_setastrom (&catalog); 59 63
Note:
See TracChangeset
for help on using the changeset viewer.
