LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
lsst.scarlet.lite.models.parametric.CartesianFrame Class Reference
Inheritance diagram for lsst.scarlet.lite.models.parametric.CartesianFrame:
lsst.scarlet.lite.models.parametric.EllipseFrame

Public Member Functions

 __init__ (self, Box bbox)
 
tuple[int,...] shape (self)
 
Box bbox (self)
 
np.ndarray x_grid (self)
 
np.ndarray y_grid (self)
 

Protected Attributes

 _bbox
 
 _x
 
 _y
 
 _r
 
 _r2
 

Detailed Description

A grid of X and Y values contained in a bbox

Definition at line 60 of file parametric.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.scarlet.lite.models.parametric.CartesianFrame.__init__ ( self,
Box bbox )
Parameters
----------
bbox: Box
    The bounding box that contains this frame.

Reimplemented in lsst.scarlet.lite.models.parametric.EllipseFrame.

Definition at line 63 of file parametric.py.

63 def __init__(self, bbox: Box):
64 """
65 Parameters
66 ----------
67 bbox: Box
68 The bounding box that contains this frame.
69 """
70 # Store the new bounding box
71 self._bbox = bbox
72 # Get the range of x and y
73 yi, xi = bbox.start[-2:]
74 yf, xf = bbox.stop[-2:]
75 height, width = bbox.shape[-2:]
76 y = np.linspace(yi, yf - 1, height)
77 x = np.linspace(xi, xf - 1, width)
78 # Create the grid used to create the image of the frame
79 self._x, self._y = np.meshgrid(x, y)
80 self._r = None
81 self._r2 = None
82

Member Function Documentation

◆ bbox()

Box lsst.scarlet.lite.models.parametric.CartesianFrame.bbox ( self)
Bounding box containing the frame

Reimplemented in lsst.scarlet.lite.models.parametric.EllipseFrame.

Definition at line 89 of file parametric.py.

89 def bbox(self) -> Box:
90 """Bounding box containing the frame"""
91 return self._bbox
92
AmpInfoBoxKey bbox
Definition Amplifier.cc:117

◆ shape()

tuple[int, ...] lsst.scarlet.lite.models.parametric.CartesianFrame.shape ( self)
Shape of the frame.

Definition at line 84 of file parametric.py.

84 def shape(self) -> tuple[int, ...]:
85 """Shape of the frame."""
86 return self._bbox.shape
87

◆ x_grid()

np.ndarray lsst.scarlet.lite.models.parametric.CartesianFrame.x_grid ( self)
The grid of x-values for the entire frame

Definition at line 94 of file parametric.py.

94 def x_grid(self) -> np.ndarray:
95 """The grid of x-values for the entire frame"""
96 return self._x
97

◆ y_grid()

np.ndarray lsst.scarlet.lite.models.parametric.CartesianFrame.y_grid ( self)
The grid of y-values for the entire frame

Definition at line 99 of file parametric.py.

99 def y_grid(self) -> np.ndarray:
100 """The grid of y-values for the entire frame"""
101 return self._y
102
103

Member Data Documentation

◆ _bbox

lsst.scarlet.lite.models.parametric.CartesianFrame._bbox
protected

Definition at line 71 of file parametric.py.

◆ _r

lsst.scarlet.lite.models.parametric.CartesianFrame._r
protected

Definition at line 80 of file parametric.py.

◆ _r2

lsst.scarlet.lite.models.parametric.CartesianFrame._r2
protected

Definition at line 81 of file parametric.py.

◆ _x

lsst.scarlet.lite.models.parametric.CartesianFrame._x
protected

Definition at line 79 of file parametric.py.

◆ _y

lsst.scarlet.lite.models.parametric.CartesianFrame._y
protected

Definition at line 79 of file parametric.py.


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