public software.scamp

[/] [trunk/] [src/] [astrefcat.c] - Diff between revs 331 and 334

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 331 Rev 334
Line 20... Line 20...
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*       GNU General Public License for more details.
*       GNU General Public License for more details.
*       You should have received a copy of the GNU General Public License
*       You should have received a copy of the GNU General Public License
*       along with SCAMP. If not, see <http://www.gnu.org/licenses/>.
*       along with SCAMP. If not, see <http://www.gnu.org/licenses/>.
*
*
*       Last modified:          03/06/2015
*       Last modified:          29/06/2015
*
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include        "config.h"
#include        "config.h"
Line 128... Line 128...
        Number of axes (dimensions),
        Number of axes (dimensions),
        Search radius (in degrees).
        Search radius (in degrees).
OUTPUT  Pointer to the reference field.
OUTPUT  Pointer to the reference field.
NOTES   Global preferences are used.
NOTES   Global preferences are used.
AUTHOR  E. Bertin (IAP)
AUTHOR  E. Bertin (IAP)
VERSION 03/06/2015
VERSION 29/06/2015
*/
*/
fieldstruct     *get_astreffield(astrefenum refcat, double *wcspos,
fieldstruct     *get_astreffield(astrefenum refcat, double *wcspos,
                                int lng, int lat, int naxis, double maxradius)
                                int lng, int lat, int naxis, double maxradius)
  {
  {
   fieldstruct  *field,*tfield;
   fieldstruct  *field,*tfield;
Line 226... Line 226...
    strcpy(maglimcmd, "-m&10000000");
    strcpy(maglimcmd, "-m&10000000");
 
 
/// Test all provided servers until one replies
/// Test all provided servers until one replies
  for (s=0; s<prefs.nref_server; s++) {
  for (s=0; s<prefs.nref_server; s++) {
    sprintf(url,
    sprintf(url,
        "http://%s/viz-bin/aserver.cgi?%s&-c&%f12%+f12&-r&%.8g&%s",
        "http://%s/viz-bin/aserver.cgi?%s&-c&%12f%+12f&-r&%.8g&%s",
        prefs.ref_server[s],
        prefs.ref_server[s],
        astrefcat[(int)refcat].cdsname,
        astrefcat[(int)refcat].cdsname,
        wcspos[lng], wcspos[lat],
        wcspos[lng], wcspos[lat],
        maxradius*DEG/ARCMIN,
        maxradius*DEG/ARCMIN,
        maglimcmd);
        maglimcmd);