In [1]:
from astroquery.alma import Alma
from astropy import coordinates
from astropy import units as u

import numpy as np
import pandas as pd

In [2]:
def query_object(obj, theta = 0.005, science = False, public = True, savedb=False, dbname='calibrators.db'):
    """
    query per object
    obj is an array consist of at least [objname, ra, dec, ...]
    ra and dec are in degrees
    """

    region = coordinates.SkyCoord(obj[1], obj[2], unit='deg')

    alma_data = Alma.query_region(region, theta*u.deg, science = science, public = public)
    # it is in astropy Table format

    df = alma_data.to_pandas() # convert to pandas Dataframe

    #! change Numpy Masked-Array to str, so it can be converted to SQL
    #df['Band'] = df['Band'].astype("str")

    # save the query result in sql database 
    # with Table's name = calibrator's name
    if savedb:
        conn = sql.connect(dbname)
        conn.text_factory = str
        if not df.dropna().empty:
            df.to_sql(obj[0], conn, if_exists='replace') # if the Table exist in the db, just replace it


    return alma_data, df

In [3]:
# from astropy.coordinates import SkyCoord
# c = SkyCoord('11h39m10.7025s', '-13d50m43.639s', frame='icrs')
# c

In [4]:
#obj = ["J1159+2914", 179.88264, 29.245507]
#obj = ["J1130-1449", 172.52938, -14.82427]
#obj = ["J1833-210B", 278.41633, -21.06108]
#obj = ["J0237+2848", 39.468356, 28.802497]
#obj = ["J0006-0623", 1.5578870, -6.393148]
#obj = ["J0601-7036", 90.296866, -70.60244]
#obj = ["J1225+1253", 186.26559, 12.886983]
#obj = ["J1256-0547",194.04652, -5.789312]

#obj = ["J1139-1350", 174.79459375, -13.84545528]
#obj = ['J0541-0211', 85.340401, -2.185662]
#obj = ["J0501-0159", 75.3031, -1.98746]
obj = ["J1232-0224", 188.00006, -2.401331]

In [5]:
table, df = query_object(obj)

In [6]:
df


Out[6]:
Project code Source name RA Dec Galactic longitude Galactic latitude Band Spatial resolution Frequency resolution Array ... Project title Project type Scan intent Field of view Largest angular scale QA2 Status COUNT Science keyword Scientific category ASA_PROJECT_CODE
0 b'2015.1.00820.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [3] 2.344463 488.318833 b'12m' ... b'Dark Matter in Dwarf Galaxies' b'S' b'PHASE WVR' 58.966865 10.858773 b'Y' 0.0 b'Surveys of galaxies' b'Galaxy evolution' b'2015.1.00820.S'
1 b'2015.1.00932.S' b'4C_-02.55' 188.000067 -2.401332 293.156232 60.100915 [6] 0.837670 31251.859217 b'12m' ... b'Measuring the Spectral Evolution, Structure,... b'S' b'TARGET' 27.153557 4.007028 b'Y' 2.0 b'Active Galactic Nuclei (AGN)/Quasars (QSO), ... b'Active galaxies' b'2015.1.00932.S'
2 b'2015.1.00042.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [7] 0.374026 15624.983584 b'12m' ... b'Vibrational H2O emission in NGC 4418: a sear... b'S' b'CHECK WVR' 18.640746 2.602928 b'Y' 0.0 b'Galactic centres/nuclei, Luminous and Ultra-... b'Active galaxies' b'2015.1.00042.S'
3 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [6] 0.178302 31252.986939 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'PHASE WVR' 27.152577 0.777761 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
4 b'2016.1.01481.S' b'4C_-02.55' 188.000054 -2.401335 293.156207 60.100910 [3] 0.929928 31252.927660 b'12m' ... b'Measuring the Spectral Evolution, Structure,... b'S' b'TARGET' 65.282528 4.495095 b'Y' 1.0 b'Active Galactic Nuclei (AGN)/Quasars (QSO)' b'Active galaxies' b'2016.1.01481.S'
5 b'2015.1.00872.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [6] 0.268118 31251.619174 b'12m' ... b'Is the central sub-kiloparsec gas surface-de... b'S' b'PHASE WVR' 28.252058 1.272441 b'Y' 0.0 b'Active Galactic Nuclei (AGN)/Quasars (QSO)' b'Active galaxies' b'2015.1.00872.S'
6 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [7] 0.194333 31251.758384 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'PHASE WVR' 18.393417 0.987576 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
7 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [6] 0.188324 31250.198018 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'PHASE WVR' 27.155000 0.824977 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
8 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [7] 0.211587 31250.304988 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'PHASE WVR' 18.394272 1.049691 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
9 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [7] 0.175958 31252.147284 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'PHASE WVR' 18.393188 0.894197 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
10 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [7] 0.169606 31252.373088 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'CHECK WVR' 18.393055 0.809137 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
11 b'2016.1.01481.S' b'4C_-02.55' 188.000054 -2.401335 293.156207 60.100910 [6] 0.484673 31252.866899 b'12m' ... b'Measuring the Spectral Evolution, Structure,... b'S' b'TARGET' 27.152681 2.389373 b'Y' 1.0 b'Active Galactic Nuclei (AGN)/Quasars (QSO)' b'Active galaxies' b'2016.1.01481.S'
12 b'2015.1.00932.S' b'4C_-02.55' 188.000067 -2.401332 293.156232 60.100915 [3] 0.358851 31251.114942 b'12m' ... b'Measuring the Spectral Evolution, Structure,... b'S' b'TARGET' 65.286315 1.907325 b'Y' 2.0 b'Active Galactic Nuclei (AGN)/Quasars (QSO), ... b'Active galaxies' b'2015.1.00932.S'
13 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [6] 0.287964 31250.326966 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'PHASE WVR' 27.154888 1.463877 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
14 b'2016.1.00691.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [7] 0.182771 31250.513929 b'12m' ... b'Thermal Properties of Icy Satellites' b'S' b'PHASE WVR' 18.394149 0.929123 b'Y' 0.0 b'Solar system - Planetary surfaces' b'Solar system' b'2016.1.00691.S'
15 b'2016.1.01481.S' b'4C_-02.55' 188.000054 -2.401335 293.156207 60.100910 [6] 0.199376 31251.791013 b'12m' ... b'Measuring the Spectral Evolution, Structure,... b'S' b'TARGET' 27.153616 1.092274 b'Y' 1.0 b'Active Galactic Nuclei (AGN)/Quasars (QSO)' b'Active galaxies' b'2016.1.01481.S'
16 b'2016.1.01481.S' b'4C_-02.55' 188.000054 -2.401335 293.156207 60.100910 [3] 0.256369 31251.554160 b'12m' ... b'Measuring the Spectral Evolution, Structure,... b'S' b'TARGET' 65.285398 1.663111 b'Y' 1.0 b'Active Galactic Nuclei (AGN)/Quasars (QSO)' b'Active galaxies' b'2016.1.01481.S'
17 b'2016.1.00387.S' b'J1232-0224' 188.000067 -2.401332 293.156232 60.100915 [4] 0.242052 3906.275995 b'12m' ... b'Spectral Scan on A Compact Obscured Nucleus' b'S' b'CHECK WVR' 42.153674 1.077889 b'Y' 0.0 b'Galaxy chemistry, Luminous and Ultra-Luminou... b'Galaxy evolution' b'2016.1.00387.S'

18 rows × 36 columns


In [7]:
table


Out[7]:
Table masked=True length=18
Project codeSource nameRADecGalactic longitudeGalactic latitudeBandSpatial resolutionFrequency resolutionArrayMosaicIntegrationRelease dateFrequency supportVelocity resolutionPol productsObservation datePI nameSB nameProposal authorsLine sensitivity (10 km/s)Continuum sensitivityPWVGroup ous idMember ous idAsdm uidProject titleProject typeScan intentField of viewLargest angular scaleQA2 StatusCOUNTScience keywordScientific categoryASA_PROJECT_CODE
degdegdegdegkHzsGHzm / smJy/beammmarcsarcs
bytes64bytes256float64float64float64float64objectfloat64float64objectbytes1float64objectbytes2700float64bytes64objectbytes256bytes128bytes512float64float64float32bytes64bytes64bytes32bytes256bytes16bytes256float64float64bytes1int64bytes200bytes200bytes64
2015.1.00820.SJ1232-0224188.00006670833332-2.401331961111111293.156231808325260.10091459062826[3]2.344462925033087488.318832887840512m181.442017-02-22[99.51..101.51GHz,31250.00kHz,2.4mJy/beam@10km/s,99uJy/beam@native, XX YY] U [101.50..103.50GHz,31250.00kHz,2.4mJy/beam@10km/s,100uJy/beam@native, XX YY] U [111.95..113.95GHz,31250.00kHz,2.9mJy/beam@10km/s,127.4uJy/beam@native, XX YY] U [114.15..115.09GHz,488.28kHz,3.6mJy/beam@10km/s,230.9uJy/beam@native, XX YY]1271.9037207481322XX YY2016-01-03 08:46:54Blitz, LeoNGC_4632_a_03_TEBolatto, Alberto; Newman, Andrew; Truong, Mai; Simon, Josh; Plambeck, Richard; wright, melvyn;2.4175975566716560.0594958615780719143.0235512uid://A001/X2f7/X2bcuid://A001/X2f7/X2bduid://A002/Xae75f3/X440aDark Matter in Dwarf GalaxiesSPHASE WVR58.9668648442855610.858773251907962Y0Surveys of galaxiesGalaxy evolution2015.1.00820.S
2015.1.00932.S4C_-02.55188.0000666699434-2.4013316700018565293.156231643935660.10091487258747[6]0.837669688427126931251.85921665783512m181.442017-05-12[223.00..225.00GHz,31250.00kHz,1.9mJy/beam@10km/s,116.1uJy/beam@native, XX YY] U [225.00..227.00GHz,31250.00kHz,2mJy/beam@10km/s,120.1uJy/beam@native, XX YY] U [239.00..241.00GHz,31250.00kHz,1.9mJy/beam@10km/s,122.1uJy/beam@native, XX YY] U [241.00..243.00GHz,31250.00kHz,1.9mJy/beam@10km/s,123.9uJy/beam@native, XX YY]38554.79638620068XX YY2016-03-28 02:04:24Meyer, Eileen4C_-02.5_a_06_TCSparks, William; Biretta, John; Georganopoulos, Markos; Perlman, Eric;1.89990378941946680.060211959154894631.0488178uid://A001/X2f6/X1f8uid://A001/X2f6/X1fbuid://A002/Xb0ebd1/Xb6ccMeasuring the Spectral Evolution, Structure, and Speed of Extragalactic Jets with ALMASTARGET27.1535569147423674.007028146171372Y2Active Galactic Nuclei (AGN)/Quasars (QSO), Outflows, jets, feedbackActive galaxies2015.1.00932.S
2015.1.00042.SJ1232-0224188.0000667083637-2.4013319611115325293.1562318083853760.10091459063243[7]0.3740255759450159515624.9835843943412m241.922017-09-12[331.29..333.19GHz,15625.00kHz,4.4mJy/beam@10km/s,335.6uJy/beam@native, XX YY] U [333.04..334.94GHz,15625.00kHz,4mJy/beam@10km/s,311.1uJy/beam@native, XX YY] U [343.08..344.98GHz,15625.00kHz,3.8mJy/beam@10km/s,296.7uJy/beam@native, XX YY] U [344.60..346.50GHz,15625.00kHz,3.8mJy/beam@10km/s,298.2uJy/beam@native, XX YY]13518.798829962549XX YY2016-03-27 05:41:21Gonzalez-Alfonso, EduardoNGC_4418_a_07_TEFischer, Jacqueline; Omont, Alain; Aalto, Susanne; Muller, Sebastien; Martin, Sergio; Costagliola, Francesco; Sakamoto, Kazushi;3.79227374594787350.15464067758205680.95196044uid://A001/X2fe/X41duid://A001/X2fe/X41euid://A002/Xb0ebd1/X72a3Vibrational H2O emission in NGC 4418: a search for buried AGN through the greenhouse effectSCHECK WVR18.640745709456112.6029283146209425Y0Galactic centres/nuclei, Luminous and Ultra-Luminous Infra-Red Galaxies (LIRG & ULIRG)Active galaxies2015.1.00042.S
2016.1.00691.SJ1232-0224188.00006670828782-2.401331961112053293.1562318082351360.10091459062044[6]0.1783020226323211731252.98693866993212m60.482017-11-09[223.00..225.00GHz,31250.00kHz,3.4mJy/beam@10km/s,206.7uJy/beam@native, XX YY] U [225.00..227.00GHz,31250.00kHz,3.5mJy/beam@10km/s,213.7uJy/beam@native, XX YY] U [239.00..241.00GHz,31250.00kHz,3.4mJy/beam@10km/s,216.4uJy/beam@native, XX YY] U [241.00..243.00GHz,31250.00kHz,3.5mJy/beam@10km/s,219.5uJy/beam@native, XX YY]38554.79638620068XX YY2016-10-13 13:43:04de Kleer, KatherineGanymede_b_06_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;3.3820510531365860.106959335996858140.7455162uid://A001/X88e/X23auid://A001/X88e/X23buid://A002/Xb95160/X5a40Thermal Properties of Icy SatellitesSPHASE WVR27.152577115150750.7777606972173531Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.01481.S4C_-02.55188.00005374996894-2.4013347200003707293.1562069709659760.10090990530305[3]0.929928323728853131252.92765984854512m66.5282017-12-01[89.49..91.49GHz,31250.00kHz,3.9mJy/beam@10km/s,149.6uJy/beam@native, XX YY] U [91.43..93.43GHz,31250.00kHz,3.8mJy/beam@10km/s,149.2uJy/beam@native, XX YY] U [101.49..103.49GHz,31250.00kHz,3.7mJy/beam@10km/s,151uJy/beam@native, XX YY] U [103.49..105.49GHz,31250.00kHz,3.7mJy/beam@10km/s,152.4uJy/beam@native, XX YY]88812.2271503024XX YY2016-11-12 12:21:50Meyer, Eileen4C_-02.5_a_03_TM2Sparks, William; Biretta, John; Chiaberge, Marco; Georganopoulos, Markos; Perlman, Eric;3.65136240164921370.075266555386162030.36181447uid://A001/X885/X93uid://A001/X885/X96uid://A002/Xba839d/X57acMeasuring the Spectral Evolution, Structure, and Speed of Extragalactic Jets with ALMASTARGET65.28252846404924.495094741157901Y1Active Galactic Nuclei (AGN)/Quasars (QSO)Active galaxies2016.1.01481.S
2015.1.00872.SJ1232-0224188.00006670829913-2.401331961111583293.1562318082575360.10091459062262[6]0.268118365941276631251.61917370644712m60.482017-12-05[213.98..215.98GHz,31250.00kHz,3.8mJy/beam@10km/s,229.4uJy/beam@native, XX YY] U [215.96..217.96GHz,31250.00kHz,3.6mJy/beam@10km/s,214.6uJy/beam@native, XX YY] U [229.98..231.98GHz,31250.00kHz,3.6mJy/beam@10km/s,223.7uJy/beam@native, XX YY] U [231.98..233.98GHz,31250.00kHz,3.6mJy/beam@10km/s,224.1uJy/beam@native, XX YY]40041.09568332347XX YY2016-07-28 19:19:28Schulze, AndreasSDSS_J12_a_06_TESchramm, Malte; Rujopakarn, Wiphu; Jahnke, Knud; Nagao, Tohru; Wisotzki, Lutz; Silverman, John;3.5670848294245640.111376361355211950.64805216uid://A001/X5a4/Xd3uid://A001/X5a4/Xd4uid://A002/Xb602ab/Xe9cIs the central sub-kiloparsec gas surface-density the decisive parameter for fueling supermassive black holes?SPHASE WVR28.2520581248584081.2724411590204332Y0Active Galactic Nuclei (AGN)/Quasars (QSO)Active galaxies2015.1.00872.S
2016.1.00691.SJ1232-0224188.0000667082763-2.4013319611142263293.156231808213160.10091459061656[7]0.1943327832117133531251.75838431147312m60.482017-12-22[335.49..337.49GHz,31250.00kHz,4.3mJy/beam@10km/s,324.6uJy/beam@native, XX YY] U [337.43..339.43GHz,31250.00kHz,4.3mJy/beam@10km/s,322.4uJy/beam@native, XX YY] U [347.49..349.49GHz,31250.00kHz,4.3mJy/beam@10km/s,330.6uJy/beam@native, XX YY] U [349.49..351.49GHz,31250.00kHz,4.4mJy/beam@10km/s,335.2uJy/beam@native, XX YY]26653.960581232415XX YY2016-10-24 11:15:03de Kleer, KatherineCallisto_b_07_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;4.2906215354214560.16404076554179440.5487961uid://A001/X88e/X226uid://A001/X88e/X227uid://A002/Xb9c01c/X4a84Thermal Properties of Icy SatellitesSPHASE WVR18.3934169750520870.9875761202466246Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.00691.SJ1232-0224188.00006670827977-2.4013319611126076293.1562318082194560.10091459061871[6]0.1883238803871657231250.1980180411612m60.482017-12-27[223.00..225.00GHz,31250.00kHz,3.4mJy/beam@10km/s,210.5uJy/beam@native, XX YY] U [225.00..227.00GHz,31250.00kHz,3.5mJy/beam@10km/s,217.5uJy/beam@native, XX YY] U [239.00..241.00GHz,31250.00kHz,3.5mJy/beam@10km/s,219.7uJy/beam@native, XX YY] U [241.00..243.00GHz,31250.00kHz,3.5mJy/beam@10km/s,222.6uJy/beam@native, XX YY]38554.79638620068XX YY2016-10-15 13:05:07de Kleer, KatherineGanymede_a_06_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;3.4432727184989590.108720750902723730.45438436uid://A001/X88e/X21auid://A001/X88e/X21buid://A002/Xb97224/X1529Thermal Properties of Icy SatellitesSPHASE WVR27.1550003440338730.8249771846810574Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.00691.SJ1232-0224188.00006670827557-2.401331961113189293.1562318082112660.100914590617464[7]0.211587038348262731250.30498778454412m60.482017-12-29[335.49..337.49GHz,31250.00kHz,3.9mJy/beam@10km/s,288.9uJy/beam@native, XX YY] U [337.43..339.43GHz,31250.00kHz,3.8mJy/beam@10km/s,286.9uJy/beam@native, XX YY] U [347.49..349.49GHz,31250.00kHz,3.9mJy/beam@10km/s,294.3uJy/beam@native, XX YY] U [349.49..351.49GHz,31250.00kHz,3.9mJy/beam@10km/s,298.4uJy/beam@native, XX YY]26653.960581232415XX YY2016-10-26 11:53:45de Kleer, KatherineGanymede_b_07_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;3.81906420378605470.146011996273819640.26599807uid://A001/X88e/X23euid://A001/X88e/X23fuid://A002/Xb9cc97/X80ecThermal Properties of Icy SatellitesSPHASE WVR18.394272420410471.0496912590462852Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.00691.SJ1232-0224188.00006670827477-2.4013319611137782293.156231808209960.10091459061677[7]0.175957801160688631252.14728377000212m60.482017-12-30[335.49..337.49GHz,31250.00kHz,4.3mJy/beam@10km/s,324.6uJy/beam@native, XX YY] U [337.43..339.43GHz,31250.00kHz,4.3mJy/beam@10km/s,322.4uJy/beam@native, XX YY] U [347.49..349.49GHz,31250.00kHz,4.3mJy/beam@10km/s,330.6uJy/beam@native, XX YY] U [349.49..351.49GHz,31250.00kHz,4.4mJy/beam@10km/s,335.2uJy/beam@native, XX YY]26653.960581232415XX YY2016-10-24 11:35:59de Kleer, KatherineGanymede_a_07_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;4.2906215354214610.164040765541794560.54138756uid://A001/X88e/X21euid://A001/X88e/X21fuid://A002/Xb9c01c/X4c55Thermal Properties of Icy SatellitesSPHASE WVR18.39318808870270.8941966441559502Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.00691.SJ1232-0224188.00006670835674-2.401331961111327293.1562318083715660.10091459063158[7]0.16960608810496531252.3730875959112m60.482017-12-30[335.49..337.49GHz,31250.00kHz,5.6mJy/beam@10km/s,419.3uJy/beam@native, XX YY] U [337.43..339.43GHz,31250.00kHz,5.5mJy/beam@10km/s,413.7uJy/beam@native, XX YY] U [347.49..349.49GHz,31250.00kHz,5.6mJy/beam@10km/s,427.8uJy/beam@native, XX YY] U [349.49..351.49GHz,31250.00kHz,5.7mJy/beam@10km/s,436.4uJy/beam@native, XX YY]26653.960581232415XX YY2016-11-01 14:59:02de Kleer, KatherineCallisto_a_07_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;5.5060412025163930.21201951559801751.0520347uid://A001/X88e/X206uid://A001/X88e/X207uid://A002/Xba0af7/X44b0Thermal Properties of Icy SatellitesSCHECK WVR18.3930551947227950.8091368712656031Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.01481.S4C_-02.55188.00005374995393-2.401334720000954293.156206970936460.10090990530022[6]0.484673454662910931252.86689909151412m131.042018-01-03[223.00..225.00GHz,31250.00kHz,2.3mJy/beam@10km/s,139.9uJy/beam@native, XX YY] U [225.00..227.00GHz,31250.00kHz,2.4mJy/beam@10km/s,144.7uJy/beam@native, XX YY] U [239.00..241.00GHz,31250.00kHz,2.3mJy/beam@10km/s,147.1uJy/beam@native, XX YY] U [241.00..243.00GHz,31250.00kHz,2.3mJy/beam@10km/s,149.3uJy/beam@native, XX YY]38554.79638620068XX YY2016-12-04 10:15:36Meyer, Eileen4C_-02.5_a_06_TM2Sparks, William; Biretta, John; Chiaberge, Marco; Georganopoulos, Markos; Perlman, Eric;2.28948858757690130.072558723244463581.1977398uid://A001/X885/X99uid://A001/X885/X9cuid://A002/Xbb5cfb/X202dMeasuring the Spectral Evolution, Structure, and Speed of Extragalactic Jets with ALMASTARGET27.152681405868152.3893734630726966Y1Active Galactic Nuclei (AGN)/Quasars (QSO)Active galaxies2016.1.01481.S
2015.1.00932.S4C_-02.55188.0000666699748-2.4013316700002503293.1562316439973360.10091487259378[3]0.358850560994004831251.11494159593312m241.922018-03-25[89.49..91.49GHz,31250.00kHz,2.2mJy/beam@10km/s,86.1uJy/beam@native, XX YY] U [91.43..93.43GHz,31250.00kHz,2.2mJy/beam@10km/s,85.9uJy/beam@native, XX YY] U [101.49..103.49GHz,31250.00kHz,2.1mJy/beam@10km/s,87.8uJy/beam@native, XX YY] U [103.49..105.49GHz,31250.00kHz,2.1mJy/beam@10km/s,88.8uJy/beam@native, XX YY]88812.2271503024XX YY2016-09-22 15:58:35Meyer, Eileen4C_-02.5_a_03_TESparks, William; Biretta, John; Georganopoulos, Markos; Perlman, Eric;2.1237280196738370.043564813925344442.243976uid://A001/X2f6/X1f4uid://A001/X2f6/X1f5uid://A002/Xb87877/X4255Measuring the Spectral Evolution, Structure, and Speed of Extragalactic Jets with ALMASTARGET65.286315171536071.9073254847361947Y2Active Galactic Nuclei (AGN)/Quasars (QSO), Outflows, jets, feedbackActive galaxies2015.1.00932.S
2016.1.00691.SJ1232-0224188.00006670827543-2.4013319611132498293.1562318082110360.10091459061739[6]0.287963576258068231250.3269655408712m60.482018-07-18[223.00..225.00GHz,31250.00kHz,3.2mJy/beam@10km/s,194.9uJy/beam@native, XX YY] U [225.00..227.00GHz,31250.00kHz,3.3mJy/beam@10km/s,201.4uJy/beam@native, XX YY] U [239.00..241.00GHz,31250.00kHz,3.2mJy/beam@10km/s,203.4uJy/beam@native, XX YY] U [241.00..243.00GHz,31250.00kHz,3.2mJy/beam@10km/s,206.1uJy/beam@native, XX YY]38554.79638620068XX YY2016-10-25 11:55:50de Kleer, KatherineCallisto_b_06_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;3.188175043931550.100666085182084040.4534044uid://A001/X88e/X244uid://A001/X88e/X245uid://A002/Xb9cc97/X2935Thermal Properties of Icy SatellitesSPHASE WVR27.154888294985471.463877364960932Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.00691.SJ1232-0224188.00006670827793-2.4013319611128083293.156231808215860.10091459061822[7]0.1827705798690213431250.51392934279612m60.482018-07-19[335.49..337.49GHz,31250.00kHz,4.3mJy/beam@10km/s,324.6uJy/beam@native, XX YY] U [337.43..339.43GHz,31250.00kHz,4.3mJy/beam@10km/s,322.4uJy/beam@native, XX YY] U [347.49..349.49GHz,31250.00kHz,4.3mJy/beam@10km/s,330.6uJy/beam@native, XX YY] U [349.49..351.49GHz,31250.00kHz,4.4mJy/beam@10km/s,335.2uJy/beam@native, XX YY]26653.960581232415XX YY2016-10-25 12:16:01de Kleer, KatherineEuropa_b_07_TM1Moreno, Raphael; Gurwell, Mark; Butler, Bryan; de Pater, Imke; Moullet, Arielle;4.2906215354214680.164040765541794860.44659188uid://A001/X88e/X232uid://A001/X88e/X233uid://A002/Xb9cc97/X29d6Thermal Properties of Icy SatellitesSPHASE WVR18.3941494359388860.92912346182028Y0Solar system - Planetary surfacesSolar system2016.1.00691.S
2016.1.01481.S4C_-02.55188.0000537499869-2.401334720000067293.1562069710014460.10090990530606[6]0.199375952667701931251.79101323550312m423.362018-08-03[223.00..225.00GHz,31250.00kHz,1.2mJy/beam@10km/s,76.2uJy/beam@native, XX YY] U [225.00..227.00GHz,31250.00kHz,1.3mJy/beam@10km/s,78.8uJy/beam@native, XX YY] U [239.00..241.00GHz,31250.00kHz,1.3mJy/beam@10km/s,79.8uJy/beam@native, XX YY] U [241.00..243.00GHz,31250.00kHz,1.3mJy/beam@10km/s,80.9uJy/beam@native, XX YY]38554.79638620068XX YY2017-07-02 21:45:44Meyer, Eileen4C_-02.5_a_06_TM1Sparks, William; Biretta, John; Chiaberge, Marco; Georganopoulos, Markos; Perlman, Eric;1.24672742495449750.039428481529470790.76258063uid://A001/X885/X99uid://A001/X885/X9auid://A002/Xc19d6f/X3982Measuring the Spectral Evolution, Structure, and Speed of Extragalactic Jets with ALMASTARGET27.1536161742423871.0922737541846483Y1Active Galactic Nuclei (AGN)/Quasars (QSO)Active galaxies2016.1.01481.S
2016.1.01481.S4C_-02.55188.0000537500501-2.4013347200012594293.1562069711270660.10090990531445[3]0.2563688817481344431251.55415984154412m235.8722018-09-06[89.49..91.49GHz,31250.00kHz,1.9mJy/beam@10km/s,73.1uJy/beam@native, XX YY] U [91.43..93.43GHz,31250.00kHz,1.9mJy/beam@10km/s,72.9uJy/beam@native, XX YY] U [101.49..103.49GHz,31250.00kHz,1.8mJy/beam@10km/s,74.1uJy/beam@native, XX YY] U [103.49..105.49GHz,31250.00kHz,1.8mJy/beam@10km/s,74.8uJy/beam@native, XX YY]88812.2271503024XX YY2017-08-18 21:05:21Meyer, Eileen4C_-02.5_a_03_TM1Sparks, William; Biretta, John; Chiaberge, Marco; Georganopoulos, Markos; Perlman, Eric;1.79118811510631980.036861928075452940.93644416uid://A001/X885/X93uid://A001/X885/X94uid://A002/Xc384d6/X221Measuring the Spectral Evolution, Structure, and Speed of Extragalactic Jets with ALMASTARGET65.285397619062831.663110737819156Y1Active Galactic Nuclei (AGN)/Quasars (QSO)Active galaxies2016.1.01481.S
2016.1.00387.SJ1232-0224188.00006670832093-2.4013319611111634293.156231808300560.100914590626324[4]0.242052240539140353906.275995444967512m60.482018-10-06[142.60..144.48GHz,3906.25kHz,3.7mJy/beam@10km/s,187.1uJy/beam@native, XX YY] U [144.30..146.18GHz,3906.25kHz,3.7mJy/beam@10km/s,187.8uJy/beam@native, XX YY] U [154.60..156.48GHz,3906.25kHz,3.6mJy/beam@10km/s,189.1uJy/beam@native, XX YY] U [156.30..158.18GHz,3906.25kHz,3.6mJy/beam@10km/s,189.8uJy/beam@native, XX YY]7403.461990330225XX YY2016-10-15 14:54:28Sakamoto, KazushiNGC4418_e_04_TM1Mangum, Jeffrey; Aalto, Susanne; Muller, Sebastien; Martin, Sergio; Harada, Nanase; Evans, Aaron; Costagliola, Francesco; Gonzalez-Alfonso, Eduardo; Ohyama, Youichi;3.58851573095680280.094233289516784770.68998814uid://A001/X87d/X224uid://A001/X87d/X225uid://A002/Xb97224/X21bdSpectral Scan on A Compact Obscured NucleusSCHECK WVR42.1536739969361141.0778886390008189Y0Galaxy chemistry, Luminous and Ultra-Luminous Infra-Red Galaxies (LIRG & ULIRG)Galaxy evolution2016.1.00387.S

In [8]:
proj3 = []
proj4 = []
proj6 = []
proj7 = []
proj8 = []
proj9 = []
projelse = []
for i, p, in enumerate(table['Project code']):
    if table['Band'][i][0] == 3:
        proj3.append([p, table['Band'][i][0], table['Integration'][i]])
    elif table['Band'][i][0] == 4:
        proj4.append([p, table['Band'][i][0], table['Integration'][i]])
    elif table['Band'][i][0] == 6:
        proj6.append([p, table['Band'][i][0], table['Integration'][i]])
    elif table['Band'][i][0] == 7:
        proj7.append([p, table['Band'][i][0], table['Integration'][i]])
    elif table['Band'][i][0] == 8:
        proj8.append([p, table['Band'][i][0], table['Integration'][i]])
    elif table['Band'][i][0] == 9:
        proj9.append([p, table['Band'][i][0], table['Integration'][i]])
    else:
        projelse.append([p, table['Band'][i][0], table['Integration'][i]])

In [9]:
print("Band3:")
for i in proj3:
    print(i)

print("Band4:")
for i in proj4:
    print(i)
    
print("Band6:")
for i in proj6:
    print(i)

print("Band7:")
for i in proj7:
    print(i)

print("Band8:")
for i in proj8:
    print(i)

print("Band9:")
for i in proj9:
    print(i)

print("Else:")
for i in projelse:
    print(i)


Band3:
['2015.1.00820.S', 3, 181.44]
['2016.1.01481.S', 3, 66.528]
['2015.1.00932.S', 3, 241.92]
['2016.1.01481.S', 3, 235.872]
Band4:
['2016.1.00387.S', 4, 60.48]
Band6:
['2015.1.00932.S', 6, 181.44]
['2016.1.00691.S', 6, 60.48]
['2015.1.00872.S', 6, 60.48]
['2016.1.00691.S', 6, 60.48]
['2016.1.01481.S', 6, 131.04]
['2016.1.00691.S', 6, 60.48]
['2016.1.01481.S', 6, 423.36]
Band7:
['2015.1.00042.S', 7, 241.92]
['2016.1.00691.S', 7, 60.48]
['2016.1.00691.S', 7, 60.48]
['2016.1.00691.S', 7, 60.48]
['2016.1.00691.S', 7, 60.48]
['2016.1.00691.S', 7, 60.48]
Band8:
Band9:
Else:

In [10]:
projs = [proj3, proj4, proj6, proj7, proj8, proj9, projelse]
bname = ['3', '4', '6', '7', '8', '9', 'else']

In [11]:
for i, arr in enumerate(projs):
    pband = []
    for p in arr:
        pband.append(p[0])
    setpband = set(pband)
    print("'''Band "+bname[i]+"''':\n")
    for p in setpband:
        print("[["+p+"]]\n")
    print("\n")


'''Band 3''':

[[2015.1.00820.S]]

[[2016.1.01481.S]]

[[2015.1.00932.S]]



'''Band 4''':

[[2016.1.00387.S]]



'''Band 6''':

[[2016.1.01481.S]]

[[2015.1.00872.S]]

[[2015.1.00932.S]]

[[2016.1.00691.S]]



'''Band 7''':

[[2015.1.00042.S]]

[[2016.1.00691.S]]



'''Band 8''':



'''Band 9''':



'''Band else''':




In [12]:
#table[10]

In [ ]: