Changeset 41158 for trunk/Ohana/src/opihi/cmd.astro/cdensify.c
- Timestamp:
- Nov 27, 2019, 11:04:04 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/cdensify.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/cdensify.c
r39294 r41158 39 39 } 40 40 41 int binning = 1; 42 if ((N = get_argument (argc, argv, "-binning"))) { 43 remove_argument (N, &argc, argv); 44 binning = atoi(argv[N]); 45 remove_argument (N, &argc, argv); 46 } 47 41 48 int PSFTYPE = IS_DOT; 42 49 if ((N = get_argument (argc, argv, "-psf"))) { … … 80 87 Ymax = graphmode.ymax; 81 88 Ymin = graphmode.ymin; 82 dX = (Xmax - Xmin) / (Xpix - 1); 83 dY = (Ymax - Ymin) / (Ypix - 1); 89 90 // (dX, dY) are the pixel scale of the output image (output pixels / input pixels) 91 92 dX = binning * (Xmax - Xmin) / (Xpix - 1); 93 dY = binning * (Ymax - Ymin) / (Ypix - 1); 84 94 85 95 CHECKVAL(Xmin);
Note:
See TracChangeset
for help on using the changeset viewer.
