Changeset 38635 for trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c
- Timestamp:
- Jul 24, 2015, 5:32:13 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c
r38553 r38635 1854 1854 LENSFIELD(E1); 1855 1855 LENSFIELD(E2); 1856 1857 # define GALPHOT_FIELD(NAME, VALUE) \ 1858 float GalphotValue_##NAME (PhotCode *code, GalPhot *galphot, int Ngalphot) { \ 1859 int n; \ 1860 if (code == NULL) return NAN; \ 1861 for (n = 0; n < Ngalphot; n++) { \ 1862 short equivCode = GetPhotcodeEquivCodebyCode (galphot[n].photcode); \ 1863 if (!equivCode) continue; \ 1864 if (equivCode != code->code) continue; \ 1865 float value = galphot[n].VALUE; \ 1866 return (value); \ 1867 } \ 1868 return NAN; \ 1869 } 1870 1871 GALPHOT_FIELD(GAL_MAG, mag); 1872 GALPHOT_FIELD(GAL_MAG_ERR, magErr); 1873 GALPHOT_FIELD(GAL_MAJ, majorAxis); 1874 GALPHOT_FIELD(GAL_MAJ_ERR, majorAxisErr); 1875 GALPHOT_FIELD(GAL_MIN, minorAxis); 1876 GALPHOT_FIELD(GAL_MIN_ERR, minorAxisErr); 1877 GALPHOT_FIELD(GAL_THETA, theta); 1878 GALPHOT_FIELD(GAL_THETA_ERR, thetaErr); 1879 GALPHOT_FIELD(GAL_INDEX, index); 1880 GALPHOT_FIELD(GAL_CHISQ, chisq); 1881 GALPHOT_FIELD(GAL_NPIX, Npix); 1882 GALPHOT_FIELD(GAL_TYPE, modelType);
Note:
See TracChangeset
for help on using the changeset viewer.
