IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39420


Ignore:
Timestamp:
Mar 1, 2016, 11:35:02 AM (10 years ago)
Author:
eugene
Message:

list unused parameters

Location:
branches/eam_branches/ohana.20160226/src
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/relphot/src/GridOps.c

    r37037 r39420  
    3838
    3939void initGrid (int dX, int dY) {
     40  OHANA_UNUSED_PARAM(dX);
     41  OHANA_UNUSED_PARAM(dY);
    4042
    4143  int i, N, ccdnum_max, refX, refY, refBin;
  • branches/eam_branches/ohana.20160226/src/relphot/src/ImageOps.c

    r39377 r39420  
    413413// NOTE: static flat-field component is included in measure.Mflat
    414414float getMcal (off_t meas, int cat, FlatCorrectionTable *flatcorr, Catalog *catalog) {
     415  OHANA_UNUSED_PARAM(flatcorr);
     416  OHANA_UNUSED_PARAM(catalog);
    415417
    416418  off_t i;
     
    437439// NOTE: static flat-field component is included in measure.Mflat
    438440float 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);
    439444
    440445  off_t i;
     
    562567
    563568float getMflat (off_t meas, int cat, FlatCorrectionTable *flatcorr, Catalog *catalog) {
     569  OHANA_UNUSED_PARAM(flatcorr);
    564570
    565571  off_t i = MeasureToImage[cat][meas];
     
    842848static int setMcal_init_done = FALSE;
    843849void plot_setMcal (double *list, int Npts, StatType *stats, float clouds) {
     850  OHANA_UNUSED_PARAM(stats);
     851  OHANA_UNUSED_PARAM(clouds);
    844852
    845853  off_t i;
     
    10231031
    10241032StatType statsImageX (Catalog *catalog) {
     1033  OHANA_UNUSED_PARAM(catalog);
    10251034
    10261035  off_t i, n;
     
    10551064
    10561065StatType statsImageM (Catalog *catalog) {
     1066  OHANA_UNUSED_PARAM(catalog);
    10571067
    10581068  off_t i, n;
     
    10871097
    10881098StatType statsImagedM (Catalog *catalog) {
     1099  OHANA_UNUSED_PARAM(catalog);
    10891100
    10901101  off_t i, n;
  • branches/eam_branches/ohana.20160226/src/relphot/src/MosaicOps.c

    r39377 r39420  
    501501
    502502void setMosaicCenters (Image *image, off_t Nimage) {
     503  OHANA_UNUSED_PARAM(Nimage);
    503504
    504505  /* find max dR, dD range for all mosaics */
     
    596597
    597598void initMosaicGrid (Image *image, off_t Nimage) {
     599  OHANA_UNUSED_PARAM(Nimage);
    598600
    599601  /* find max dR, dD range for all mosaics */
     
    15801582
    15811583StatType statsMosaicM (Catalog *catalog) {
     1584  OHANA_UNUSED_PARAM(catalog);
    15821585
    15831586  off_t i;
     
    16121615
    16131616StatType statsMosaicdM (Catalog *catalog) {
     1617  OHANA_UNUSED_PARAM(catalog);
    16141618
    16151619  off_t i, n;
     
    16921696
    16931697StatType statsMosaicX (Catalog *catalog) {
     1698  OHANA_UNUSED_PARAM(catalog);
    16941699
    16951700  off_t i, n;
  • branches/eam_branches/ohana.20160226/src/relphot/src/StarOps.c

    r39377 r39420  
    443443// NOTE: here 'catalog' is a pointer to a specific catalog, not the root of the array
    444444int 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);
    445451
    446452  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  
    5252
    5353void JpegPlot (Graphdata *graphmode, int N, char *filename) {
     54  OHANA_UNUSED_PARAM(graphmode);
    5455
    5556  if (Xgraph[N] == 0) return;
     
    6061
    6162void PSPlot (Graphdata *graphmode, int N, char *filename) {
     63  OHANA_UNUSED_PARAM(graphmode);
    6264
    6365  if (Xgraph[N] == 0) return;
     
    9395
    9496void PlotVector (int Npts, double *vect, int mode, int N, char *type) {
     97  OHANA_UNUSED_PARAM(mode);
    9598
    9699  float *values;
  • branches/eam_branches/ohana.20160226/src/relphot/src/setMrelCatalog.c

    r39377 r39420  
    719719// analysis is done on flux, not mags (as the faintest objects will be nearly insignificant)
    720720int setMrelAverageForcedWarp (Catalog *catalog, int cat, off_t ave, int Nsecfilt, FlatCorrectionTable *flatcorr, SetMrelInfo *results) {
     721  OHANA_UNUSED_PARAM(flatcorr);
    721722
    722723  // we are guaranteed to have average, measure, secfilt
  • branches/eam_branches/ohana.20160226/src/relphot/src/share_mean_mags.c

    r37037 r39420  
    6464
    6565int slurp_mean_mags (Catalog *catalog, int Ncatalog, RegionHostTable *regionHosts, int nloop) {
     66  OHANA_UNUSED_PARAM(Ncatalog);
    6667
    6768  off_t i;
  • branches/eam_branches/ohana.20160226/src/relphot/src/synthetic_mags.c

    r35416 r39420  
    1818
    1919int add_synthetic_mags (AverageTiny *average, SecFilt *secfilt, MeasureTiny *measure, off_t *Nmeasure, off_t *Nm) {
     20  OHANA_UNUSED_PARAM(average);
    2021
    2122  if (!SyntheticPhotometry) return TRUE;
  • branches/eam_branches/ohana.20160226/src/skycalc/src/astro.c

    r27491 r39420  
    11# include <skycalc_internal.h>
     2# define UNUSED_PARAM(x)(void)(x)
    23
    34/* Takes a coordinate pair and precesses it using matrix procedures
     
    104105   equatorial (all assumed of date.) */
    105106void SC_eclrot(double jd, double *x, double *y, double *z) {
     107  UNUSED_PARAM(x);
    106108
    107109  double incl;
     
    112114
    113115  incl = (23.439291 + T * (-0.0130042 - 0.00000016 * T))/DEG_IN_RADIAN;
    114   /* 1992 Astron Almanac, p. B18, dropping the
    115      cubic term, which is 2 milli-arcsec! */
     116/* 1992 Astron Almanac, p. B18, dropping the
     117   cubic term, which is 2 milli-arcsec! */
    116118  ypr = cos(incl) * *y - sin(incl) * *z;
    117119  zpr = sin(incl) * *y + cos(incl) * *z;
    118120  *y = ypr;
    119121  *z = zpr;
    120   /* x remains the same. */
     122/* x remains the same. */
    121123}
    122124
    123125/* 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).
    128130
    129      For dates in the past (<= 1993) the value is linearly
    130      interpolated on 5-year intervals; for dates after the present,
    131      an extrapolation is used, because the true value of delta t
    132      cannot be predicted precisely.  Note that TDT is essentially the
    133      modern version of ephemeris time with a slightly cleaner
    134      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.
    135137
    136      Where the algorithm shifts there is an approximately 0.1 second
    137      discontinuity.  Also, the 5-year linear interpolation scheme can
    138      lead to errors as large as 0.5 seconds in some cases, though
    139      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. */
    140142
    141143double SC_etcorr (double jd) {
  • branches/eam_branches/ohana.20160226/src/tools/src/list_astro.c

    r12333 r39420  
    22
    33int main (int argc, char **argv) {
     4  OHANA_UNUSED_PARAM(argv);
    45
    56  float *ra1, *ra2, *dec1, *dec2;
  • branches/eam_branches/ohana.20160226/src/uniphot/src/update_catalog_setphot.c

    r39288 r39420  
    22
    33void update_catalog_setphot (Catalog *catalog, Image *image, off_t *index, off_t Nimage, CamPhotomCorrection *camcorr) {
     4  OHANA_UNUSED_PARAM(Nimage);
    45
    56  off_t i, found;
  • branches/eam_branches/ohana.20160226/src/uniphot/src/update_catalog_setposangle.c

    r34844 r39420  
    22
    33void update_catalog_setposangle (Catalog *catalog, ImageSubset *image, off_t *index, off_t Nimage) {
     4  OHANA_UNUSED_PARAM(Nimage);
    45
    56  float posAngle, pltScale;
Note: See TracChangeset for help on using the changeset viewer.