ngcasa.imaging.make_pb

make_pb(img_xds, pb_parms, grid_parms, sel_parms)[source]

The make_pb function currently supports rotationally symmetric airy disk primary beams. Primary beams can be generated for any number of dishes. The make_pb_parms[‘list_dish_diameters’] and make_pb_parms[‘list_blockage_diameters’] must be specified for each dish.

Parameters
  • img_xds (xarray.core.dataset.Dataset) – Input image dataset.

  • pb_parms (dictionary) –

  • pb_parms['list_dish_diameters'] (list of number) – The list of dish diameters.

  • = list of number (pb_parms['list_blockage_diameters']) – The list of blockage diameters for each dish.

  • pb_parms['function'] ({'casa_airy','airy'}, default='casa_airy') – Only the airy disk function is currently supported.

  • grid_parms (dictionary) –

  • grid_parms['image_size'] (list of int, length = 2) – The image size (no padding).

  • grid_parms['cell_size'] (list of number, length = 2, units = arcseconds) – The image cell size.

  • grid_parms['chan_mode'] ({'continuum'/'cube'}, default = 'continuum') – Create a continuum or cube image.

  • grid_parms['fft_padding'] (number, acceptable range [1,100], default = 1.2) – The factor that determines how much the gridded visibilities are padded before the fft is done.

  • sel_parms (dictionary) –

  • = 'PB' (sel_parms['pb']) – The created PB name.

Returns

img_xds

Return type

xarray.core.dataset.Dataset