Next / Previous / Contents / NM Tech homepage

6.27. CBCData.getCircle(): Retrieve a specific circle

pycbc.py
# - - -   C B C D a t a . g e t C i r c l e

    def getCircle(self, lat, lon):
        '''Retrieve a specific circle row.
        '''
        row = self.s.query(self.Circle).get((lat, lon))
        if row is None:
            raise KeyError("Unknown circle center: %sn %sw" %
                           (lat, lon))
        else:            
            return row