physical_region

sitelle.region.physical_region(cube, ra, dec, r=2, circle=True, sex=True, centered=True)

Computes a physical region on a sitelle cube. If circle = True (Default), it’s a circulare region centered on ra,dec. Otherwise, (ra,dec) are the coordinates of the bottom left corner of a square region

Parameters:
  • cube (SpectralCube) – The cube under consideration
  • ra (str or float) – right ascension in sexagesimal in format ‘xx:xx:xx’ if sex = True, else in degrees
  • dec (str or float) – declinaison in sexagesimal in format ‘xx:xx:xx’ if sex = True, else in degrees
  • r (float) – radius in pixels of the circle if circle=True, else size of the square
  • circle (bool, Default = True) – (Optional) If True, circular region, otherwise square
  • sex (bool, Default = True) – (Optional) If True, ra,dec expected to be in sexagesimal, otherwise in degrees
  • centered (bool, Default = True) – (Optional) If True, the square is a centered square
Returns:

region – The corresponding region

Return type:

tuple