Changeset 39420
- Timestamp:
- Mar 1, 2016, 11:35:02 AM (10 years ago)
- Location:
- branches/eam_branches/ohana.20160226/src
- Files:
-
- 12 edited
-
relphot/src/GridOps.c (modified) (1 diff)
-
relphot/src/ImageOps.c (modified) (7 diffs)
-
relphot/src/MosaicOps.c (modified) (5 diffs)
-
relphot/src/StarOps.c (modified) (1 diff)
-
relphot/src/plotstuff.c (modified) (3 diffs)
-
relphot/src/setMrelCatalog.c (modified) (1 diff)
-
relphot/src/share_mean_mags.c (modified) (1 diff)
-
relphot/src/synthetic_mags.c (modified) (1 diff)
-
skycalc/src/astro.c (modified) (3 diffs)
-
tools/src/list_astro.c (modified) (1 diff)
-
uniphot/src/update_catalog_setphot.c (modified) (1 diff)
-
uniphot/src/update_catalog_setposangle.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20160226/src/relphot/src/GridOps.c
r37037 r39420 38 38 39 39 void initGrid (int dX, int dY) { 40 OHANA_UNUSED_PARAM(dX); 41 OHANA_UNUSED_PARAM(dY); 40 42 41 43 int i, N, ccdnum_max, refX, refY, refBin; -
branches/eam_branches/ohana.20160226/src/relphot/src/ImageOps.c
r39377 r39420 413 413 // NOTE: static flat-field component is included in measure.Mflat 414 414 float getMcal (off_t meas, int cat, FlatCorrectionTable *flatcorr, Catalog *catalog) { 415 OHANA_UNUSED_PARAM(flatcorr); 416 OHANA_UNUSED_PARAM(catalog); 415 417 416 418 off_t i; … … 437 439 // NOTE: static flat-field component is included in measure.Mflat 438 440 float getMcal_alt (off_t meas, int cat, FlatCorrectionTable *flatcorr, float Xccd, float Yccd) { 441 OHANA_UNUSED_PARAM(flatcorr); 442 OHANA_UNUSED_PARAM(Xccd); 443 OHANA_UNUSED_PARAM(Yccd); 439 444 440 445 off_t i; … … 562 567 563 568 float getMflat (off_t meas, int cat, FlatCorrectionTable *flatcorr, Catalog *catalog) { 569 OHANA_UNUSED_PARAM(flatcorr); 564 570 565 571 off_t i = MeasureToImage[cat][meas]; … … 842 848 static int setMcal_init_done = FALSE; 843 849 void plot_setMcal (double *list, int Npts, StatType *stats, float clouds) { 850 OHANA_UNUSED_PARAM(stats); 851 OHANA_UNUSED_PARAM(clouds); 844 852 845 853 off_t i; … … 1023 1031 1024 1032 StatType statsImageX (Catalog *catalog) { 1033 OHANA_UNUSED_PARAM(catalog); 1025 1034 1026 1035 off_t i, n; … … 1055 1064 1056 1065 StatType statsImageM (Catalog *catalog) { 1066 OHANA_UNUSED_PARAM(catalog); 1057 1067 1058 1068 off_t i, n; … … 1087 1097 1088 1098 StatType statsImagedM (Catalog *catalog) { 1099 OHANA_UNUSED_PARAM(catalog); 1089 1100 1090 1101 off_t i, n; -
branches/eam_branches/ohana.20160226/src/relphot/src/MosaicOps.c
r39377 r39420 501 501 502 502 void setMosaicCenters (Image *image, off_t Nimage) { 503 OHANA_UNUSED_PARAM(Nimage); 503 504 504 505 /* find max dR, dD range for all mosaics */ … … 596 597 597 598 void initMosaicGrid (Image *image, off_t Nimage) { 599 OHANA_UNUSED_PARAM(Nimage); 598 600 599 601 /* find max dR, dD range for all mosaics */ … … 1580 1582 1581 1583 StatType statsMosaicM (Catalog *catalog) { 1584 OHANA_UNUSED_PARAM(catalog); 1582 1585 1583 1586 off_t i; … … 1612 1615 1613 1616 StatType statsMosaicdM (Catalog *catalog) { 1617 OHANA_UNUSED_PARAM(catalog); 1614 1618 1615 1619 off_t i, n; … … 1692 1696 1693 1697 StatType statsMosaicX (Catalog *catalog) { 1698 OHANA_UNUSED_PARAM(catalog); 1694 1699 1695 1700 off_t i, n; -
branches/eam_branches/ohana.20160226/src/relphot/src/StarOps.c
r39377 r39420 443 443 // NOTE: here 'catalog' is a pointer to a specific catalog, not the root of the array 444 444 int setMrel_catalog (Catalog *catalog, int Nc, int pass, FlatCorrectionTable *flatcorr, SetMrelInfo *results, int Nsecfilt) { 445 OHANA_UNUSED_PARAM(catalog); 446 OHANA_UNUSED_PARAM(Nc); 447 OHANA_UNUSED_PARAM(pass); 448 OHANA_UNUSED_PARAM(flatcorr); 449 OHANA_UNUSED_PARAM(results); 450 OHANA_UNUSED_PARAM(Nsecfilt); 445 451 446 452 fprintf (stderr, "??? should you still be using the old version of setMrel_catalog??\n"); -
branches/eam_branches/ohana.20160226/src/relphot/src/plotstuff.c
r38466 r39420 52 52 53 53 void JpegPlot (Graphdata *graphmode, int N, char *filename) { 54 OHANA_UNUSED_PARAM(graphmode); 54 55 55 56 if (Xgraph[N] == 0) return; … … 60 61 61 62 void PSPlot (Graphdata *graphmode, int N, char *filename) { 63 OHANA_UNUSED_PARAM(graphmode); 62 64 63 65 if (Xgraph[N] == 0) return; … … 93 95 94 96 void PlotVector (int Npts, double *vect, int mode, int N, char *type) { 97 OHANA_UNUSED_PARAM(mode); 95 98 96 99 float *values; -
branches/eam_branches/ohana.20160226/src/relphot/src/setMrelCatalog.c
r39377 r39420 719 719 // analysis is done on flux, not mags (as the faintest objects will be nearly insignificant) 720 720 int setMrelAverageForcedWarp (Catalog *catalog, int cat, off_t ave, int Nsecfilt, FlatCorrectionTable *flatcorr, SetMrelInfo *results) { 721 OHANA_UNUSED_PARAM(flatcorr); 721 722 722 723 // we are guaranteed to have average, measure, secfilt -
branches/eam_branches/ohana.20160226/src/relphot/src/share_mean_mags.c
r37037 r39420 64 64 65 65 int slurp_mean_mags (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop) { 66 OHANA_UNUSED_PARAM(Ncatalog); 66 67 67 68 off_t i; -
branches/eam_branches/ohana.20160226/src/relphot/src/synthetic_mags.c
r35416 r39420 18 18 19 19 int add_synthetic_mags (AverageTiny *average, SecFilt *secfilt, MeasureTiny *measure, off_t *Nmeasure, off_t *Nm) { 20 OHANA_UNUSED_PARAM(average); 20 21 21 22 if (!SyntheticPhotometry) return TRUE; -
branches/eam_branches/ohana.20160226/src/skycalc/src/astro.c
r27491 r39420 1 1 # include <skycalc_internal.h> 2 # define UNUSED_PARAM(x)(void)(x) 2 3 3 4 /* Takes a coordinate pair and precesses it using matrix procedures … … 104 105 equatorial (all assumed of date.) */ 105 106 void SC_eclrot(double jd, double *x, double *y, double *z) { 107 UNUSED_PARAM(x); 106 108 107 109 double incl; … … 112 114 113 115 incl = (23.439291 + T * (-0.0130042 - 0.00000016 * T))/DEG_IN_RADIAN; 114 /* 1992 Astron Almanac, p. B18, dropping the115 cubic term, which is 2 milli-arcsec! */116 /* 1992 Astron Almanac, p. B18, dropping the 117 cubic term, which is 2 milli-arcsec! */ 116 118 ypr = cos(incl) * *y - sin(incl) * *z; 117 119 zpr = sin(incl) * *y + cos(incl) * *z; 118 120 *y = ypr; 119 121 *z = zpr; 120 /* x remains the same. */122 /* x remains the same. */ 121 123 } 122 124 123 125 /* Given a julian date in 1900-2100, returns the correction 124 delta t which is:125 TDT - UT (after 1983 and before 1993)126 ET - UT (before 1983)127 an extrapolated guess (after 1993).126 delta t which is: 127 TDT - UT (after 1983 and before 1993) 128 ET - UT (before 1983) 129 an extrapolated guess (after 1993). 128 130 129 For dates in the past (<= 1993) the value is linearly130 interpolated on 5-year intervals; for dates after the present,131 an extrapolation is used, because the true value of delta t132 cannot be predicted precisely. Note that TDT is essentially the133 modern version of ephemeris time with a slightly cleaner134 definition.131 For dates in the past (<= 1993) the value is linearly 132 interpolated on 5-year intervals; for dates after the present, 133 an extrapolation is used, because the true value of delta t 134 cannot be predicted precisely. Note that TDT is essentially the 135 modern version of ephemeris time with a slightly cleaner 136 definition. 135 137 136 Where the algorithm shifts there is an approximately 0.1 second137 discontinuity. Also, the 5-year linear interpolation scheme can138 lead to errors as large as 0.5 seconds in some cases, though139 usually rather smaller. */138 Where the algorithm shifts there is an approximately 0.1 second 139 discontinuity. Also, the 5-year linear interpolation scheme can 140 lead to errors as large as 0.5 seconds in some cases, though 141 usually rather smaller. */ 140 142 141 143 double SC_etcorr (double jd) { -
branches/eam_branches/ohana.20160226/src/tools/src/list_astro.c
r12333 r39420 2 2 3 3 int main (int argc, char **argv) { 4 OHANA_UNUSED_PARAM(argv); 4 5 5 6 float *ra1, *ra2, *dec1, *dec2; -
branches/eam_branches/ohana.20160226/src/uniphot/src/update_catalog_setphot.c
r39288 r39420 2 2 3 3 void update_catalog_setphot (Catalog *catalog, Image *image, off_t *index, off_t Nimage, CamPhotomCorrection *camcorr) { 4 OHANA_UNUSED_PARAM(Nimage); 4 5 5 6 off_t i, found; -
branches/eam_branches/ohana.20160226/src/uniphot/src/update_catalog_setposangle.c
r34844 r39420 2 2 3 3 void update_catalog_setposangle (Catalog *catalog, ImageSubset *image, off_t *index, off_t Nimage) { 4 OHANA_UNUSED_PARAM(Nimage); 4 5 5 6 float posAngle, pltScale;
Note:
See TracChangeset
for help on using the changeset viewer.
