Skip to content

Commit

Permalink
added get_ENU_antpos() to tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
nkern authored and bhazelton committed Nov 18, 2017
1 parent ff8bb90 commit 09a74ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/tutorial.rst
Expand Up @@ -166,7 +166,6 @@ Making a simple waterfall plot::
>>> plt.imshow(np.abs(UV.get_data((1, 2, UV.polarization_array[0])))) # doctest: +SKIP
>>> plt.show() # doctest: +SKIP


UVData: Location conversions
-----------------------
A number of conversion methods exist to map between different coordinate systems for locations on the earth.
Expand All @@ -175,13 +174,18 @@ a) Getting antenna positions in topocentric frame in units of meters
***************
::

# directly from UVData object
>>> uvd = UVData()
>>> uvd.read_miriad('pyuvdata/data/new.uvA')
>>> antpos, ants = uvd.get_ENU_antpos()

# using uvutils
>>> from pyuvdata import uvutils, UVData
>>> uvd = UVData()
>>> uvd.read_miriad('pyuvdata/data/new.uvA')
>>> antpos = uvd.antenna_positions + uvd.telescope_location # get antennas positions in ECEF
>>> antpos = uvutils.ENU_from_ECEF(antpos.T, *uvd.telescope_location_lat_lon_alt).T # convert to topo (ENU) coords.


UVData: Quick data access
-----------------------
A small suite of functions are available to quickly access numpy arrays of data,
Expand Down

0 comments on commit 09a74ba

Please sign in to comment.