IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2014, 3:39:54 PM (12 years ago)
Author:
eugene
Message:

adding image maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/opihi/cmd.astro/region.c

    r36489 r37386  
    8080  if (!ohana_str_to_radec (&Ra, &Dec, argv[1], argv[2])) return (FALSE);
    8181  Radius = atof (argv[3]);
    82   strcpy (graphmode.coords.ctype, "DEC--TAN");
     82  InitCoords (&graphmode.coords, "DEC--TAN");
     83
    8384  if (argc == 5) {
    8485    if (!strcasecmp (argv[4], "TAN"))
     
    99100      strcpy (graphmode.coords.ctype, "DEC--PAR");
    100101  }
     102 
     103  graphmode.coords.crval1 = Ra;
     104  graphmode.coords.crval2 = Dec;
    101105
    102  
     106  graphmode.coords.pc1_1 = (graphmode.flipeast) ? -1 : 1;
     107  graphmode.coords.pc2_2 = (graphmode.flipnorth) ? -1 : 1;
     108
    103109  /* ask kapa for coordinate limits, to get the right aspect ratio */
    104110  KapaGetLimits (kapa, &dx, &dy);
     
    132138  set_int_variable ("NORTH_UP", !graphmode.flipnorth);
    133139
    134   graphmode.coords.pc1_1 = (graphmode.flipeast) ? -1 : 1;
    135   graphmode.coords.pc2_2 = (graphmode.flipnorth) ? -1 : 1;
    136 
    137   graphmode.coords.pc1_2 = graphmode.coords.pc2_1 = 0.0;
    138   graphmode.coords.crval1 = Ra;
    139   graphmode.coords.crval2 = Dec;
    140   graphmode.coords.crpix1 = 0.0;
    141   graphmode.coords.crpix2 = 0.0;
    142   graphmode.coords.cdelt1 = graphmode.coords.cdelt2 = 1.0;
    143 
    144140  if (!NoClear) KapaClearSections (kapa);
    145141  KapaSetLimits (kapa, &graphmode);
Note: See TracChangeset for help on using the changeset viewer.