Changeset 39219
- Timestamp:
- Dec 3, 2015, 4:11:25 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20151113/Ohana/src/uniphot
- Files:
-
- 3 edited
-
include/setphot.h (modified) (1 diff)
-
src/initialize_setphot.c (modified) (1 diff)
-
src/load_zpt_table.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20151113/Ohana/src/uniphot/include/setphot.h
r38986 r39219 36 36 int IMAGES_ONLY; 37 37 int REPAIR_BY_OBJID; 38 int SKIP_EXTRA_EXTENSIONS; 38 39 39 40 SkyRegion UserPatch; -
branches/eam_branches/ipp-20151113/Ohana/src/uniphot/src/initialize_setphot.c
r38986 r39219 49 49 if ((N = get_argument (argc, argv, "-reset"))) { 50 50 RESET = TRUE; 51 remove_argument (N, &argc, argv); 52 } 53 54 SKIP_EXTRA_EXTENSIONS = FALSE; 55 if ((N = get_argument (argc, argv, "-skip-extra-extensions"))) { 56 SKIP_EXTRA_EXTENSIONS = TRUE; 51 57 remove_argument (N, &argc, argv); 52 58 } -
branches/eam_branches/ipp-20151113/Ohana/src/uniphot/src/load_zpt_table.c
r38986 r39219 280 280 } 281 281 282 // ***** skip the extra table segment ***** 283 // load data for this header 284 if (!gfits_load_header (f, &theader)) return (NULL); 285 286 // read the fits table bytes 287 if (!gfits_fread_ftable_data (f, &ftable, FALSE)) return (NULL); 282 // in some versions of ucal, we have extra FITS extensions (for masked chips) 283 // since Eddie gives no (or almost no) metadata, we have to be told if these exist: 284 285 if (SKIP_EXTRA_EXTENSIONS) { 286 // ***** skip the extra table segment ***** 287 // load data for this header 288 if (!gfits_load_header (f, &theader)) return (NULL); 289 290 // read the fits table bytes 291 if (!gfits_fread_ftable_data (f, &ftable, FALSE)) return (NULL); 288 292 289 // skip over remaining bytes in data segment 290 fseeko (f, ftable.datasize - ftable.validsize, SEEK_CUR); 293 // skip over remaining bytes in data segment 294 fseeko (f, ftable.datasize - ftable.validsize, SEEK_CUR); 295 } 291 296 292 297 // XXX the initial hacked-together table from Eddie is missing the last 2 elements. they should be zero
Note:
See TracChangeset
for help on using the changeset viewer.
