Changeset 38740
- Timestamp:
- Sep 16, 2015, 7:44:41 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src
- Files:
-
- 2 added
- 4 edited
-
libautocode/Makefile.Targets (modified) (2 diffs)
-
libautocode/def/galphot-ps1-v5-r0.d (added)
-
libautocode/def/galphot-ps1-v5-r1.d (added)
-
libdvo/include/ps1_v5_defs.h (modified) (1 diff)
-
libdvo/src/dvo_convert.c (modified) (3 diffs)
-
libdvo/src/dvo_convert_PS1_V5.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/libautocode/Makefile.Targets
r38553 r38740 56 56 $(ASRC)/starpar-ps1-sim.$(ARCH).o \ 57 57 $(ASRC)/galphot.$(ARCH).o \ 58 $(ASRC)/galphot-ps1-v5.$(ARCH).o \ 58 $(ASRC)/galphot-ps1-v5-r0.$(ARCH).o \ 59 $(ASRC)/galphot-ps1-v5-r1.$(ARCH).o \ 59 60 $(ASRC)/missing.$(ARCH).o \ 60 61 $(ASRC)/photcode.$(ARCH).o \ … … 168 169 $(AINC)/starpar-ps1-sim.h \ 169 170 $(AINC)/galphot.h \ 170 $(AINC)/galphot-ps1-v5.h \ 171 $(AINC)/galphot-ps1-v5-r0.h \ 172 $(AINC)/galphot-ps1-v5-r1.h \ 171 173 $(AINC)/missing.h \ 172 174 $(AINC)/photcode.h \ -
branches/eam_branches/ipp-20150625/Ohana/src/libdvo/include/ps1_v5_defs.h
r38441 r38740 23 23 StarPar_PS1_V5 *StarParInternalTo_PS1_V5 (StarPar *in, off_t Nvalues); 24 24 25 GalPhot *GalPhot_PS1_V5_ToInternal (GalPhot_PS1_V5 *in, off_t Nvalues); 26 GalPhot_PS1_V5 *GalPhotInternalTo_PS1_V5 (GalPhot *in, off_t Nvalues); 25 GalPhot *GalPhot_PS1_V5_R1_ToInternal (GalPhot_PS1_V5_R1 *in, off_t Nvalues); 26 GalPhot *GalPhot_PS1_V5_R0_ToInternal (GalPhot_PS1_V5_R0 *in, off_t Nvalues); 27 28 GalPhot_PS1_V5_R1 *GalPhotInternalTo_PS1_V5_R1 (GalPhot *in, off_t Nvalues); 27 29 28 30 PhotCode *PhotCode_PS1_V5_To_Internal (PhotCode_PS1_V5 *in, off_t Nvalues); -
branches/eam_branches/ipp-20150625/Ohana/src/libdvo/src/dvo_convert.c
r38693 r38740 884 884 } 885 885 886 if (!strcmp (extname, "DVO_GALPHOT_PS1_V5") && (ftable[0].header[0].Naxis[0] == 72)) { 887 GalPhot_PS1_V5_R0 *tmpGalPhot; 888 tmpGalPhot = gfits_table_get_GalPhot_PS1_V5_R0 (ftable, Ngalphot, NULL, &nativeBytes); 889 if (!tmpGalPhot) { 890 fprintf (stderr, "ERROR: failed to read galphots\n"); 891 exit (2); 892 } 893 galphot = GalPhot_PS1_V5_R0_ToInternal (tmpGalPhot, *Ngalphot); 894 free (tmpGalPhot); 895 ftable[0].buffer = NULL; 896 *format = DVO_FORMAT_PS1_V5; 897 return (galphot); 898 } 899 886 900 # define SKIPPING_FORMAT(NAME, FORMAT, TYPE) \ 887 901 if (!strcmp (extname, NAME)) { \ … … 926 940 SKIPPING_FORMAT ("DVO_GALPHOT_PS1_V3", PS1_V3, PS1_V3); 927 941 SKIPPING_FORMAT ("DVO_GALPHOT_PS1_V4", PS1_V4, PS1_V4); 928 CONVERT_FORMAT ("DVO_GALPHOT_PS1_V5", PS1_V5, PS1_V5 );942 CONVERT_FORMAT ("DVO_GALPHOT_PS1_V5", PS1_V5, PS1_V5_R1); 929 943 SKIPPING_FORMAT ("DVO_GALPHOT_PS1_SIM", PS1_SIM, PS1_SIM); 930 944 # undef CONVERT_FORMAT … … 965 979 // FORMAT_CASE (PS1_V3, PS1_V3); 966 980 // FORMAT_CASE (PS1_V4, PS1_V4); 967 FORMAT_CASE (PS1_V5, PS1_V5 );981 FORMAT_CASE (PS1_V5, PS1_V5_R1); 968 982 # undef FORMAT_CASE 969 983 -
branches/eam_branches/ipp-20150625/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c
r38606 r38740 983 983 } 984 984 985 GalPhot *GalPhot_PS1_V5_ ToInternal (GalPhot_PS1_V5*in, off_t Nvalues) {985 GalPhot *GalPhot_PS1_V5_R1_ToInternal (GalPhot_PS1_V5_R1 *in, off_t Nvalues) { 986 986 987 987 off_t i; … … 1017 1017 } 1018 1018 1019 GalPhot_PS1_V5 *GalPhotInternalTo_PS1_V5 (GalPhot *in, off_t Nvalues) { 1020 1021 off_t i; 1022 GalPhot_PS1_V5 *out; 1023 1024 ALLOCATE_ZERO (out, GalPhot_PS1_V5, Nvalues); 1019 GalPhot *GalPhot_PS1_V5_R0_ToInternal (GalPhot_PS1_V5_R0 *in, off_t Nvalues) { 1020 1021 off_t i; 1022 GalPhot *out; 1023 1024 ALLOCATE_ZERO (out, GalPhot, Nvalues); 1025 1026 for (i = 0; i < Nvalues; i++) { 1027 dvo_galphot_init (&out[i]); 1028 1029 out[i].Xfit = in[i].Xfit; 1030 out[i].Yfit = in[i].Yfit; 1031 out[i].mag = in[i].mag; 1032 out[i].magErr = in[i].magErr; 1033 out[i].majorAxis = in[i].majorAxis; 1034 out[i].minorAxis = in[i].minorAxis; 1035 out[i].majorAxisErr = in[i].majorAxisErr; 1036 out[i].minorAxisErr = in[i].minorAxisErr; 1037 out[i].theta = in[i].theta; 1038 out[i].thetaErr = in[i].thetaErr; 1039 out[i].index = in[i].index; 1040 out[i].chisq = in[i].chisq; 1041 out[i].Npix = in[i].Npix; 1042 out[i].objID = in[i].objID; 1043 out[i].catID = in[i].catID; 1044 out[i].detID = in[i].detID; 1045 out[i].imageID = in[i].imageID; 1046 // out[i].averef = in[i].averef; 1047 out[i].photcode = in[i].photcode; 1048 out[i].modelType = in[i].modelType; 1049 } 1050 return (out); 1051 } 1052 1053 GalPhot_PS1_V5_R1 *GalPhotInternalTo_PS1_V5_R1 (GalPhot *in, off_t Nvalues) { 1054 1055 off_t i; 1056 GalPhot_PS1_V5_R1 *out; 1057 1058 ALLOCATE_ZERO (out, GalPhot_PS1_V5_R1, Nvalues); 1025 1059 1026 1060 for (i = 0; i < Nvalues; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
