Opened 13 years ago

Last modified 13 years ago

#228 new defect

sub-scantables in scantable

Reported by: kuiper@… Owned by: Malte Marquarding
Priority: normal Milestone: Unified development
Component: General Version: 2.0
Severity: normal Keywords:
Cc:

Description

Reading a 50 row SDFITS extension into asap resulted in 45 'scans' but three of them are mini-scantables. However, all the get_[something]() methods return 50 values consistent with the SDFITS original. Only getscannos() gives a list of scans that can be fetched with get_scan() and that summary() will show.

Also something funny happens with the scan numbers, which go from 0 to 51 (instead of 49) with gaps not related to the scan grouping into miniscans.

I will attach a more detailed discussion and the SDFITS file.

Attachments (2)

scantable_behaviour (4.0 KB) - added by kuiper@… 13 years ago.
more detailed description with asap outputs
1990_146.fits (75.9 KB) - added by anonymous 13 years ago.
SDFITS file showing sub-scantabling behaviour

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by kuiper@…

Attachment: scantable_behaviour added

more detailed description with asap outputs

Changed 13 years ago by anonymous

Attachment: 1990_146.fits added

SDFITS file showing sub-scantabling behaviour

comment:1 Changed 13 years ago by kuiper@…

This is a managable problem if one knows two things:

scantable() does not reject bad scans (e.g. all data values the same) but makes them invisible to get_scan(), summary() and getscannos(). The bad scans will show up, for example, in get_sourcename() as "" and get_direction() as (0.0,0.0). This is also the situation in which I got scans lumped together. Keeping bad scans out of the SDFITS files fixed that.

I don't know what scantable() does with the original scan numbers but you can't count on the new scans numbers, starting from zero, to be contiguous. There may be missing numbers. To select a scan by index, you need to do get_scan(list(getscannos())[index]). Alternately, to get information about RVSYS for 'scan' from the pyfits bintable, you would do hdu[1].data(list(getscannos()).index(scan)).field('RVSYS').

Don't count on the python examples being 100% correct but you get the idea. It works for me.

Note: See TracTickets for help on using tickets.