generate_xy#
- xrayvision.transform.generate_xy(number_pixels, center=<Quantity 0. arcsec>, pixel_size=<Quantity 1. arcsec>)[source]#
Generate the x or y coordinates given the number of pixels, center and pixel size.
- Parameters:
- Returns:
numpy.array
– The generated x, y coordinates
See also
None
Generates corresponding coordinates but un u, v space
Examples
>>> generate_xy(9) <Quantity [-4., -3., -2., -1., 0., 1., 2., 3., 4.] arcsec>
>>> generate_xy(9, pixel_size=2.5 * apu.arcsec) <Quantity [-10. , -7.5, -5. , -2.5, 0. , 2.5, 5. , 7.5, 10. ] arcsec>
>>> generate_xy(9, center=10 * apu.arcsec, pixel_size=2.5 * apu.arcsec) <Quantity [ 0. , 2.5, 5. , 7.5, 10. , 12.5, 15. , 17.5, 20. ] arcsec>