IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 11:13:15 AM (18 years ago)
Author:
eugene
Message:

allow functions to use FLT or INT vectors as appropriate; document valid types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/dvo/calmextract.c

    r20839 r20859  
    3838  if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape;
    3939
     40  gprint (GP_ERR, "warning: this function may be deprecated in the future -- use avextract for better control\n");
     41
    4042  /* returned vectors are dmag, mag, color, time, airmass, ra, dec, x, y, exptime */
    41   N = 0;
    42   Nstar = 0;
    43   NSTAR = 100;
    4443  ALLOCATE (vec, Vector *, NVEC);
    4544  if ((vec[Nd ] = SelectVector ("cal:dmag",     ANYVECTOR, TRUE)) == NULL) goto escape;
     
    6059  if ((vec[Nd1] = SelectVector ("cal:dm1",      ANYVECTOR, TRUE)) == NULL) goto escape;
    6160  if ((vec[Nd2] = SelectVector ("cal:dm2",      ANYVECTOR, TRUE)) == NULL) goto escape;
     61
     62  N = 0;
     63  Nstar = 0;
     64  NSTAR = 100;
    6265  for (k = 0; k < NVEC; k++) {
    63     REALLOCATE (vec[k][0].elements.Flt, opihi_flt, NSTAR);
    64     vec[k][0].Nelements = 0;
     66    ResetVector (vec[k], OPIHI_FLT, NSTAR);
    6567  }
    6668
Note: See TracChangeset for help on using the changeset viewer.