- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/opihi/dvo/avextract.c
r24233 r27840 3 3 int avextract (int argc, char **argv) { 4 4 5 int i, j, n, m, N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack; 5 off_t i, j, n, m; 6 int N, Npts, NPTS, last, next, state, Nfields, Nreturn, Ncstack, Nstack; 6 7 int Nsecfilt, mode, VERBOSE; 7 8 char **cstack, name[1024]; … … 79 80 80 81 /* create output storage vectors */ 82 Npts = 0; 83 NPTS = 100; 81 84 ALLOCATE (values, dbValue, Nfields); 82 85 ALLOCATE (vec, Vector *, Nreturn); … … 90 93 ResetVector (vec[i], fields[i].type, NPTS); 91 94 } 92 93 Npts = 0;94 NPTS = 1;95 95 96 96 // grab data from all selected sky regions … … 103 103 catalog.Nsecfilt = 0; 104 104 105 if (VERBOSE) gprint (GP_ERR, "trying %s (% d of %d)\n", catalog.filename, i,skylist[0].Nregions);105 if (VERBOSE) gprint (GP_ERR, "trying %s (%lld of %lld)\n", catalog.filename, (long long) i, (long long) skylist[0].Nregions); 106 106 107 107 // an error exit status here is a significant error … … 182 182 183 183 if ((argc > N + 1) && !strcasecmp (argv[N+1], "fields")) { 184 gprint (GP_ERR, " USAGE: avextract field[,field,field...] where (expression)\n");185 184 gprint (GP_ERR, " RA : right ascension (J2000) [degrees]\n"); 186 185 gprint (GP_ERR, " DEC : declination [degrees]\n"); 186 gprint (GP_ERR, " GLON : galactic longitude [degrees]\n"); 187 gprint (GP_ERR, " GLAT : galactic latitude [degrees]\n"); 188 gprint (GP_ERR, " ELON : ecliptic longitude [degrees]\n"); 189 gprint (GP_ERR, " ELAT : ecliptic latitude [degrees]\n"); 187 190 gprint (GP_ERR, " dRA : ra scatter [degrees]\n"); 188 191 gprint (GP_ERR, " dDEC : dec scatter [degrees]\n"); … … 193 196 gprint (GP_ERR, " PAR : parallax\n"); 194 197 gprint (GP_ERR, " dPAR : parallax error \n"); 195 gprint (GP_ERR, " nmeas : number of measurements\n"); 196 gprint (GP_ERR, " nmiss : number of non-detections\n"); 197 gprint (GP_ERR, " xp : positional raw chi-square\n"); 198 gprint (GP_ERR, " flag : object flags\n"); 198 199 gprint (GP_ERR, " ChiSqPos : chi square of position fit \n"); 200 gprint (GP_ERR, " ChiSqPM : chi square of proper-motion fit \n"); 201 gprint (GP_ERR, " ChiSqPar : chi square of parallax fit \n"); 202 203 gprint (GP_ERR, " Tmean : mean epoch (reference for proper motion)\n"); 204 gprint (GP_ERR, " Trange : range of times used for proper motion/parallax fit\n"); 205 206 gprint (GP_ERR, " Nmeas : number of measurements\n"); 207 gprint (GP_ERR, " Nmiss : number of non-detections\n"); 208 gprint (GP_ERR, " Npos : number of measurments used for astrometry\n"); 209 gprint (GP_ERR, " Nastrom : number of measurments used for astrometry (= Npos)\n"); 210 211 gprint (GP_ERR, " flags : object flags\n"); 212 gprint (GP_ERR, " objflags : object flags\n"); 213 gprint (GP_ERR, " obj_flags : object flags\n"); 214 215 gprint (GP_ERR, " objID : object ID (32 bit, unique in catalog)\n"); 216 gprint (GP_ERR, " catID : catalog ID (32 bit)\n"); 217 gprint (GP_ERR, " extID_hi : external ID (upper 32 of 64 bit) -- eg, PSPS ID\n"); 218 gprint (GP_ERR, " extID_lo : external ID (lower 32 of 64 bit) -- eg, PSPS ID\n"); 219 199 220 gprint (GP_ERR, " <photcode>:ave : average magnitude for <photcode>\n"); 200 221 gprint (GP_ERR, " <photcode>:ref : reference magnitude system for <photcode>\n"); … … 206 227 gprint (GP_ERR, " <photcode>:err : magnitude error for photcode\n"); 207 228 gprint (GP_ERR, " <photcode>:chisq : raw chi-square of magnitude fit\n"); 208 gprint (GP_ERR, " type : dophot type (unused)\n"); 209 gprint (GP_ERR, " typefrac : dophot type fraction (unused)\n"); 210 gprint (GP_ERR, " <photcode>:ncode : number of measurements in photcode \n"); 211 gprint (GP_ERR, " <photcode>:nphot : number of measurements used for photcode average\n"); 229 gprint (GP_ERR, " <photcode>:ncode : number of measurements matching photcode \n"); 230 gprint (GP_ERR, " <photcode>:nphot : number of measurements used for average magnitude in this photcode\n"); 231 232 // gprint (GP_ERR, " Xp : NOT VALID\n"); 233 // gprint (GP_ERR, " type : dophot type (unused)\n"); 234 // gprint (GP_ERR, " typefrac : dophot type fraction (unused)\n"); 212 235 return (FALSE); 213 236 }
Note:
See TracChangeset
for help on using the changeset viewer.
