Changeset 37344
- Timestamp:
- Sep 1, 2014, 4:08:42 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140813/Ohana
- Files:
-
- 19 edited
- 17 copied
-
. (modified) (1 prop)
-
src/addstar/Makefile (modified) (1 diff)
-
src/addstar/include/addstar.h (modified) (3 diffs)
-
src/addstar/src/FilterStars.c (modified) (2 diffs)
-
src/addstar/src/LoadData.c (modified) (1 diff)
-
src/addstar/src/MatchHeaders.c (modified) (1 diff)
-
src/addstar/src/ReadXradFITS.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/addstar/src/ReadXradFITS.c )
-
src/addstar/src/UpdateImageIDs.c (modified) (1 diff)
-
src/addstar/src/args.c (modified) (1 diff)
-
src/dvolens (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens )
-
src/dvolens/Makefile (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/Makefile )
-
src/dvolens/include (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/include )
-
src/dvolens/include/dvolens.h (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/include/dvolens.h )
-
src/dvolens/src (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src )
-
src/dvolens/src/ConfigInit.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/ConfigInit.c )
-
src/dvolens/src/SetSignals.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/SetSignals.c )
-
src/dvolens/src/Shutdown.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/Shutdown.c )
-
src/dvolens/src/args.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/args.c )
-
src/dvolens/src/client_logger.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/client_logger.c )
-
src/dvolens/src/dvolens.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/dvolens.c )
-
src/dvolens/src/dvolens_client.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/dvolens_client.c )
-
src/dvolens/src/help.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/help.c )
-
src/dvolens/src/initialize.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/initialize.c )
-
src/dvolens/src/update_objects.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/update_objects.c )
-
src/dvolens/src/update_objects_catalog.c (copied) (copied from tags/ipp-pv3-20140717/Ohana/src/dvolens/src/update_objects_catalog.c )
-
src/dvopsps/src/insert_detections_dvopsps.c (modified) (1 diff)
-
src/dvopsps/src/insert_objects_dvopsps.c (modified) (1 diff)
-
src/getstar (modified) (1 prop)
-
src/getstar/src/getstar.c (modified) (1 diff)
-
src/libautocode/def/lensing-ps1-v5.d (modified) (2 diffs)
-
src/libautocode/def/lensing.d (modified) (2 diffs)
-
src/libautocode/def/lensobj-ps1-v5.d (modified) (1 diff)
-
src/libautocode/def/lensobj.d (modified) (1 diff)
-
src/libdvo/include/dvo.h (modified) (1 diff)
-
src/libdvo/src/dvo_catalog.c (modified) (2 diffs)
-
src/libdvo/src/dvo_convert_PS1_V5.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140813/Ohana
- Property svn:mergeinfo changed
/tags/ipp-pv3-20140717/Ohana (added) merged: 37082,37304,37328-37331,37343
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140813/Ohana/src/addstar/Makefile
r37116 r37344 86 86 $(SRC)/ReadStarsTEXT.$(ARCH).o \ 87 87 $(SRC)/ReadStarsSDSS.$(ARCH).o \ 88 $(SRC)/ReadXradFITS.$(ARCH).o \ 88 89 $(SRC)/FilterStars.$(ARCH).o \ 89 90 $(SRC)/ImageOptions.$(ARCH).o \ -
branches/eam_branches/ipp-20140813/Ohana/src/addstar/include/addstar.h
r37116 r37344 35 35 char *exthead; 36 36 char *extdata; 37 char *extxrad; 37 38 char *exttype; 38 39 int extnum_head; 39 40 int extnum_data; 41 int extnum_xrad; 40 42 } HeaderSet; 41 43 … … 146 148 147 149 int OLD_RESORT; 150 int READ_XRAD_DATA; 148 151 149 152 int PARALLEL; … … 250 253 Stars *FilterStars PROTO((Stars *instars, Image *image, unsigned int imageID, const AddstarClientOptions *options)); 251 254 Stars *MergeStars PROTO((Stars *stars, unsigned int *Nstars, Stars *instars, unsigned int Ninstars)); 255 256 int ReadXradFITS PROTO((FILE *f, Header *theader, Stars *stars, unsigned int Nstars)); 257 252 258 double scat_subpix PROTO((double x, double y)); 253 259 void update_coords PROTO((Average *average, Measure *measure, off_t *next)); -
branches/eam_branches/ipp-20140813/Ohana/src/addstar/src/FilterStars.c
r37036 r37344 9 9 10 10 // the imageID supplied here is the sequence **within this set** 11 // this value is updated based on the image table later 11 // this value is updated based on the image table later (in UpdateImageIDs) 12 12 Stars *FilterStars (Stars *instars, Image *image, unsigned int imageID, const AddstarClientOptions *options) { 13 13 … … 127 127 stars[N].measure.imageID = imageID; // this value is updated in UpdateImageIDs 128 128 129 // add imageID to lensing entry, if it exists 130 if (stars[N].lensing) { 131 stars[N].lensing->imageID = imageID; 132 } 133 129 134 N ++; 130 135 } -
branches/eam_branches/ipp-20140813/Ohana/src/addstar/src/LoadData.c
r34088 r37344 83 83 continue; 84 84 } 85 86 // XRAD : if we want to read the xrad table, skip to that table here: 87 if (headerSets[i].extnum_xrad != -1) { 88 int Nxrad = headerSets[i].extnum_xrad; 89 Nskip = 0; 90 for (j = 0; j < Nxrad; j++) { 91 Nskip += extsize[j]; 92 } 93 fseeko (f, Nskip, SEEK_SET); 94 95 if (!ReadXradFITS (f, headers[Nxrad], inStars, images[0][Nvalid].nstar)) { 96 fprintf (stderr, "problem reading the radial flux data for %s\n", headerSets[i].extdata); 97 } 98 } 99 85 100 inStars = FilterStars (inStars, &images[0][Nvalid], Nvalid, options); 86 101 *stars = MergeStars (*stars, Nstars, inStars, images[0][Nvalid].nstar); -
branches/eam_branches/ipp-20140813/Ohana/src/addstar/src/MatchHeaders.c
r37054 r37344 79 79 headerSets[Nimage].extdata = strcreate (extname); 80 80 headerSets[Nimage].exthead = strcreate (exthead); 81 headerSets[Nimage].extxrad = NULL; 81 82 headerSets[Nimage].extnum_data = i; 82 83 headerSets[Nimage].extnum_head = -1; 84 headerSets[Nimage].extnum_xrad = -1; 85 86 // XXX a special case for fforce xrad data 87 if (READ_XRAD_DATA) { 88 // extname is foobar.psf, convert to foobar.xrad 89 int Nchar = strlen (extname); // foobar.psf : Nchar = 10 90 ALLOCATE (headerSets[Nimage].extxrad, char, Nchar + 2); // xrad is 1 longer than psf 91 memcpy (headerSets[Nimage].extxrad, extname, Nchar - 3); // Nchar - 3 = 7 92 memcpy (&headerSets[Nimage].extxrad[Nchar-3], "xrad", 4); 93 headerSets[Nimage].extxrad[Nchar + 1] = 0; // put the 0 at element 11 for foobar.xrad\0 94 } 83 95 84 96 // find the matching exthead entry 85 97 for (j = 0; j < Nheaders; j++) { 86 98 if (!gfits_scan (headers[j], ExtnameKeyword, "%s", 1, extname)) continue; 87 if (strcmp (extname, headerSets[Nimage].exthead)) continue; 88 headerSets[Nimage].extnum_head = j; 89 break; 99 if (!strcmp (extname, headerSets[Nimage].exthead)) { 100 headerSets[Nimage].extnum_head = j; 101 if (!READ_XRAD_DATA) break; 102 } 103 if (READ_XRAD_DATA && !strcmp (extname, headerSets[Nimage].extxrad)) { 104 headerSets[Nimage].extnum_xrad = j; 105 } 106 if ((headerSets[Nimage].extnum_head > -1) && (headerSets[Nimage].extnum_xrad > -1)) { 107 // we can only get here if READ_XRAD_DATA is true 108 break; 109 } 90 110 } 91 111 -
branches/eam_branches/ipp-20140813/Ohana/src/addstar/src/UpdateImageIDs.c
r35579 r37344 55 55 for (i = 0; i < Nstars; i++) { 56 56 stars[i].measure.imageID += imageID; 57 if (stars[i].lensing) { 58 stars[i].lensing->imageID += imageID; 59 } 57 60 } 58 61 -
branches/eam_branches/ipp-20140813/Ohana/src/addstar/src/args.c
r37116 r37344 81 81 PMM_CCD_TABLE = strcreate (argv[N]); 82 82 remove_argument (N, &argc, argv); 83 } 84 85 READ_XRAD_DATA = FALSE; 86 if ((N = get_argument (argc, argv, "-xrad"))) { 87 remove_argument (N, &argc, argv); 88 READ_XRAD_DATA = TRUE; 83 89 } 84 90 -
branches/eam_branches/ipp-20140813/Ohana/src/dvopsps/src/insert_detections_dvopsps.c
r37308 r37344 68 68 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 69 69 70 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, " w")) {70 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, "r")) { 71 71 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename); 72 72 exit (1); -
branches/eam_branches/ipp-20140813/Ohana/src/dvopsps/src/insert_objects_dvopsps.c
r35098 r37344 56 56 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 57 57 58 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, " w")) {58 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, "r")) { 59 59 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename); 60 60 exit (1); -
branches/eam_branches/ipp-20140813/Ohana/src/getstar
- Property svn:mergeinfo changed
/tags/ipp-pv3-20140717/Ohana/src/getstar (added) merged: 37082,37304
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140813/Ohana/src/getstar/src/getstar.c
r31669 r37344 14 14 set_db (&db); 15 15 16 sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, TRUE, SKY_DEPTH, VERBOSE);16 sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, FALSE, SKY_DEPTH, VERBOSE); 17 17 if (!sky) exit (1); 18 18 -
branches/eam_branches/ipp-20140813/Ohana/src/libautocode/def/lensing-ps1-v5.d
r37034 r37344 2 2 EXTNAME DVO_LENSING_PS1_V5 3 3 TYPE BINTABLE 4 SIZE 1 284 SIZE 136 5 5 DESCRIPTION DVO Lensing Table 6 6 … … 44 44 FIELD averef, AVE_REF, unsigned int, reference to average entry 45 45 46 FIELD imageID, IMAGE_ID, unsigned int, reference to DVO image ID 47 FIELD padding, PADDING, unsigned int, reference to DVO image ID 48 46 49 # 28 x float 47 50 # 4 x int -
branches/eam_branches/ipp-20140813/Ohana/src/libautocode/def/lensing.d
r37034 r37344 2 2 EXTNAME DVO_LENSING 3 3 TYPE BINTABLE 4 SIZE 1 284 SIZE 136 5 5 DESCRIPTION DVO Lensing Table 6 6 … … 39 39 FIELD fF_ApR6, FLUX_AP_R6, float, Flux inside r = 6 40 40 41 FIELD detID, DET_ID, unsigned int, detection ID 42 FIELD objID, OBJ_ID, unsigned int, unique ID for object in table 43 FIELD catID, CAT_ID, unsigned int, unique ID for table in which object was first realized 44 FIELD averef, AVE_REF, unsigned int, reference to average entry 41 FIELD detID, DET_ID, int, detection ID 42 FIELD objID, OBJ_ID, int, unique ID for object in table 43 FIELD catID, CAT_ID, int, unique ID for table in which object was first realized 44 FIELD averef, AVE_REF, int, reference to average entry 45 46 FIELD imageID, IMAGE_ID, int, reference to DVO image ID 47 FIELD padding, PADDING, int, padding 45 48 46 49 # 28 x float 47 # 4 x int48 # = 1 28bytes / detection50 # 5 x int + padding 51 # = 136 bytes / detection 49 52 # for 2.5G objects + 60 overlaps, expect 15TB for forced warp -
branches/eam_branches/ipp-20140813/Ohana/src/libautocode/def/lensobj-ps1-v5.d
r37034 r37344 43 43 FIELD E2, E2, float 44 44 45 FIELD objID, OBJ_ID, unsigned int, unique ID for object in table 46 FIELD catID, CAT_ID, unsigned int, unique ID for table in which object was first realized 47 FIELD pad, PAD, int 45 FIELD objID, OBJ_ID, unsigned int, unique ID for object in table 46 FIELD catID, CAT_ID, unsigned int, unique ID for table in which object was first realized 47 FIELD photcode, PHOTCODE, short 48 FIELD Nmeas, NMEAS, short 48 49 49 50 # 31 x float -
branches/eam_branches/ipp-20140813/Ohana/src/libautocode/def/lensobj.d
r37034 r37344 29 29 FIELD E2_sh_psf, E2_SH_PSF, float, mean lensing shear psf stars E2 30 30 31 FIELD F_ApR5,FLUX_AP_R5, float, Flux inside r = 532 FIELD dF_ApR5,FLUX_ERR_AP_R5, float, Flux inside r = 533 FIELD sF_ApR5,FLUX_STD_AP_R5, float, Flux inside r = 534 FIELD fF_ApR5,FLUX_FIL_AP_R5, float, Flux inside r = 531 FIELD F_ApR5, FLUX_AP_R5, float, Flux inside r = 5 32 FIELD dF_ApR5, FLUX_ERR_AP_R5, float, Flux inside r = 5 33 FIELD sF_ApR5, FLUX_STD_AP_R5, float, Flux inside r = 5 34 FIELD fF_ApR5, FLUX_FIL_AP_R5, float, Flux inside r = 5 35 35 36 FIELD F_ApR6,FLUX_AP_R6, float, Flux inside r = 537 FIELD dF_ApR6,FLUX_ERR_AP_R6, float, Flux inside r = 538 FIELD sF_ApR6,FLUX_AP_R6, float, Flux inside r = 539 FIELD fF_ApR6,FLUX_AP_R6, float, Flux inside r = 536 FIELD F_ApR6, FLUX_AP_R6, float, Flux inside r = 5 37 FIELD dF_ApR6, FLUX_ERR_AP_R6, float, Flux inside r = 5 38 FIELD sF_ApR6, FLUX_AP_R6, float, Flux inside r = 5 39 FIELD fF_ApR6, FLUX_AP_R6, float, Flux inside r = 5 40 40 41 FIELD gamma,GAMMA, float42 FIELD E1,E1, float43 FIELD E2,E2, float41 FIELD gamma, GAMMA, float 42 FIELD E1, E1, float 43 FIELD E2, E2, float 44 44 45 FIELD objID, OBJ_ID, unsigned int, unique ID for object in table 46 FIELD catID, CAT_ID, unsigned int, unique ID for table in which object was first realized 47 FIELD pad, PAD, int 45 FIELD objID, OBJ_ID, unsigned int, unique ID for object in table 46 FIELD catID, CAT_ID, unsigned int, unique ID for table in which object was first realized 47 FIELD photcode, PHOTCODE, short 48 FIELD Nmeas, NMEAS, short 48 49 49 50 # 31 x float -
branches/eam_branches/ipp-20140813/Ohana/src/libdvo/include/dvo.h
r37246 r37344 1039 1039 1040 1040 void dvo_lensing_init (Lensing *lensing); 1041 void dvo_lensobj_init (Lensobj *lensobj );1041 void dvo_lensobj_init (Lensobj *lensobj, int toZero); 1042 1042 1043 1043 void InitRegionHosts (RegionHostInfo *hosts, int Nhosts, int NHOSTS); -
branches/eam_branches/ipp-20140813/Ohana/src/libdvo/src/dvo_catalog.c
r37246 r37344 389 389 lensing->catID = -1; 390 390 lensing->averef = 0; 391 392 lensing->imageID = -1; 393 lensing->padding = 0; 391 394 } 392 395 393 396 // init all data, or just catalog data 394 void dvo_lensobj_init (Lensobj *lensobj) { 395 lensobj->X11_sm_obj = NAN; 396 lensobj->X12_sm_obj = NAN; 397 lensobj->X22_sm_obj = NAN; 398 lensobj->E1_sm_obj = NAN; 399 lensobj->E2_sm_obj = NAN; 400 401 lensobj->X11_sh_obj = NAN; 402 lensobj->X12_sh_obj = NAN; 403 lensobj->X22_sh_obj = NAN; 404 lensobj->E1_sh_obj = NAN; 405 lensobj->E2_sh_obj = NAN; 406 407 lensobj->X11_sm_psf = NAN; 408 lensobj->X12_sm_psf = NAN; 409 lensobj->X22_sm_psf = NAN; 410 lensobj->E1_sm_psf = NAN; 411 lensobj->E2_sm_psf = NAN; 412 413 lensobj->X11_sh_psf = NAN; 414 lensobj->X12_sh_psf = NAN; 415 lensobj->X22_sh_psf = NAN; 416 lensobj->E1_sh_psf = NAN; 417 lensobj->E2_sh_psf = NAN; 418 419 lensobj->F_ApR5 = NAN; 420 lensobj->dF_ApR5 = NAN; 421 lensobj->sF_ApR5 = NAN; 422 lensobj->fF_ApR5 = NAN; 423 424 lensobj->F_ApR6 = NAN; 425 lensobj->dF_ApR6 = NAN; 426 lensobj->sF_ApR6 = NAN; 427 lensobj->fF_ApR6 = NAN; 397 void dvo_lensobj_init (Lensobj *lensobj, int toZero) { 398 lensobj->X11_sm_obj = toZero ? 0 : NAN; 399 lensobj->X12_sm_obj = toZero ? 0 : NAN; 400 lensobj->X22_sm_obj = toZero ? 0 : NAN; 401 lensobj->E1_sm_obj = toZero ? 0 : NAN; 402 lensobj->E2_sm_obj = toZero ? 0 : NAN; 403 lensobj->X11_sh_obj = toZero ? 0 : NAN; 404 lensobj->X12_sh_obj = toZero ? 0 : NAN; 405 lensobj->X22_sh_obj = toZero ? 0 : NAN; 406 lensobj->E1_sh_obj = toZero ? 0 : NAN; 407 lensobj->E2_sh_obj = toZero ? 0 : NAN; 408 lensobj->X11_sm_psf = toZero ? 0 : NAN; 409 lensobj->X12_sm_psf = toZero ? 0 : NAN; 410 lensobj->X22_sm_psf = toZero ? 0 : NAN; 411 lensobj->E1_sm_psf = toZero ? 0 : NAN; 412 lensobj->E2_sm_psf = toZero ? 0 : NAN; 413 lensobj->X11_sh_psf = toZero ? 0 : NAN; 414 lensobj->X12_sh_psf = toZero ? 0 : NAN; 415 lensobj->X22_sh_psf = toZero ? 0 : NAN; 416 lensobj->E1_sh_psf = toZero ? 0 : NAN; 417 lensobj->E2_sh_psf = toZero ? 0 : NAN; 418 lensobj->F_ApR5 = toZero ? 0 : NAN; 419 lensobj->dF_ApR5 = toZero ? 0 : NAN; 420 lensobj->sF_ApR5 = toZero ? 0 : NAN; 421 lensobj->fF_ApR5 = toZero ? 0 : NAN; 422 lensobj->F_ApR6 = toZero ? 0 : NAN; 423 lensobj->dF_ApR6 = toZero ? 0 : NAN; 424 lensobj->sF_ApR6 = toZero ? 0 : NAN; 425 lensobj->fF_ApR6 = toZero ? 0 : NAN; 428 426 429 427 lensobj->gamma = NAN; … … 434 432 lensobj->catID = -1; 435 433 436 lensobj->pad = 0; 434 lensobj->photcode = 0; 435 lensobj->Nmeas = 0; 437 436 } 438 437 -
branches/eam_branches/ipp-20140813/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c
r37246 r37344 491 491 492 492 out[i].averef = in[i].averef; 493 494 out[i].imageID = in[i].imageID; 493 495 } 494 496 return (out); … … 543 545 544 546 out[i].averef = in[i].averef; 547 out[i].imageID = in[i].imageID; 545 548 } 546 549 return (out); … … 555 558 556 559 for (i = 0; i < Nvalues; i++) { 557 dvo_lensobj_init (&out[i] );560 dvo_lensobj_init (&out[i], FALSE); 558 561 559 562 out[i].X11_sm_obj = in[i].X11_sm_obj; … … 598 601 out[i].catID = in[i].catID; 599 602 603 out[i].photcode = in[i].photcode; 604 out[i].Nmeas = in[i].Nmeas; 600 605 } 601 606 return (out); … … 651 656 out[i].objID = in[i].objID; 652 657 out[i].catID = in[i].catID; 658 659 out[i].photcode = in[i].photcode; 660 out[i].Nmeas = in[i].Nmeas; 653 661 } 654 662 return (out);
Note:
See TracChangeset
for help on using the changeset viewer.
