How to use the pyephem.separation function in pyephem

To help you get started, we’ve selected a few pyephem examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github HERA-Team / aipy / sim.py View on Github external
def response(self, azalt, pol='x'):
        """Return the total antenna response to a source at azalt=(az, alt),
        including beam response, per-frequency gain, and a phase offset."""
        zang = ephem.separation(self.pointing, azalt)
        beam_resp = self.beam.response(zang, azalt[0], pol=pol)
        return beam_resp * self.gain

pyephem

Empty package that depends on "ephem"

LGPL-3.0
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis