Opened 12 years ago

Last modified 12 years ago

#271 closed enhancement

Enable plotting spectra by sky position (from CAS-1814) — at Version 2

Reported by: Kana Sugimoto Owned by: Kana Sugimoto
Priority: normal Milestone: Unified development
Component: General Version: 2.0
Severity: normal Keywords:
Cc:

Description (last modified by Kana Sugimoto)

  • enable plotting spectra based on their sky positions.
  • users should be able to specify grid center, spacing, and the spatial extent over which the spectra should be sampled.

Change History (2)

comment:1 by Kana Sugimoto, 12 years ago

Status: newassigned

comment:2 by Kana Sugimoto, 12 years ago

Description: modified (diff)

Date: 2012/06/26, 2012/07/17, 19
Rev.: 2576, 2600, 2602
Codes: asapplotter.py

Added a new method plotgrid in the asapplotter module.
asapplotter.plotgrid(scantable=None, center=None, spacing=None, rows=None, cols=None)

It plots the spectra in scantable based on sky position (stored in DIRECTION column).
This method doesn't grid spectra in a scantable. It just simply samples spectra in a scantable, based on parameter values specified by users, i.e., center, spacing, row, and cols. You may want to grid scantable using asapgrid module before plotting by this method.
Below is the descriptions of the parameters:

  • center: a list of R.A. and Dec. which specifies the center of directions to be plotted in the direction frame and unit of DIRECTION column, e.g., [-1.309, 0.5236] (rad) for "J2000 19h00m00 30d00m00" (default: average direction if scantable.)
  • spacing: a list of R.A. and Dec. spacing by which spectra are sampled in the unit of DIRECTION column, e.g, [0.000291,0.00291] (rad) for 1arcmin spacing. (default: extent of DIRECTION / number of rows or cols)
  • rows & cols: the number of panels to plot (sample) in R.A. and Dec. (default: the value set by set_layout or if not set, rows = cols = 1)

NOTE: center and spacing should be specified in the original unit and direction frame of DIRECTION column in scantable.

Also note that stacking is not supported in this method. Currently only the first IFNO and POLNO in the scantable is plotted. You can plot the other IF and/or polarization by selecting the proper ID before plotting.

Note: See TracTickets for help on using tickets.