Changeset 42426
- Timestamp:
- Mar 18, 2023, 9:50:53 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/Ohana/src/opihi/dvo/avselect.c
r41341 r42426 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.
