casagui.data.casaimage

image utilities

Functions

new(pattern, path[, overwrite])

Create a new image using pattern as a pattern. pattern supplies the

shape(path)

Return the shape of an image.

Package Contents

casagui.data.casaimage.new(pattern, path, overwrite=False)

Create a new image using pattern as a pattern. pattern supplies the shape for the new image as well as the coordinate system for the new image.

Parameters:
  • path (str) – path to the image to be created

  • pattern (str) – path to the image on which the new image should be based

  • overwrite (bool) – overwrite any existing image, directory or file

casagui.data.casaimage.shape(path)

Return the shape of an image.

Parameters:

path (str) – path to the image

Returns:

shape of image

Return type:

list of int