Skip to content

Commit c7e2df5

Browse files
committed
Add example to for refining cutout by channel range
1 parent b0a89ed commit c7e2df5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/casda/casda.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,23 @@ is shown below:
176176
>>> url_list = casda.cutout(eridanus_cube, coordinates=centre, radius=9*u.arcmin, band=freq)
177177
>>> filelist = casda.download_files(url_list, savedir='/tmp')
178178

179+
An example script to download a 3D cutout from the WALLABY Pre-Pilot Eridanus cube at a specified position within a
180+
specified channel is shown below:
181+
182+
.. doctest-skip::
183+
184+
>>> from astropy import coordinates, units as u, wcs
185+
>>> from astroquery.casda import Casda
186+
>>> centre = coordinates.SkyCoord.from_name('NGC 1371')
187+
>>> casda = Casda()
188+
>>> casda.login(username='[email protected]')
189+
>>> result = Casda.query_region(centre, radius=30*u.arcmin)
190+
>>> public_data = Casda.filter_out_unreleased(result)
191+
>>> eridanus_cube = public_data[public_data['filename'] == 'Eridanus_full_image_V3.fits']
192+
>>> channel = channel(5, 10)
193+
>>> url_list = casda.cutout(eridanus_cube, coordinates=centre, channel)
194+
>>> filelist = casda.download_files(url_list, savedir='/tmp')
195+
179196

180197
Reference/API
181198
=============

0 commit comments

Comments
 (0)