ngcasa.imaging.calc_image_cell_size

calc_image_cell_size(vis_dataset, global_dataset, pixels_per_beam=7)[source]

Calculates the image and and cell size needed for imaging a vis_dataset. It uses the perfectly-illuminated circular aperture approximation to determine the field of view and pixels_per_beam for the cell size.

Parameters
  • vis_dataset (xarray.core.dataset.Dataset) – Input visibility dataset.

  • global_dataset (xarray.core.dataset.Dataset) – Input global dataset (needed for antenna diameter).

Returns

  • imsize (list of ints) – Number of pixels for each spatial dimension.

  • cell (list of ints, units = arcseconds) – Cell size.