IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 2:46:46 PM (18 years ago)
Author:
eugene
Message:

set vectors to use INT or FLT types as needed; cleanup type information in dbStack (use enum)

File:
1 edited

Legend:

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

    r20857 r20860  
    8888
    8989  /* create storage vector */
     90  Npts = 0;
     91  NPTS = 1000;
    9092  ALLOCATE (values, dbValue, Nfields);
    9193  ALLOCATE (vec, Vector *, Nreturn);
     
    9799    }
    98100    if ((vec[i] = SelectVector (name, ANYVECTOR, TRUE)) == NULL) goto escape;
    99     ResetVector (vec[i], fields[i].type, NNN);
    100   }
    101 
    102   Npts = 0;
    103   NPTS = 1;
     101    ResetVector (vec[i], fields[i].type, NPTS);
     102  }
    104103
    105104  // grab data from all selected sky regions
     
    166165
    167166  for (n = 0; n < Nreturn; n++) {
    168     vec[n][0].Nelements = Npts;
    169     REALLOCATE (vec[n][0].elements.Flt, opihi_flt, MAX(1,Npts));
     167    ResetVector (vec[n], fields[n].type, MAX(1,Npts));
    170168  }
    171169
Note: See TracChangeset for help on using the changeset viewer.