In [1]:
import astroquery
import astropy
from astropy import units as u
from astropy import coordinates
from astroquery.alma import Alma,utils
In [2]:
astroquery.__version__, astropy.__version__
Out[2]:
('0.3.dev2853', u'1.1.dev12270')
In [3]:
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]
In [4]:
public_data = Alma.query_object('Cartwheel', public=True, science=True)
public_data
Out[4]:
<Table masked=True length=35>
Project codeSource nameRADecBandFrequency resolutionIntegrationRelease dateFrequency supportVelocity resolutionPol productsObservation datePI namePWVMember ous idAsdm uidProject titleProject typeScan intent
degdegkHzsGHzm / smm
string128string2048float64float64int32float64float64objectstring21600float64string512objectstring2048float32string256string256string2048string128string2048
2012.1.00720.SCartwheel9.4097673411098928-33.720264117243602331250.0314.124000000000022015-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.35486936172083XX YY2013-12-15 00:07:52Higdon, James2.257741uid://A002/X6444ba/Xd5uid://A002/X75bfbf/X465The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.409774545710393-33.712624610036144331250.0314.124000000000022015-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.35486936172083XX YY2013-12-15 00:07:52Higdon, James2.257741uid://A002/X6444ba/Xd5uid://A002/X75bfbf/X465The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.409774724084313-33.720150555555556331250.0207.218999999999992015-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.26179717857326XX YY2013-07-08 09:46:01Higdon, James4.3619614uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1b1eThe ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.409774724084313-33.720150555555556331250.0207.377999999999992015-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.26184946975104XX YY2013-07-08 10:52:30Higdon, James4.3704424uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1c87The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.409774724084313-33.712511666666664331250.0207.218999999999992015-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.26179717857326XX YY2013-07-08 09:46:01Higdon, James4.3619614uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1b1eThe ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.409774724084313-33.712511666666664331250.0207.377999999999992015-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.26184946975104XX YY2013-07-08 10:52:30Higdon, James4.3704424uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1c87The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4098533460283491-33.720236536888805331250.0314.411999999999982015-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.354474479092XX YY2013-12-13 22:10:53Higdon, James5.0233626uid://A002/X6444ba/Xd5uid://A002/X75ab74/X2d4The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.409857009692379-33.712595806072684331250.0314.411999999999982015-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.354474479092XX YY2013-12-13 22:10:53Higdon, James5.0233626uid://A002/X6444ba/Xd5uid://A002/X75ab74/X2d4The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4098581503367598-33.720233719540737331250.0314.148000000000022015-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.35447646452599XX YY2013-12-14 22:03:44Higdon, James3.5234337uid://A002/X6444ba/Xd5uid://A002/X75bfbf/X79The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
.........................................................
2012.1.00720.SCartwheel9.4281381864752376-33.71262487033087331250.0314.124000000000022015-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.35486936172083XX YY2013-12-15 00:07:52Higdon, James2.257741uid://A002/X6444ba/Xd5uid://A002/X75bfbf/X465The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4281402479200871-33.720263671883501331250.0314.124000000000022015-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.35486936172083XX YY2013-12-15 00:07:52Higdon, James2.257741uid://A002/X6444ba/Xd5uid://A002/X75bfbf/X465The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4281419425823554-33.720150555555556331250.0207.218999999999992015-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.26179717857326XX YY2013-07-08 09:46:01Higdon, James4.3619614uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1b1eThe ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4281419425823554-33.720150555555556331250.0207.377999999999992015-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.26184946975104XX YY2013-07-08 10:52:30Higdon, James4.3704424uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1c87The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4281419425823554-33.712511666666664331250.0207.218999999999992015-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.26179717857326XX YY2013-07-08 09:46:01Higdon, James4.3619614uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1b1eThe ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4281419425823554-33.712511666666664331250.0207.377999999999992015-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.26184946975104XX YY2013-07-08 10:52:30Higdon, James4.3704424uid://A002/X6444ba/Xd5uid://A002/X6a533e/X1c87The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4282230760167547-33.712596068544642331250.0314.411999999999982015-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.354474479092XX YY2013-12-13 22:10:53Higdon, James5.0233626uid://A002/X6444ba/Xd5uid://A002/X75ab74/X2d4The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4282248641034432-33.720234283216612331250.0314.411999999999982015-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.354474479092XX YY2013-12-13 22:10:53Higdon, James5.0233626uid://A002/X6444ba/Xd5uid://A002/X75ab74/X2d4The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4282267323469249-33.712593826847275331250.0314.148000000000022015-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.35447646452599XX YY2013-12-14 22:03:44Higdon, James3.5234337uid://A002/X6444ba/Xd5uid://A002/X75bfbf/X79The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
2012.1.00720.SCartwheel9.4282267547495753-33.720233324543628331250.0314.148000000000022015-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.35447646452599XX YY2013-12-14 22:03:44Higdon, James3.5234337uid://A002/X6444ba/Xd5uid://A002/X75bfbf/X79The ``Over-Cooked'' ISM in the Cartwheel Ring GalaxySTARGET WVR
In [5]:
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]
In [6]:
data_info
Out[6]:
<Table masked=False length=6>
URLuidsize
Gbyte
unicode5696unicode1664float64
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.tar2012.1.00720.S_uid___A002_X6444ba_Xd5_001_of_001.tar0.9147
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X6a533e_X1b1e/2012.1.00720.S_uid___A002_X6a533e_X1b1e.asdm.sdm.tar2012.1.00720.S_uid___A002_X6a533e_X1b1e.asdm.sdm.tar7.3
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X6a533e_X1c87/2012.1.00720.S_uid___A002_X6a533e_X1c87.asdm.sdm.tar2012.1.00720.S_uid___A002_X6a533e_X1c87.asdm.sdm.tar7.3
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X75ab74_X2d4/2012.1.00720.S_uid___A002_X75ab74_X2d4.asdm.sdm.tar2012.1.00720.S_uid___A002_X75ab74_X2d4.asdm.sdm.tar11.0
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X75bfbf_X465/2012.1.00720.S_uid___A002_X75bfbf_X465.asdm.sdm.tar2012.1.00720.S_uid___A002_X75bfbf_X465.asdm.sdm.tar9.7
https://almascience.eso.org/dataPortal/requests/anonymous/847440123/ALMA/uid___A002_X75bfbf_X79/2012.1.00720.S_uid___A002_X75bfbf_X79.asdm.sdm.tar2012.1.00720.S_uid___A002_X75bfbf_X79.asdm.sdm.tar9.7
In [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.
In [8]:
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]
In [9]:
cube
Out[9]:
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
In [10]:
cube[:,150,140].quicklook()
In [11]:
cube.with_spectral_unit(u.km/u.s, velocity_convention='radio')[:,150,140].quicklook()
Could not parse unit JY/BEAM