Opened 13 years ago

Closed 12 years ago

#240 closed defect (fixed)

statistic mode in asapplotter raises an error when specunit != 'channel'

Reported by: Kana Sugimoto Owned by: Kana Sugimoto
Priority: normal Milestone: Unified development
Component: python Version: 2.0
Severity: normal Keywords: CASA / asapplotter
Cc:

Description

Statistic mode in the single dish plotter raises an error in an occation, i.e., (1) specunit is set to one other than 'channel' and (2) a selected region to calculate statistics doesn't overwrap spectral range of IF0. This is a bug in asap plotter.

Change History (3)

comment:1 Changed 13 years ago by Kana Sugimoto

Status: newassigned

comment:2 Changed 13 years ago by Kana Sugimoto

Commit Date: 2011/05/18 Commit Number: 2172 @atnf Modfied file(s): customgui_base.py, customgui_qt4agg.py, customgui_tkagg.py

ASAP plotter prints statistics (max/min/median/mean/sum/stddev) of spectra only in a selected subplot. The previous behavior was printing stats of all spectra in scantable, which caused the error.

The stats are calculated based on numpy functions, and I found numpy.median(MaskedArray?) often returns NaN as a result. Need more investigations.

comment:3 Changed 12 years ago by Kana Sugimoto

Resolution: fixed
Status: assignedclosed

I forgot to close this ticket.
After a while, I tested numpy.median(MaskedArray??) again but could not reporduce NaN anymore.

Note: See TracTickets for help on using tickets.