Changeset 42821 for trunk/Ohana/src/opihi/dvo/avselect.c
- Timestamp:
- May 8, 2025, 4:29:52 PM (15 months ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/dvo/avselect.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/dvo/avselect.c
r41341 r42821 17 17 int VERBOSE; 18 18 char name[1024]; 19 float RADIUS;19 opihi_flt RADIUS; 20 20 21 21 Catalog catalog; 22 22 23 23 Vector **vec, **invec, *RAvec, *DECvec, *IDXvec, *RADvec; 24 Vector *RINvec = NULL; 24 25 dbField *fields; 25 26 dbValue *values; … … 102 103 } 103 104 104 RADIUS = atof (argv[1]); 105 106 /* load regions which contain all supplied RA,DEC coordinates */ 105 if (SelectScalar (argv[1], &RADIUS)) { 106 remove_argument (1, &argc, argv); 107 } else { 108 gprint (GP_ERR, " RADIUS must be a numerical value\n"); 109 goto help; 110 if ((RINvec = SelectVector (argv[1], ANYVECTOR, TRUE)) == NULL) goto help; 111 RADIUS = 0.0; // find the max radius for region selection: 112 for (i = 0; i < RINvec->Nelements; i++) { 113 RADIUS = MAX(RINvec->elements.Flt[i], RADIUS); 114 } 115 } 116 117 /* load regions which contain all supplied RA,DEC coordinates (for RINvec, uses max radius) */ 107 118 if ((skylist = SelectRegionsByCoordVectorsAndRadius (RAvec, DECvec, RADIUS/3600.0)) == NULL) goto escape; 108 119 … … 167 178 return status; 168 179 } 169 170 RADIUS = atof (argv[1]);171 remove_argument (1, &argc, argv);172 180 173 181 // parse the fields to be extracted and returned
Note:
See TracChangeset
for help on using the changeset viewer.
