Loading csst_mci_sim/csst_mci_sim.py +9 −9 Original line number Diff line number Diff line Loading @@ -741,8 +741,8 @@ def centroid(data): ------- cx: the centroid column number, in horizontal direction definet in python image show cy: the centroid row number , in vertical direction ''' ################# ''' ### ### from scipy import ndimage cy, cx = ndimage.center_of_mass(data) Loading Loading @@ -1036,7 +1036,7 @@ class MCIsimulator(): Creates lensing parameters; """ ############################# self.image_g = np.zeros( (self.information['ysize'], self.information['xsize']), dtype=float) self.image_r = np.zeros( Loading Loading @@ -3239,7 +3239,7 @@ class MCIsimulator(): #### ofd_g = fits.PrimaryHDU() #### World coordinate system and related parameters ##### # World coordinate system and related parameters ##### hdu_g = fits.ImageHDU(data) hdu_g.header['WCSAXES'] = (np.int16(2), 'number of WCS axes') Loading Loading
csst_mci_sim/csst_mci_sim.py +9 −9 Original line number Diff line number Diff line Loading @@ -741,8 +741,8 @@ def centroid(data): ------- cx: the centroid column number, in horizontal direction definet in python image show cy: the centroid row number , in vertical direction ''' ################# ''' ### ### from scipy import ndimage cy, cx = ndimage.center_of_mass(data) Loading Loading @@ -1036,7 +1036,7 @@ class MCIsimulator(): Creates lensing parameters; """ ############################# self.image_g = np.zeros( (self.information['ysize'], self.information['xsize']), dtype=float) self.image_r = np.zeros( Loading Loading @@ -3239,7 +3239,7 @@ class MCIsimulator(): #### ofd_g = fits.PrimaryHDU() #### World coordinate system and related parameters ##### # World coordinate system and related parameters ##### hdu_g = fits.ImageHDU(data) hdu_g.header['WCSAXES'] = (np.int16(2), 'number of WCS axes') Loading