Opened 15 years ago

Closed 14 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 Changed 15 years ago by Malte Marquarding

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

comment:2 Changed 15 years ago by Malte Marquarding

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 Changed 15 years ago by Malte Marquarding

See also changeset:1599

comment:4 Changed 14 years ago by Malte Marquarding

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