Opened 15 years ago

Closed 15 years ago

#170 closed defect (fixed)

provide access to coordinate information in python

Reported by: Cormac.Purcell@… 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 Malte Marquarding, 15 years ago

The (undocumented implementation is in changeset:1598. Look at the log message for details.

comment:2 by Malte Marquarding, 15 years ago

Status: newassigned

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:3 by Malte Marquarding, 15 years ago

See also changeset:1599

comment:4 by Malte Marquarding, 15 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.