77
88def Mpc_to_arcmin (r_arcmin , redshift_z , cosmo ):
99 """
10- Changes the units of r from Mpc to arcmin.
10+ Changes the units of r from Mpc to arcmin
1111
1212 Parameters:
1313 -----------
1414 r_arcmin: float or array
15- the distance r, in units of arcmin
15+ distance r, in units of arcmin
1616 redshift_z: float
17- the redshift (unitless)
17+ redshift (unitless)
1818 cosmo: FlatLambaCDM instance
1919 background cosmology for density calculation
2020
@@ -31,7 +31,7 @@ def Mpc_to_arcmin(r_arcmin, redshift_z, cosmo):
3131
3232def arcmin_to_Mpc (r_Mpc , redshift_z , cosmo ):
3333 """
34- Changes the units of r from arcmin to Mpc.
34+ Changes the units of r from arcmin to Mpc
3535
3636 Parameters:
3737 -----------
@@ -54,7 +54,7 @@ def arcmin_to_Mpc(r_Mpc, redshift_z, cosmo):
5454
5555def gaussian_kernal (pix_size_arcmin ,beam_size_fwhp_arcmin ):
5656 """
57- Create a Gaussian kernel for the beam.
57+ Create a Gaussian kernel for the beam
5858
5959 Parameters:
6060 -----------
@@ -83,17 +83,17 @@ def gaussian_kernal(pix_size_arcmin,beam_size_fwhp_arcmin):
8383
8484def save_sim_to_h5 (file , name , data , attributes = {}, overwrite = False ):
8585 """
86- Save data to h5 file.
86+ Save data to h5 file
8787
8888 Parameters:
8989 -----------
9090 file: h5py.File
91- The HDF5 file where the data will be saved.
91+ The HDF5 file where the data will be saved
9292 name: str
93- The name under which the data will be stored in the HDF5 file.
93+ The name under which the data will be stored in the HDF5 file
9494 data: dict
9595 A dictionary where keys are dataset names (strings) and values are
96- the corresponding dataset arrays or values.
96+ the corresponding dataset arrays or values
9797
9898 Returns:
9999 --------
0 commit comments