- Timestamp:
- Mar 23, 2015, 10:15:49 AM (11 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 8 edited
-
addstar/src/ReadStarsFITS.c (modified) (1 diff)
-
addstar/src/mkcmf.c (modified) (2 diffs)
-
libautocode/Makefile.Targets (modified) (2 diffs)
-
libautocode/def/lensing-ps1-v5-r0.d (modified) (1 diff)
-
libdvo/include/ps1_v5_defs.h (modified) (1 diff)
-
libdvo/src/dvo_catalog.c (modified) (1 diff)
-
libdvo/src/dvo_convert.c (modified) (3 diffs)
-
libdvo/src/dvo_convert_PS1_V5.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/ReadStarsFITS.c
r37992 r37995 1217 1217 stars[i].lensing->E2_sh_psf = ps1data[i].E2_sh_psf; 1218 1218 1219 stars[i].lensing->E1_psf = ps1data[i].E1_psf; 1220 stars[i].lensing->E2_psf = ps1data[i].E2_psf; 1221 1219 1222 // stars[i].lensing->F_ApR5 = ps1data[i].F_ApR5; 1220 1223 // stars[i].lensing->dF_ApR5 = ps1data[i].dF_ApR5; -
trunk/Ohana/src/addstar/src/mkcmf.c
r37807 r37995 1003 1003 1004 1004 int i; 1005 CMF_PS1_V5_ Lensing *stars;1005 CMF_PS1_V5_R2_Lensing *stars; 1006 1006 float flux, fSN; 1007 1007 1008 1008 // XXX add gaussian-distributed noise based on counts 1009 1009 // this needs to make different output 'stars' entries depending on the desired type 1010 ALLOCATE (stars, CMF_PS1_V5_ Lensing, Nstars);1010 ALLOCATE (stars, CMF_PS1_V5_R2_Lensing, Nstars); 1011 1011 for (i = 0; i < Nstars; i++) { 1012 1012 … … 1129 1129 } 1130 1130 1131 gfits_table_set_CMF_PS1_V5_ Lensing (ftable, stars, Nstars);1131 gfits_table_set_CMF_PS1_V5_R2_Lensing (ftable, stars, Nstars); 1132 1132 gfits_modify (ftable->header, "EXTTYPE", "%s", 1, "PS1_V5"); 1133 1133 } -
trunk/Ohana/src/libautocode/Makefile.Targets
r37967 r37995 45 45 $(ASRC)/measure-ps1-ref.$(ARCH).o \ 46 46 $(ASRC)/lensing.$(ARCH).o \ 47 $(ASRC)/lensing-ps1-v5.$(ARCH).o \ 48 $(ASRC)/lensing-ps1-v5-alt.$(ARCH).o \ 47 $(ASRC)/lensing-ps1-v5-r0.$(ARCH).o \ 48 $(ASRC)/lensing-ps1-v5-r1.$(ARCH).o \ 49 $(ASRC)/lensing-ps1-v5-r2.$(ARCH).o \ 49 50 $(ASRC)/lensobj.$(ARCH).o \ 50 51 $(ASRC)/lensobj-ps1-v5.$(ARCH).o \ … … 152 153 $(AINC)/measure-ps1-ref.h \ 153 154 $(AINC)/lensing.h \ 154 $(AINC)/lensing-ps1-v5.h \ 155 $(AINC)/lensing-ps1-v5-alt.h \ 155 $(AINC)/lensing-ps1-v5-r0.h \ 156 $(AINC)/lensing-ps1-v5-r1.h \ 157 $(AINC)/lensing-ps1-v5-r2.h \ 156 158 $(AINC)/lensobj.h \ 157 159 $(AINC)/lensobj-ps1-v5.h \ -
trunk/Ohana/src/libautocode/def/lensing-ps1-v5-r0.d
r37992 r37995 1 1 STRUCT Lensing_PS1_V5_R0 2 EXTNAME DVO_LENSING_PS1_V5 _R02 EXTNAME DVO_LENSING_PS1_V5 3 3 TYPE BINTABLE 4 4 SIZE 128 -
trunk/Ohana/src/libdvo/include/ps1_v5_defs.h
r37807 r37995 8 8 SecFilt_PS1_V5 *SecFiltInternalTo_PS1_V5 (SecFilt *in, off_t Nvalues); 9 9 10 typedef Lensing_PS1_V5_R2 Lensing_PS1_V5; 11 10 12 Lensing *Lensing_PS1_V5_ToInternal (Lensing_PS1_V5 *in, off_t Nvalues); 11 Lensing *Lensing_PS1_V5_ALT_ToInternal (Lensing_PS1_V5_ALT *in, off_t Nvalues); 12 Lensing_PS1_V5 *LensingInternalTo_PS1_V5 (Lensing *in, off_t Nvalues); 13 Lensing_PS1_V5_R2 *LensingInternalTo_PS1_V5_R2 (Lensing *in, off_t Nvalues); 13 14 Lensobj *Lensobj_PS1_V5_ToInternal (Lensobj_PS1_V5 *in, off_t Nvalues); 14 15 Lensobj_PS1_V5 *LensobjInternalTo_PS1_V5 (Lensobj *in, off_t Nvalues); 16 17 Lensing *Lensing_PS1_V5_R0_ToInternal (Lensing_PS1_V5_R0 *in, off_t Nvalues); 18 Lensing *Lensing_PS1_V5_R1_ToInternal (Lensing_PS1_V5_R1 *in, off_t Nvalues); 19 Lensing *Lensing_PS1_V5_R2_ToInternal (Lensing_PS1_V5_R2 *in, off_t Nvalues); 15 20 16 21 StarPar *StarPar_PS1_V5_ToInternal (StarPar_PS1_V5 *in, off_t Nvalues); -
trunk/Ohana/src/libdvo/src/dvo_catalog.c
r37807 r37995 377 377 lensing->E1_sh_psf = NAN; 378 378 lensing->E2_sh_psf = NAN; 379 380 lensing->E1_psf = NAN; 381 lensing->E2_psf = NAN; 379 382 380 383 lensing->F_ApR5 = NAN; -
trunk/Ohana/src/libdvo/src/dvo_convert.c
r37807 r37995 416 416 417 417 if (!strcmp (extname, "DVO_LENSING_PS1_V5") && (ftable[0].header[0].Naxis[0] == 128)) { 418 Lensing_PS1_V5_ ALT*tmpLensing;419 tmpLensing = gfits_table_get_Lensing_PS1_V5_ ALT(ftable, Nlensing, NULL);418 Lensing_PS1_V5_R0 *tmpLensing; 419 tmpLensing = gfits_table_get_Lensing_PS1_V5_R0 (ftable, Nlensing, NULL); 420 420 if (!tmpLensing) { 421 421 fprintf (stderr, "ERROR: failed to read lensings\n"); 422 422 exit (2); 423 423 } 424 lensing = Lensing_PS1_V5_ALT_ToInternal (tmpLensing, *Nlensing); 424 lensing = Lensing_PS1_V5_R0_ToInternal (tmpLensing, *Nlensing); 425 free (tmpLensing); 426 *format = DVO_FORMAT_PS1_V5; 427 return (lensing); } 428 429 if (!strcmp (extname, "DVO_LENSING_PS1_V5") && (ftable[0].header[0].Naxis[0] == 136)) { 430 Lensing_PS1_V5_R1 *tmpLensing; 431 tmpLensing = gfits_table_get_Lensing_PS1_V5_R1 (ftable, Nlensing, NULL); 432 if (!tmpLensing) { 433 fprintf (stderr, "ERROR: failed to read lensings\n"); 434 exit (2); 435 } 436 lensing = Lensing_PS1_V5_R1_ToInternal (tmpLensing, *Nlensing); 425 437 free (tmpLensing); 426 438 *format = DVO_FORMAT_PS1_V5; … … 468 480 SKIPPING_FORMAT ("DVO_LENSING_PS1_V3", PS1_V3, PS1_V3); 469 481 SKIPPING_FORMAT ("DVO_LENSING_PS1_V4", PS1_V4, PS1_V4); 470 CONVERT_FORMAT ("DVO_LENSING_PS1_V5", PS1_V5, PS1_V5 );482 CONVERT_FORMAT ("DVO_LENSING_PS1_V5", PS1_V5, PS1_V5_R2); 471 483 # undef CONVERT_FORMAT 472 484 … … 505 517 // FORMAT_CASE (PS1_V3, PS1_V3); 506 518 // FORMAT_CASE (PS1_V4, PS1_V4); 507 FORMAT_CASE (PS1_V5, PS1_V5 );519 FORMAT_CASE (PS1_V5, PS1_V5_R2); 508 520 # undef FORMAT_CASE 509 521 -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c
r37992 r37995 444 444 } 445 445 446 Lensing *Lensing_PS1_V5_ ToInternal (Lensing_PS1_V5*in, off_t Nvalues) {446 Lensing *Lensing_PS1_V5_R2_ToInternal (Lensing_PS1_V5_R2 *in, off_t Nvalues) { 447 447 448 448 off_t i; … … 477 477 out[i].E1_sh_psf = in[i].E1_sh_psf; 478 478 out[i].E2_sh_psf = in[i].E2_sh_psf; 479 480 out[i].E1_psf = in[i].E1_psf; 481 out[i].E2_psf = in[i].E2_psf; 479 482 480 483 out[i].F_ApR5 = in[i].F_ApR5; … … 491 494 out[i].objID = in[i].objID; 492 495 out[i].catID = in[i].catID; 493 494 496 out[i].averef = in[i].averef; 495 497 … … 499 501 } 500 502 501 Lensing_PS1_V5 *LensingInternalTo_PS1_V5(Lensing *in, off_t Nvalues) {502 503 off_t i; 504 Lensing_PS1_V5 *out;503 Lensing_PS1_V5_R2 *LensingInternalTo_PS1_V5_R2 (Lensing *in, off_t Nvalues) { 504 505 off_t i; 506 Lensing_PS1_V5_R2 *out; 505 507 506 508 ALLOCATE_ZERO (out, Lensing_PS1_V5, Nvalues); … … 548 550 out[i].objID = in[i].objID; 549 551 out[i].catID = in[i].catID; 550 551 552 out[i].averef = in[i].averef; 553 552 554 out[i].imageID = in[i].imageID; 553 555 } … … 583 585 out[i].E2_sm_psf = in[i].E2_sm_psf; 584 586 585 out[i].E1_psf = in[i].E1_psf;586 out[i].E2_psf = in[i].E2_psf;587 588 587 out[i].X11_sh_psf = in[i].X11_sh_psf; 589 588 out[i].X12_sh_psf = in[i].X12_sh_psf; … … 1317 1316 out[i].objID = in[i].objID; 1318 1317 out[i].catID = in[i].catID; 1319 1320 1318 out[i].averef = in[i].averef; 1321 1319 } … … 1370 1368 out[i].objID = in[i].objID; 1371 1369 out[i].catID = in[i].catID; 1372 1373 1370 out[i].averef = in[i].averef; 1374 } 1375 return (out); 1376 } 1377 1371 1372 out[i].imageID = in[i].imageID; 1373 } 1374 return (out); 1375 } 1376
Note:
See TracChangeset
for help on using the changeset viewer.
