@@ -124,17 +124,17 @@ def to_signatures(self, pixels: "Pixels") -> Signatures:
124124
125125 def to_subarray (self , pixels : "Pixels" ) -> NDArray [np .floating [Any ]]:
126126 image_arr = self .to_numpy ()
127- u_max = pixels .u ().max ()
128- u_min = pixels .u ().min ()
129- v_max = pixels .v ().max ()
130- v_min = pixels .v ().min ()
127+ u_max = pixels .x ().max ()
128+ u_min = pixels .x ().min ()
129+ v_max = pixels .y ().max ()
130+ v_min = pixels .y ().min ()
131131 # create new image
132132 image_arr_area = np .nan * np .ones ((int (v_max - v_min + 1 ), int (u_max - u_min + 1 ), self .bands ))
133133 # convert original coordinates to coordinates for new image
134- v_norm = pixels .v () - v_min
135- u_norm = pixels .u () - u_min
134+ v_norm = pixels .y () - v_min
135+ u_norm = pixels .x () - u_min
136136 # write values from original image to new image
137- image_arr_area [v_norm , u_norm , :] = image_arr [pixels .v (), pixels .u (), :]
137+ image_arr_area [v_norm , u_norm , :] = image_arr [pixels .y (), pixels .x (), :]
138138 return image_arr_area
139139
140140 def mean (self , axis : int | tuple [int , ...] | Sequence [int ] | None = None ) -> float | NDArray [np .floating [Any ]]:
0 commit comments