Changeset 40574 for trunk/Ohana/src/libdvo
- Timestamp:
- Dec 5, 2018, 11:39:29 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/src/dbCmdlineFields.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/dbCmdlineFields.c
r34088 r40574 125 125 // get the ra,dec limits... 126 126 if (selection->useDisplay) { 127 return (TRUE);127 // return (TRUE); 128 128 // XXX fix this: be more careful with the projection & limits 129 129 … … 134 134 } 135 135 136 double Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax)); 137 Dmin = graphsky.coords.crval2 - Radius; 138 Dmax = graphsky.coords.crval2 + Radius; 139 140 if ((Dmin <= -89) || (Dmax >= 89)) { 141 Rmin = 0; 142 Rmax = 360; 143 } else { 144 double Rmod = MAX (Radius / (cos(Dmin*RAD_DEG)), Radius / (cos(Dmax*RAD_DEG))); 145 Rmin = graphsky.coords.crval1 - Rmod; 146 Rmax = graphsky.coords.crval1 + Rmod; 147 } 136 148 // XXX the ra and dec range depend on the projection. 137 149 // XXX this is wrong... 138 150 // int status; 139 XY_to_RD (&Rmin, &Dmin, graphsky.xmin, graphsky.ymin, &graphsky.coords);140 XY_to_RD (&Rmax, &Dmax, graphsky.xmax, graphsky.ymax, &graphsky.coords);151 // XY_to_RD (&Rmin, &Dmin, graphsky.xmin, graphsky.ymin, &graphsky.coords); 152 // XY_to_RD (&Rmax, &Dmax, graphsky.xmax, graphsky.ymax, &graphsky.coords); 141 153 } 142 154
Note:
See TracChangeset
for help on using the changeset viewer.
