Opened 15 years ago
Closed 14 years ago
#170 closed defect (fixed)
provide access to coordinate information in python
Reported by: | Owned by: | Malte Marquarding | |
---|---|---|---|
Priority: | normal | Milestone: | ASAP 2.4 |
Component: | General | Version: | 2.0 |
Severity: | normal | Keywords: | coordinates, python |
Cc: |
Description
We need a way to get hold of the (spectral) coordinate information in python, to support calculation outside of scantable
.
Change History (4)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Status: | new → assigned |
---|
Usage:
s = scantable('abc.rpf') row = 0 coord = s.get_coordinate(0) print coord.get_reference_value() bandwith = coord.get_increment()*s.nchan(row)
Beware the fact that as soon as you perform any frequency modifying function on the scantable
you need to get_coordinate()
again.
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
The (undocumented implementation is in changeset:1598. Look at the log message for details.