- Timestamp:
- Sep 11, 2014, 3:39:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/opihi/cmd.astro/region.c
r36489 r37386 80 80 if (!ohana_str_to_radec (&Ra, &Dec, argv[1], argv[2])) return (FALSE); 81 81 Radius = atof (argv[3]); 82 strcpy (graphmode.coords.ctype, "DEC--TAN"); 82 InitCoords (&graphmode.coords, "DEC--TAN"); 83 83 84 if (argc == 5) { 84 85 if (!strcasecmp (argv[4], "TAN")) … … 99 100 strcpy (graphmode.coords.ctype, "DEC--PAR"); 100 101 } 102 103 graphmode.coords.crval1 = Ra; 104 graphmode.coords.crval2 = Dec; 101 105 102 106 graphmode.coords.pc1_1 = (graphmode.flipeast) ? -1 : 1; 107 graphmode.coords.pc2_2 = (graphmode.flipnorth) ? -1 : 1; 108 103 109 /* ask kapa for coordinate limits, to get the right aspect ratio */ 104 110 KapaGetLimits (kapa, &dx, &dy); … … 132 138 set_int_variable ("NORTH_UP", !graphmode.flipnorth); 133 139 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 144 140 if (!NoClear) KapaClearSections (kapa); 145 141 KapaSetLimits (kapa, &graphmode);
Note:
See TracChangeset
for help on using the changeset viewer.
