import astroquery
import astropy
from astropy import units as u
from astropy import coordinates
from astroquery.alma import Alma,utils
astroquery.__version__, astropy.__version__
('0.3.dev2853', u'1.1.dev12270')
result = utils.make_finder_chart('Cartwheel',
10*u.arcmin,
'Cartwheel_10arcmin_2MASS',
service_kwargs={'survey':['2MASS-K'],
'pixels':1000})
images, catalog, hit_mask_public, hit_mask_private = result
INFO:astropy:Querying <bound method SkyViewClass.get_images of <astroquery.skyview.core.SkyViewClass object at 0x10a87b510>> for images WARNING: AstropyDeprecationWarning: Since 0.4, config parameter 'astropy.utils.data.REMOTE_TIMEOUT' is deprecated. Use 'astropy.utils.data.conf.remote_timeout' instead. [astropy.config.configuration] WARNING:astropy:AstropyDeprecationWarning: Since 0.4, config parameter 'astropy.utils.data.REMOTE_TIMEOUT' is deprecated. Use 'astropy.utils.data.conf.remote_timeout' instead.
INFO: Querying <bound method SkyViewClass.get_images of <astroquery.skyview.core.SkyViewClass object at 0x10a87b510>> for images [astroquery.alma.utils] INFO
FITS files must be read as binaries; error is likely. INFO:astropy:Querying ALMA around Cartwheel
: Querying ALMA around Cartwheel [astroquery.alma.utils] INFO
INFO:astropy:The bands used include: Band ---- 3 INFO:astropy:BAND 3 INFO:astropy:PUBLIC: Number of rows: 0. Unique pointings: 0 INFO:astropy:PRIVATE: Number of rows: 35. Unique pointings: 26 WARNING: AstropyDeprecationWarning: The ascard function is deprecated and may be removed in a future version. Use the `.cards` attribute instead. [astropy.utils.decorators] WARNING:astropy:AstropyDeprecationWarning: The ascard function is deprecated and may be removed in a future version. Use the `.cards` attribute instead. WARNING: AstropyDeprecationWarning: The CardList class has been deprecated; all its former functionality has been subsumed by the Header class, so CardList objects should not be directly created. See the PyFITS 3.1.0 CHANGELOG for more details. [astropy.io.fits.card] WARNING:astropy:AstropyDeprecationWarning: The CardList class has been deprecated; all its former functionality has been subsumed by the Header class, so CardList objects should not be directly created. See the PyFITS 3.1.0 CHANGELOG for more details. WARNING: AstropyDeprecationWarning: The ascard function is deprecated and may be removed in a future version. Use the `.cards` attribute instead. [astropy.utils.decorators] WARNING:astropy:AstropyDeprecationWarning: The ascard function is deprecated and may be removed in a future version. Use the `.cards` attribute instead.
: The bands used include: Band ---- 3 [astroquery.alma.utils] INFO: BAND 3 [astroquery.alma.utils] INFO: PUBLIC: Number of rows: 0. Unique pointings: 0 [astroquery.alma.utils] INFO: PRIVATE: Number of rows: 35. Unique pointings: 26 [astroquery.alma.utils] INFO
/Users/adam/repos/aplpy/aplpy/labels.py:432: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if self.coord == x or self.axis.apl_tick_positions_world[ipos] > 0: INFO:astropy:Auto-setting vmin to 4.205e+02 INFO:astropy:Auto-setting vmax to 4.266e+02
: Auto-setting vmin to 4.205e+02 [aplpy.core] INFO: Auto-setting vmax to 4.266e+02 [aplpy.core]
public_data = Alma.query_object('Cartwheel', public=True, science=True)
public_data
Project code | Source name | RA | Dec | Band | Frequency resolution | Integration | Release date | Frequency support | Velocity resolution | Pol products | Observation date | PI name | PWV | Member ous id | Asdm uid | Project title | Project type | Scan intent |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
deg | deg | kHz | s | GHz | m / s | mm | ||||||||||||
string128 | string2048 | float64 | float64 | int32 | float64 | float64 | object | string21600 | float64 | string512 | object | string2048 | float32 | string256 | string256 | string2048 | string128 | string2048 |
2012.1.00720.S | Cartwheel | 9.4097673411098928 | -33.720264117243602 | 3 | 31250.0 | 314.12400000000002 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.35486936172083 | XX YY | 2013-12-15 00:07:52 | Higdon, James | 2.257741 | uid://A002/X6444ba/Xd5 | uid://A002/X75bfbf/X465 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.409774545710393 | -33.712624610036144 | 3 | 31250.0 | 314.12400000000002 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.35486936172083 | XX YY | 2013-12-15 00:07:52 | Higdon, James | 2.257741 | uid://A002/X6444ba/Xd5 | uid://A002/X75bfbf/X465 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.409774724084313 | -33.720150555555556 | 3 | 31250.0 | 207.21899999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26179717857326 | XX YY | 2013-07-08 09:46:01 | Higdon, James | 4.3619614 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1b1e | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.409774724084313 | -33.720150555555556 | 3 | 31250.0 | 207.37799999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26184946975104 | XX YY | 2013-07-08 10:52:30 | Higdon, James | 4.3704424 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1c87 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.409774724084313 | -33.712511666666664 | 3 | 31250.0 | 207.21899999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26179717857326 | XX YY | 2013-07-08 09:46:01 | Higdon, James | 4.3619614 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1b1e | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.409774724084313 | -33.712511666666664 | 3 | 31250.0 | 207.37799999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26184946975104 | XX YY | 2013-07-08 10:52:30 | Higdon, James | 4.3704424 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1c87 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4098533460283491 | -33.720236536888805 | 3 | 31250.0 | 314.41199999999998 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.354474479092 | XX YY | 2013-12-13 22:10:53 | Higdon, James | 5.0233626 | uid://A002/X6444ba/Xd5 | uid://A002/X75ab74/X2d4 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.409857009692379 | -33.712595806072684 | 3 | 31250.0 | 314.41199999999998 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.354474479092 | XX YY | 2013-12-13 22:10:53 | Higdon, James | 5.0233626 | uid://A002/X6444ba/Xd5 | uid://A002/X75ab74/X2d4 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4098581503367598 | -33.720233719540737 | 3 | 31250.0 | 314.14800000000002 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.35447646452599 | XX YY | 2013-12-14 22:03:44 | Higdon, James | 3.5234337 | uid://A002/X6444ba/Xd5 | uid://A002/X75bfbf/X79 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
2012.1.00720.S | Cartwheel | 9.4281381864752376 | -33.71262487033087 | 3 | 31250.0 | 314.12400000000002 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.35486936172083 | XX YY | 2013-12-15 00:07:52 | Higdon, James | 2.257741 | uid://A002/X6444ba/Xd5 | uid://A002/X75bfbf/X465 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4281402479200871 | -33.720263671883501 | 3 | 31250.0 | 314.12400000000002 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.35486936172083 | XX YY | 2013-12-15 00:07:52 | Higdon, James | 2.257741 | uid://A002/X6444ba/Xd5 | uid://A002/X75bfbf/X465 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4281419425823554 | -33.720150555555556 | 3 | 31250.0 | 207.21899999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26179717857326 | XX YY | 2013-07-08 09:46:01 | Higdon, James | 4.3619614 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1b1e | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4281419425823554 | -33.720150555555556 | 3 | 31250.0 | 207.37799999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26184946975104 | XX YY | 2013-07-08 10:52:30 | Higdon, James | 4.3704424 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1c87 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4281419425823554 | -33.712511666666664 | 3 | 31250.0 | 207.21899999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26179717857326 | XX YY | 2013-07-08 09:46:01 | Higdon, James | 4.3619614 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1b1e | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4281419425823554 | -33.712511666666664 | 3 | 31250.0 | 207.37799999999999 | 2015-04-09 | [98.14..100.12GHz,31250.00kHz, XX YY] U [100.14..102.12GHz,31250.00kHz, XX YY] U [111.66..112.13GHz,244.14kHz, XX YY] | 654.26184946975104 | XX YY | 2013-07-08 10:52:30 | Higdon, James | 4.3704424 | uid://A002/X6444ba/Xd5 | uid://A002/X6a533e/X1c87 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4282230760167547 | -33.712596068544642 | 3 | 31250.0 | 314.41199999999998 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.354474479092 | XX YY | 2013-12-13 22:10:53 | Higdon, James | 5.0233626 | uid://A002/X6444ba/Xd5 | uid://A002/X75ab74/X2d4 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4282248641034432 | -33.720234283216612 | 3 | 31250.0 | 314.41199999999998 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.354474479092 | XX YY | 2013-12-13 22:10:53 | Higdon, James | 5.0233626 | uid://A002/X6444ba/Xd5 | uid://A002/X75ab74/X2d4 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4282267323469249 | -33.712593826847275 | 3 | 31250.0 | 314.14800000000002 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.35447646452599 | XX YY | 2013-12-14 22:03:44 | Higdon, James | 3.5234337 | uid://A002/X6444ba/Xd5 | uid://A002/X75bfbf/X79 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
2012.1.00720.S | Cartwheel | 9.4282267547495753 | -33.720233324543628 | 3 | 31250.0 | 314.14800000000002 | 2015-04-09 | [98.12..100.10GHz,31250.00kHz, XX YY] U [100.12..102.10GHz,31250.00kHz, XX YY] U [111.64..112.11GHz,244.14kHz, XX YY] | 654.35447646452599 | XX YY | 2013-12-14 22:03:44 | Higdon, James | 3.5234337 | uid://A002/X6444ba/Xd5 | uid://A002/X75bfbf/X79 | The ``Over-Cooked'' ISM in the Cartwheel Ring Galaxy | S | TARGET WVR |
data_info = Alma().stage_data(public_data[0]['Member ous id'])
data = Alma.download_and_extract_files(data_info[0]['URL'])
INFO:astropy:Staging files...
INFO: Staging files... [astroquery.alma.core] ..INFO
INFO:astropy:Downloading 2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar...
: Downloading 2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar... [astroquery.query] Downloading URL https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar/2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar ... [Done]
INFO:astropy:Extracting 2012.1.00720.S/science_goal.uid___A002_X6444ba_Xd3/group.uid___A002_X6444ba_Xd4/member.uid___A002_X6444ba_Xd5/product/Cartwheel_cont.fits to /Users/adam/.astropy/cache/astroquery/Alma INFO:astropy:Extracting 2012.1.00720.S/science_goal.uid___A002_X6444ba_Xd3/group.uid___A002_X6444ba_Xd4/member.uid___A002_X6444ba_Xd5/product/Cartwheel_CO.fits to /Users/adam/.astropy/cache/astroquery/Alma
INFO: Extracting 2012.1.00720.S/science_goal.uid___A002_X6444ba_Xd3/group.uid___A002_X6444ba_Xd4/member.uid___A002_X6444ba_Xd5/product/Cartwheel_cont.fits to /Users/adam/.astropy/cache/astroquery/Alma [astroquery.alma.core] INFO: Extracting 2012.1.00720.S/science_goal.uid___A002_X6444ba_Xd3/group.uid___A002_X6444ba_Xd4/member.uid___A002_X6444ba_Xd5/product/Cartwheel_CO.fits to /Users/adam/.astropy/cache/astroquery/Alma [astroquery.alma.core] INFO
INFO:astropy:Deleting /Users/adam/.astropy/cache/astroquery/Alma/2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar
: Deleting /Users/adam/.astropy/cache/astroquery/Alma/2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar [astroquery.alma.core]
data_info
URL | uid | size |
---|---|---|
Gbyte | ||
unicode5696 | unicode1664 | float64 |
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar/2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar | 2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar | 0.9147 |
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X6a533e_X1b1e/2012.1.00720.S_uid___A002_X6a533e_X1b1e.asdm.sdm.tar | 2012.1.00720.S_uid___A002_X6a533e_X1b1e.asdm.sdm.tar | 7.3 |
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X6a533e_X1c87/2012.1.00720.S_uid___A002_X6a533e_X1c87.asdm.sdm.tar | 2012.1.00720.S_uid___A002_X6a533e_X1c87.asdm.sdm.tar | 7.3 |
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X75ab74_X2d4/2012.1.00720.S_uid___A002_X75ab74_X2d4.asdm.sdm.tar | 2012.1.00720.S_uid___A002_X75ab74_X2d4.asdm.sdm.tar | 11.0 |
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X75bfbf_X465/2012.1.00720.S_uid___A002_X75bfbf_X465.asdm.sdm.tar | 2012.1.00720.S_uid___A002_X75bfbf_X465.asdm.sdm.tar | 9.7 |
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X75bfbf_X79/2012.1.00720.S_uid___A002_X75bfbf_X79.asdm.sdm.tar | 2012.1.00720.S_uid___A002_X75bfbf_X79.asdm.sdm.tar | 9.7 |
import aplpy
F = aplpy.FITSFigure(data[0])
F.show_grayscale()
INFO:astropy:Setting slices=[0, 0]
INFO: Setting slices=[0, 0] [aplpy.core] INFO
INFO:astropy:Auto-setting vmin to -5.403e-05 INFO:astropy:Auto-setting vmax to 5.518e-05
: Auto-setting vmin to -5.403e-05 [aplpy.core] INFO: Auto-setting vmax to 5.518e-05 [aplpy.core]
/Users/adam/repos/aplpy/aplpy/normalize.py:115: RuntimeWarning: invalid value encountered in less negative = result < 0.
from spectral_cube import SpectralCube
cube = SpectralCube.read(data[1])
m0 = cube.moment0(axis=0)
m0.quicklook()
Could not parse unit JY/BEAM Could not parse unit JY/BEAM INFO:astropy:Auto-setting vmin to -1.209e+05 INFO:astropy:Auto-setting vmax to 2.213e+05
INFO: Auto-setting vmin to -1.209e+05 [aplpy.core] INFO: Auto-setting vmax to 2.213e+05 [aplpy.core]
cube
SpectralCube with shape=(65, 300, 300): n_x: 300 type_x: RA---SIN unit_x: deg n_y: 300 type_y: DEC--SIN unit_y: deg n_s: 65 type_s: FREQ unit_s: Hz
cube[:,150,140].quicklook()
cube.with_spectral_unit(u.km/u.s, velocity_convention='radio')[:,150,140].quicklook()
Could not parse unit JY/BEAM