Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0fba68d861+8e4a2760f9,g1ec0fe41b4+3ea9d11450,g1fd858c14a+3f2e8fb4ee,g2440f9efcc+8c5ae1fdc5,g35bb328faa+8c5ae1fdc5,g4d2262a081+6617b489e2,g53246c7159+8c5ae1fdc5,g55585698de+c901811295,g56a49b3a55+f42f167f24,g60b5630c4e+c901811295,g67b6fd64d1+3fc8cb0b9e,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g8352419a5c+8c5ae1fdc5,g8852436030+23a2163ad3,g8869f962bc+9743d83811,g89139ef638+3fc8cb0b9e,g94187f82dc+c901811295,g989de1cb63+3fc8cb0b9e,g9d31334357+c901811295,g9f33ca652e+90b8cadf48,gabe3b4be73+8856018cbb,gabf8522325+977d9fabaf,gae5fe98123+65ba0d7b48,gb1101e3267+d2a4d34c5e,gb89ab40317+3fc8cb0b9e,gc91f06edcd+2f65d60c96,gcf25f946ba+23a2163ad3,gd6cbbdb0b4+1cc2750d2e,gdb1c4ca869+be65c9c1d7,gde0f65d7ad+3d3fc0fc97,ge278dab8ac+6b863515ed,ge410e46f29+3fc8cb0b9e,gf35d7ec915+97dd712d81,gf5e32f922b+8c5ae1fdc5,gf618743f1b+fc35190cc0,gf67bdafdda+3fc8cb0b9e,gf974705667+de8e3777d4,w.2025.19
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
lsst.geom._Box.Box2I Class Reference

Public Member Functions

 grid (self, dtype=np.int32)
 

Detailed Description

Definition at line 31 of file _Box.py.

Member Function Documentation

◆ grid()

lsst.geom._Box.Box2I.grid ( self,
dtype = np.int32 )
Return pair of arrays with the centers of all pixels in the box.

Parameters
----------
dtype : convertible to `numpy.dtype`
    The data type of the returned arrays.

Returns
-------
x : `numpy.ndarray`
    Array with shape `(self.height, self.width)` containing x
    coordinate values.
y : `numpy.ndarray`
    Array with shape `(self.height, self.width)` containing x
    coordinate values.

Definition at line 33 of file _Box.py.

33 def grid(self, dtype=np.int32):
34 """Return pair of arrays with the centers of all pixels in the box.
35
36 Parameters
37 ----------
38 dtype : convertible to `numpy.dtype`
39 The data type of the returned arrays.
40
41 Returns
42 -------
43 x : `numpy.ndarray`
44 Array with shape `(self.height, self.width)` containing x
45 coordinate values.
46 y : `numpy.ndarray`
47 Array with shape `(self.height, self.width)` containing x
48 coordinate values.
49 """
50 return np.meshgrid(self.x.arange(dtype=dtype), self.y.arange(dtype=dtype))

The documentation for this class was generated from the following file: