Fix width_min handling in RegionGeom.to_wcs_geom()
@@ -315,7 +315,7 @@ class RegionGeom(Geom):
A WCS geometry object.
"""
if width_min is not None:
- width = np.min([self.width.to_value("deg"), _check_width(width_min)], axis=0)
+ width = np.max([self.width.to_value("deg"), _check_width(width_min)], axis=0)
else:
width = self.width
wcs_geom_region = WcsGeom(wcs=self.wcs, npix=self.wcs.array_shape)
