xpipe.xhandle.xwrap.CatRotator¶
- class xpipe.xhandle.xwrap.CatRotator(fname, seed=5, e_inds=(3, 4))[source]¶
Loads shear catalog, and saves a randomly rotated version
- Parameters
fname (str) – path to the shear catalog (ascii format)
seed (int) – random seed for rotation
e_inds (list) – inxed for :c;Pode:e1 and
e2
column of the shear catalog
Notes
Steps:
read catalog from ascii file
rotate catalog based on random seed
write catalog to file. The output file name is defined by the prefix:
rot_seed' + str(self.seed) + '_'
The rotated catalog file is later deleted after the calculations finished