Opened 16 years ago
Closed 16 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 by , 16 years ago
comment:2 by , 16 years ago
| 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 by , 16 years ago
| 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.