diff --git a/postprocessor.py b/postprocessor.py index 680dbc1..56bd1c5 100644 --- a/postprocessor.py +++ b/postprocessor.py @@ -394,10 +394,10 @@ class PostProcessor(HDF5Container): def getter_pos_disk(self, dset): """ - Returns the position in normalized units centered on the position of the star + Returns the position in normalized and centered units """ pos = dset.points - pos = pos - (np.array(self.pp_params.disk.pos_star) / self.lbox) + pos = pos - np.array(self.save.root.maps._v_attrs.center) return pos def getter_vect_r(self, dset, name_vect):