SlideShare a Scribd company logo
1 of 86
Python and MongoDB
                                       in Astronomy




Dan Foreman-Mackey
Center for Cosmology and Particle Physics
Department of Physics @ NYU


                                   In collaboration with:
                      David W. Hogg (NYU), Larry Widrow (Queen’s),
                     Dustin Lang (Princeton), Jonathan Sick (Queen’s),
                         Micha Gorelick (NYU) and many others...
Astronomy 101


               How to Study the Cosmos


                     Python, MongoDB, etc.


                         Case Studies


Dan Foreman-Mackey                              CCPP@NYU
                                             dfm.github.com
Astronomy 101


               How to Study the Cosmos


                     Python, MongoDB, etc.


    Andromeda Case Studies The Internet
              The Milky Way



Dan Foreman-Mackey                              CCPP@NYU
                                             dfm.github.com
The Universe


                       Galaxies


                        Stars


                       Planets


Dan Foreman-Mackey                     CCPP@NYU
                                    dfm.github.com
What is the           The Universe
 Universe
Made of?
                        Galaxies


                         Stars


                        Planets


 Dan Foreman-Mackey                     CCPP@NYU
                                     dfm.github.com
What is the           The Universe
 Universe
Made of?
                        Galaxies


                         Stars
                                        Are there
                                      other Earth-
                        Planets      like planets?



 Dan Foreman-Mackey                       CCPP@NYU
                                       dfm.github.com
What is the           The Universe
 Universe
Made of?
                        Galaxies


                         Stars
                                        Are there
                                      other Earth-
                        Planets      like planets?



 Dan Foreman-Mackey                       CCPP@NYU
                                       dfm.github.com
What is the Universe Made of?




Dan Foreman-Mackey           CCPP@NYU
                          dfm.github.com
What is the Universe Made of?




                        Source: Wikipedia (Adam Evans)




Dan Foreman-Mackey                    CCPP@NYU
                                   dfm.github.com
What is the Universe Made of?

         Rotational Speed




                            Radius




Dan Foreman-Mackey                      CCPP@NYU
                                     dfm.github.com
What is the Universe Made of?

                            Observed
         Rotational Speed




                            Radius




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
What is the Universe Made of?

                            Observed
         Rotational Speed

                                 WTF?




                            Radius




Dan Foreman-Mackey                         CCPP@NYU
                                        dfm.github.com
What is the Universe Made of?

         Rotational Speed   ?   Observed


                                     WTF?




                                Radius




Dan Foreman-Mackey                             CCPP@NYU
                                            dfm.github.com
What is the Universe Made of?

         Rotational Speed   ?   Observed


                                     WTF?




                                Radius
                                                 ?

Dan Foreman-Mackey                             CCPP@NYU
                                            dfm.github.com
What is the Universe Made of?

                                Observed
         Rotational Speed

                                     WTF?




                                Radius
                                                 ?
                            ?
Dan Foreman-Mackey                             CCPP@NYU
                                            dfm.github.com
What is the Universe Made of?




                     Dark Matter
Dan Foreman-Mackey                    CCPP@NYU
                                   dfm.github.com
What is the Universe Made of?
           Size of the Universe




                                                             PyGotham
   b le
     rva
obse




                                  Time
                                         Source: NASA / WMAP Science Team




       Dan Foreman-Mackey                                 CCPP@NYU
                                                       dfm.github.com
What is the Universe Made of?


                          Dark Energy
                             73%


        Heavy
       Elements
        0.03%
                      Dark Matter
                         23%
              Atoms
               4%


                                        Source: NASA / WMAP Science Team
                                            WMAP Year 7 (Larson et al. 2011)



Dan Foreman-Mackey                                         CCPP@NYU
                                                        dfm.github.com
What is the Universe Made of?


                                             Dark Energy
                                                73%
Source: DFM & Widrow (in prep)

                          Heavy
                         Elements
                          0.03%
                                         Dark Matter
                                            23%
                                 Atoms
                                  4%


                                                           Source: NASA / WMAP Science Team
                                                               WMAP Year 7 (Larson et al. 2011)



             Dan Foreman-Mackey                                               CCPP@NYU
                                                                           dfm.github.com
What is the Universe Made of?                        Source: http://apod.nasa.gov




                                             Dark Energy
                                                73%
Source: DFM & Widrow (in prep)

                          Heavy
                         Elements
                          0.03%
                                         Dark Matter
                                            23%
                                 Atoms
                                  4%


                                                           Source: NASA / WMAP Science Team
                                                               WMAP Year 7 (Larson et al. 2011)



             Dan Foreman-Mackey                                               CCPP@NYU
                                                                           dfm.github.com
What is the Universe Made of?                        Source: http://apod.nasa.gov




                                             Dark Energy
                                                73%
Source: DFM & Widrow (in prep)

                          Heavy
                         Elements
                          0.03%
                                         Dark Matter
                                            23%
                                 Atoms
                                  4%


                                                           Source: NASA / WMAP Science Team
                                                               WMAP Year 7 (Larson et al. 2011)



             Dan Foreman-Mackey                                               CCPP@NYU
                                                                           dfm.github.com
Dan Foreman-Mackey                          CCPP@NYU
                     Credit: The Millennium Simulation Project
                                         dfm.github.com
Dan Foreman-Mackey                          CCPP@NYU
                     Credit: The Millennium Simulation Project
                                         dfm.github.com
Dan Foreman-Mackey                          CCPP@NYU
                     Credit: The Millennium Simulation Project
                                         dfm.github.com
Data in Astronomy




Dan Foreman-Mackey                      CCPP@NYU
                                     dfm.github.com
Data in Astronomy




                                 Credit: Jonathan Sick
                                       jonathansick.ca



Dan Foreman-Mackey                   CCPP@NYU
                                  dfm.github.com
Data in Astronomy




                                 Credit: Jonathan Sick
                                       jonathansick.ca



Dan Foreman-Mackey                   CCPP@NYU
                                  dfm.github.com
Data in Astronomy




              MegaCam: 340 MegaPixels   Credit: Jonathan Sick
                                              jonathansick.ca



Dan Foreman-Mackey                          CCPP@NYU
                                         dfm.github.com
Data in Astronomy




              MegaCam: 340 MegaPixels       Credit: NASA




Dan Foreman-Mackey                         CCPP@NYU
                                        dfm.github.com
Data in Astronomy
                     Imaging




                                 Source: NASA / ESA




Dan Foreman-Mackey                  CCPP@NYU
                                 dfm.github.com
Data in Astronomy
            Imaging

                             Spectroscopy




                                       Source: NASA / ESA




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
Data in Astronomy
                      Source: Riaud & Schneider (2007)


            Imaging
                          Spectroscopy
                                                         Spectroscopy




                                                                   Source: NASA / ESA




Dan Foreman-Mackey                                                    CCPP@NYU
                                                                   dfm.github.com
Data in Astronomy
                      Source: Riaud & Schneider (2007)


            Imaging
                          Spectroscopy
                                                         Spectroscopy




                                                                   Source: NASA / ESA




Dan Foreman-Mackey                                                    CCPP@NYU
                                                                   dfm.github.com
a
                   Data in Astronomy
                  lot
                        is Open
                        of




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
a
                   Data in Astronomy
                  lot
                        is Open
                        of


                                                     !
                             and there’s a lot of it




Dan Foreman-Mackey                                          CCPP@NYU
                                                         dfm.github.com
Data in Astronomy is Open
         1990–                    2000–          1997–2001
                               SDSS
Hubble archive.stsci.edu/hst          sdss.org
                                                               2MASS
                                                 www.ipac.caltech.edu/2mass




                               GAIA
Pan-STARRS                                                       LSST
                                  Planned

Dan Foreman-Mackey                                                  CCPP@NYU
                                                                 dfm.github.com
Data in Astronomy is Open
         1990–                    2000–          1997–2001
                               SDSS
Hubble archive.stsci.edu/hst          sdss.org
                                                               2MASS
                                                 www.ipac.caltech.edu/2mass




                               GAIA
Pan-STARRS                                                       LSST
                                  Planned

Dan Foreman-Mackey                                                  CCPP@NYU
                                                                 dfm.github.com
Data in Astronomy is Open
         1990–                    2000–          1997–2001
                               SDSS
Hubble archive.stsci.edu/hst          sdss.org
                                                               2MASS
                                                 www.ipac.caltech.edu/2mass




                               GAIA
Pan-STARRS                                                       LSST
                                  Planned

Dan Foreman-Mackey                                                  CCPP@NYU
                                                                 dfm.github.com
Where does Python fit in?




Dan Foreman-Mackey               CCPP@NYU
                              dfm.github.com
Where does Python fit in?




Dan Foreman-Mackey                    CCPP@NYU
                                   dfm.github.com
Where does Python fit in?




Dan Foreman-Mackey                    CCPP@NYU
                                   dfm.github.com
Where does Python fit in?




Dan Foreman-Mackey                    CCPP@NYU
                                   dfm.github.com
Where does Python fit in?




Dan Foreman-Mackey                    CCPP@NYU
                                   dfm.github.com
Where does Python fit in?




                                 +
                        Scientific Python Stack




Dan Foreman-Mackey                                  CCPP@NYU
                                                 dfm.github.com
Where does Python fit in?




                                 +
                        Scientific Python Stack




Dan Foreman-Mackey                                  CCPP@NYU
                                                 dfm.github.com
Where does Python fit in?




                                 +
                        Scientific Python Stack




Dan Foreman-Mackey                                  CCPP@NYU
                                                 dfm.github.com
What about             ?

                       Easy
                      Flexible
                     Pythonic
                      Scalable

Dan Foreman-Mackey                   CCPP@NYU
                                  dfm.github.com
Case Studies




Dan Foreman-Mackey                     CCPP@NYU
                                    dfm.github.com
Case Studies
                     Variable Stars in Stripe 82
           SDSS




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
Case Studies
                                        Variable Stars in Stripe 82
           SDSS

          728                                           SESAR ET AL.

                                                                                 Ses

                                                                     S07 Labela Ntot
                                                                       A          84
                                                                       B         144
                                                                       C          54
                                                                       D          8
                                                                       E          11
                                                                       F          11
                     Source: Sesar et al. (2010)                       G          10
                                                                       H          7
                                                                       I          4
                                                                       J          26
                                                                       K          8
Dan Foreman-Mackey                                           CCPP@NYU  L          3
                                                          dfm.github.com
                                                                       M          5
Case Studies
                     Variable Stars in Stripe 82
           SDSS




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
Case Studies
                     Variable Stars in Stripe 82
           SDSS




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
Case Studies
                           Variable Stars in Stripe 82
           SDSS


         800k “Fields” ~ 12TB Imaging data
                > 1M “Target Stars”




Dan Foreman-Mackey                              CCPP@NYU
                                             dfm.github.com
Case Studies
                                         Variable Stars in Stripe 82
           SDSS
             Photons/Brightness




                                  Time

Dan Foreman-Mackey                                            CCPP@NYU
                                                           dfm.github.com
Case Studies
                                         Variable Stars in Stripe 82
             SDSS
             Y N
p(X|⇥) =               [(1   Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)]
              ↵=1




  Dan Foreman-Mackey                                          CCPP@NYU
                                                           dfm.github.com
Case Studies
                                         Variable Stars in Stripe 82
             SDSS
             Y N
p(X|⇥) =               [(1   Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)]
              ↵=1
            Stars




  Dan Foreman-Mackey                                          CCPP@NYU
                                                           dfm.github.com
Case Studies
                                                     Variable Stars in Stripe 82
                       SDSS
                       YN
 p(X|⇥) =                    [(1     Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)]
                       ↵=1
                       Stars
           M
           Y                                                 M
                                                             Y
pconst ⌘         [(1    Pbad )pgood + Pbad pbad ]   pvar ⌘         [(1   Pbad )pvar,good + Pbad pbad ]
           i=1                                               i=1




     Dan Foreman-Mackey                                                             CCPP@NYU
                                                                                 dfm.github.com
Case Studies
                                                     Variable Stars in Stripe 82
                       SDSS
                       YN
 p(X|⇥) =                    [(1     Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)]
                       ↵=1
                       Stars
           M
           Y                                                 M
                                                             Y
pconst ⌘         [(1    Pbad )pgood + Pbad pbad ]   pvar ⌘         [(1   Pbad )pvar,good + Pbad pbad ]
           i=1                                               i=1

     Runs                                               Runs




     Dan Foreman-Mackey                                                             CCPP@NYU
                                                                                 dfm.github.com
Case Studies
                                                        Variable Stars in Stripe 82
                       SDSS
                       YN
 p(X|⇥) =                    [(1        Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)]
                       ↵=1
                       Stars
           M
           Y                                                     M
                                                                 Y
pconst ⌘         [(1    Pbad )pgood + Pbad pbad ]      pvar ⌘          [(1   Pbad )pvar,good + Pbad pbad ]
           i=1                                                   i=1

      Runs                                                   Runs
                       ⇤                                                     ⇤
  pgood ⌘ N (Ci↵ |fi0 f↵ ,     2
                               i↵   +   2
                                        i↵ )        pvar,good ⌘ N (Ci↵ |fi0 f↵ ,     2
                                                                                     i↵   +   2
                                                                                              i↵   + ⌃2 )
                                                                                                      var
                 “Constant & Good”                   “Variable & Good”

                                                 ⇤
                             pbad ⌘ N (Ci↵ |fi0 f↵ ,    2
                                                        i↵   +   2
                                                                 i↵    + ⌃2 )
                                                                          bad
                                                “Bad”

      Dan Foreman-Mackey                                                                CCPP@NYU
                                                                                     dfm.github.com
Case Studies
                                                        Variable Stars in Stripe 82
                       SDSS
                       YN
 p(X|⇥) =                    [(1        Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)]
                       ↵=1
                       Stars
           M
           Y                                                     M
                                                                 Y
pconst ⌘         [(1    Pbad )pgood + Pbad pbad ]      pvar ⌘         [(1   Pbad )pvar,good + Pbad pbad ]
           i=1
                Npars = Nstars + Nruns + 6
                                         i=1

      Runs      ~ 0 , ~ ⇤ , , ⌘, ⌃2 , PRuns , Pbad }
                                              2
           ⇥ = {f f               var  var , ⌃bad
                       ⇤                                                     ⇤
  pgood ⌘ N (Ci↵ |fi0 f↵ ,     2
                               i↵   +   2
                                        i↵ )        pvar,good ⌘ N (Ci↵ |fi0 f↵ ,    2
                                                                                    i↵   +   2
                                                                                             i↵   + ⌃2 )
                                                                                                     var
                 “Constant & Good”                   “Variable & Good”

                                                 ⇤
                             pbad ⌘ N (Ci↵ |fi0 f↵ ,    2
                                                        i↵   +   2
                                                                 i↵   + ⌃2 )
                                                                         bad
                                                “Bad”

      Dan Foreman-Mackey                                                               CCPP@NYU
                                                                                    dfm.github.com
Case Studies
                     Variable Stars in Stripe 82
           SDSS




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
Case Studies
                     Variable Stars in Stripe 82
           SDSS




Dan Foreman-Mackey                        CCPP@NYU
                                       dfm.github.com
Case Studies
                                  Variable Stars in Stripe 82
           SDSS
                                N
                                Y
                     p(X|⇥) =         [(1   Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)]
                                ↵=1




Dan Foreman-Mackey                                                 CCPP@NYU
                                                                dfm.github.com
Case Studies
                        Variable Stars in Stripe 82
           SDSS




                                      N
                                      X
                     f ⇤ (t) = A0 +         [An sin(!t) + Bn cos(!t)]
                                      n=1
Dan Foreman-Mackey                                   CCPP@NYU
                                                  dfm.github.com
Case Studies
 CFHT




4.7 Gigapixel mosaic of M31
                                    Source: Jonathan Sick
                                      (Queen’s University)



Dan Foreman-Mackey                       CCPP@NYU
                                      dfm.github.com
Dan Foreman-Mackey      CCPP@NYU
                     dfm.github.com Jonathan Sick
                               Source:
                                 (Queen’s University)
Dan Foreman-Mackey      CCPP@NYU
                     dfm.github.com Jonathan Sick
                               Source:
                                 (Queen’s University)
Dan Foreman-Mackey      CCPP@NYU
                     dfm.github.com Jonathan Sick
                               Source:
                                 (Queen’s University)
Case Studies
    CFHT
Cosmic ray removal      Flat-fielding   Sky subtraction     ...    Mosaic making




                   MongoDB
    Persistent Metadata + GeoSpatial Indexing


       img1.fits           img2.fits           ...         img4000.fits
                                                                 Source: Jonathan Sick
                                                                   (Queen’s University)



   Dan Foreman-Mackey                                                 CCPP@NYU
                                                                   dfm.github.com
Astrometry.net       Case Studies




Dan Foreman-Mackey             CCPP@NYU
                            dfm.github.com
Astrometry.net       Case Studies




Dan Foreman-Mackey             CCPP@NYU
                            dfm.github.com
Dan Foreman-Mackey      CCPP@NYU
                     dfm.github.com
Dan Foreman-Mackey      CCPP@NYU
                     dfm.github.com
Dan Foreman-Mackey      CCPP@NYU
                     dfm.github.com
Crowdsourcing Comet Holmes                  Case Studies


                       Lang & Hogg (2011)




                        ~2500
                           JPGs



Dan Foreman-Mackey                                    CCPP@NYU
                                                   dfm.github.com
Crowdsourcing Comet Holmes   Case Studies




Dan Foreman-Mackey                     CCPP@NYU
                                    dfm.github.com
Crowdsourcing Comet Holmes   Case Studies




Dan Foreman-Mackey                     CCPP@NYU
                                    dfm.github.com
Crowdsourcing Comet Holmes   Case Studies




Dan Foreman-Mackey                     CCPP@NYU
                                    dfm.github.com
Crowdsourcing Comet Holmes   Case Studies




                                  Source: Lang & Hogg (2011)




Dan Foreman-Mackey                          CCPP@NYU
                                         dfm.github.com
Crowdsourcing Comet Holmes   Case Studies




                                  Source: Lang & Hogg (2011)




Dan Foreman-Mackey                          CCPP@NYU
                                         dfm.github.com
Crowdsourcing Comet Holmes   Case Studies




                                  Source: Lang & Hogg (2011)
github.com/dfm/MarkovPy


Dan Foreman-Mackey                          CCPP@NYU
                                         dfm.github.com
Crowdsourcing Comet Holmes   Case Studies




Dan Foreman-Mackey                     CCPP@NYU
                                    dfm.github.com
Growing
 Datasets



   User
Interaction



 Number                  Data     And Much
Crunching            Management    More...
                       (      )
Dan Foreman-Mackey                      CCPP@NYU
                                     dfm.github.com
Growing
 Datasets



   User
Interaction
                     Easy!
 Number                  Data     And Much
Crunching            Management    More...
                       (      )
Dan Foreman-Mackey                      CCPP@NYU
                                     dfm.github.com
Growing                          Big Questions
 Datasets



   User
Interaction
                     Easy!
 Number                  Data        And Much
Crunching            Management       More...
                       (      )
Dan Foreman-Mackey                          CCPP@NYU
                                         dfm.github.com
Dan Foreman-Mackey
  Center for Cosmology & Particle Physics (NYU)
                dfm.github.com
                  @__dfm__




Dan Foreman-Mackey                           CCPP@NYU
                                          dfm.github.com

More Related Content

What's hot

Rocketry, Meteor Belt, Astronomy PowerPoint Quiz Game
Rocketry, Meteor Belt, Astronomy PowerPoint Quiz GameRocketry, Meteor Belt, Astronomy PowerPoint Quiz Game
Rocketry, Meteor Belt, Astronomy PowerPoint Quiz Gamewww.sciencepowerpoint.com
 
Origins (big bang)
Origins (big bang)Origins (big bang)
Origins (big bang)SSGADEW
 
Atomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPoint
Atomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPointAtomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPoint
Atomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPointwww.sciencepowerpoint.com
 
Sloan digital sky survey iii mapping the universe on the largest scales
Sloan digital sky survey iii  mapping the universe on the largest scalesSloan digital sky survey iii  mapping the universe on the largest scales
Sloan digital sky survey iii mapping the universe on the largest scalesSérgio Sacani
 
Discovering Your Inner Scientist
Discovering Your Inner ScientistDiscovering Your Inner Scientist
Discovering Your Inner ScientistChad Orzel
 
Jack oughton 02.12.08 - fomalhaut
Jack oughton   02.12.08 - fomalhautJack oughton   02.12.08 - fomalhaut
Jack oughton 02.12.08 - fomalhautJack Oughton
 

What's hot (20)

04 lecture outline
04 lecture outline04 lecture outline
04 lecture outline
 
05 lecture outline
05 lecture outline05 lecture outline
05 lecture outline
 
09 lecture outline
09 lecture outline09 lecture outline
09 lecture outline
 
Cube.key
Cube.keyCube.key
Cube.key
 
The Science of Comet ISON
The Science of Comet ISONThe Science of Comet ISON
The Science of Comet ISON
 
11 lecture outline
11 lecture outline11 lecture outline
11 lecture outline
 
Rocketry, Meteor Belt, Astronomy PowerPoint Quiz Game
Rocketry, Meteor Belt, Astronomy PowerPoint Quiz GameRocketry, Meteor Belt, Astronomy PowerPoint Quiz Game
Rocketry, Meteor Belt, Astronomy PowerPoint Quiz Game
 
Origins (big bang)
Origins (big bang)Origins (big bang)
Origins (big bang)
 
Atomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPoint
Atomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPointAtomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPoint
Atomic Mass, Atomic Number, Isotopes, Physical Science Lesson PowerPoint
 
12 review clickers
12 review clickers12 review clickers
12 review clickers
 
Sloan digital sky survey iii mapping the universe on the largest scales
Sloan digital sky survey iii  mapping the universe on the largest scalesSloan digital sky survey iii  mapping the universe on the largest scales
Sloan digital sky survey iii mapping the universe on the largest scales
 
Discovering Your Inner Scientist
Discovering Your Inner ScientistDiscovering Your Inner Scientist
Discovering Your Inner Scientist
 
S2 review clickers
S2 review clickersS2 review clickers
S2 review clickers
 
Cubegood
CubegoodCubegood
Cubegood
 
1universe hp
1universe hp1universe hp
1universe hp
 
Jack oughton 02.12.08 - fomalhaut
Jack oughton   02.12.08 - fomalhautJack oughton   02.12.08 - fomalhaut
Jack oughton 02.12.08 - fomalhaut
 
Big Bang Theory Astronomy Lesson PowerPoint
Big Bang Theory Astronomy Lesson PowerPointBig Bang Theory Astronomy Lesson PowerPoint
Big Bang Theory Astronomy Lesson PowerPoint
 
258 a
258 a258 a
258 a
 
A1 17 Ism
A1 17 IsmA1 17 Ism
A1 17 Ism
 
2010_Lobbia_Thesis
2010_Lobbia_Thesis2010_Lobbia_Thesis
2010_Lobbia_Thesis
 

Viewers also liked

The Changing Face(s) of Astronomy
The Changing Face(s) of AstronomyThe Changing Face(s) of Astronomy
The Changing Face(s) of Astronomyskendrew
 
Starting in Backyard Astronomy: On the Right Foot
Starting in Backyard Astronomy: On the Right FootStarting in Backyard Astronomy: On the Right Foot
Starting in Backyard Astronomy: On the Right Footneweyesoldskies
 
Discovering Astronomy: Intro to the Cosmos
Discovering Astronomy: Intro to the CosmosDiscovering Astronomy: Intro to the Cosmos
Discovering Astronomy: Intro to the Cosmosxneptune
 
Origin of Modern Astronomy
Origin of Modern AstronomyOrigin of Modern Astronomy
Origin of Modern AstronomyJundel Deliman
 
Iya Activities Of Kssp
Iya Activities Of KsspIya Activities Of Kssp
Iya Activities Of KsspTHANKACHAN V P
 
History of Photography
History of PhotographyHistory of Photography
History of Photographyjembigsky
 
Pre Photography History
Pre Photography HistoryPre Photography History
Pre Photography History.IMG-I
 
History Of The Internet[1]
History Of The Internet[1]History Of The Internet[1]
History Of The Internet[1]jsoni2
 
Discovering Astronomy Workshop 2014 May
Discovering Astronomy Workshop 2014 MayDiscovering Astronomy Workshop 2014 May
Discovering Astronomy Workshop 2014 Mayxneptune
 
How Telescopes Work
How Telescopes WorkHow Telescopes Work
How Telescopes Workbergsa
 
Basic astronomy
Basic astronomy Basic astronomy
Basic astronomy MPerezBaena
 
Astronomy Photographer of the Year 2014, shortlist
Astronomy Photographer of the Year 2014, shortlist Astronomy Photographer of the Year 2014, shortlist
Astronomy Photographer of the Year 2014, shortlist guimera
 
History of photography
History of photography History of photography
History of photography hammodbz
 
Astronomy Midterm Review
Astronomy Midterm ReviewAstronomy Midterm Review
Astronomy Midterm Reviewteachingmike
 
Cosmology And Astronomy
Cosmology And AstronomyCosmology And Astronomy
Cosmology And AstronomyMarinela L
 
History Of Photography
History Of PhotographyHistory Of Photography
History Of PhotographyDrew Loker
 
Astronomy Photographer of the Year 2015 (shortlisted images selected)
Astronomy Photographer of the Year 2015 (shortlisted images selected)Astronomy Photographer of the Year 2015 (shortlisted images selected)
Astronomy Photographer of the Year 2015 (shortlisted images selected)guimera
 
PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015
PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015
PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015PeopleBrowsr
 

Viewers also liked (20)

The Changing Face(s) of Astronomy
The Changing Face(s) of AstronomyThe Changing Face(s) of Astronomy
The Changing Face(s) of Astronomy
 
Starting in Backyard Astronomy: On the Right Foot
Starting in Backyard Astronomy: On the Right FootStarting in Backyard Astronomy: On the Right Foot
Starting in Backyard Astronomy: On the Right Foot
 
Discovering Astronomy: Intro to the Cosmos
Discovering Astronomy: Intro to the CosmosDiscovering Astronomy: Intro to the Cosmos
Discovering Astronomy: Intro to the Cosmos
 
Origin of Modern Astronomy
Origin of Modern AstronomyOrigin of Modern Astronomy
Origin of Modern Astronomy
 
My astronomy dictionary
My astronomy dictionaryMy astronomy dictionary
My astronomy dictionary
 
Iya Activities Of Kssp
Iya Activities Of KsspIya Activities Of Kssp
Iya Activities Of Kssp
 
Astronomy
AstronomyAstronomy
Astronomy
 
History of Photography
History of PhotographyHistory of Photography
History of Photography
 
Pre Photography History
Pre Photography HistoryPre Photography History
Pre Photography History
 
History Of The Internet[1]
History Of The Internet[1]History Of The Internet[1]
History Of The Internet[1]
 
Discovering Astronomy Workshop 2014 May
Discovering Astronomy Workshop 2014 MayDiscovering Astronomy Workshop 2014 May
Discovering Astronomy Workshop 2014 May
 
How Telescopes Work
How Telescopes WorkHow Telescopes Work
How Telescopes Work
 
Basic astronomy
Basic astronomy Basic astronomy
Basic astronomy
 
Astronomy Photographer of the Year 2014, shortlist
Astronomy Photographer of the Year 2014, shortlist Astronomy Photographer of the Year 2014, shortlist
Astronomy Photographer of the Year 2014, shortlist
 
History of photography
History of photography History of photography
History of photography
 
Astronomy Midterm Review
Astronomy Midterm ReviewAstronomy Midterm Review
Astronomy Midterm Review
 
Cosmology And Astronomy
Cosmology And AstronomyCosmology And Astronomy
Cosmology And Astronomy
 
History Of Photography
History Of PhotographyHistory Of Photography
History Of Photography
 
Astronomy Photographer of the Year 2015 (shortlisted images selected)
Astronomy Photographer of the Year 2015 (shortlisted images selected)Astronomy Photographer of the Year 2015 (shortlisted images selected)
Astronomy Photographer of the Year 2015 (shortlisted images selected)
 
PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015
PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015
PeopleBrowsr Presents A Brief Cartoon History of Social Networking 1930-2015
 

Recently uploaded

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Recently uploaded (20)

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

Python and MongoDB in Astronomy

  • 1. Python and MongoDB in Astronomy Dan Foreman-Mackey Center for Cosmology and Particle Physics Department of Physics @ NYU In collaboration with: David W. Hogg (NYU), Larry Widrow (Queen’s), Dustin Lang (Princeton), Jonathan Sick (Queen’s), Micha Gorelick (NYU) and many others...
  • 2. Astronomy 101 How to Study the Cosmos Python, MongoDB, etc. Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 3. Astronomy 101 How to Study the Cosmos Python, MongoDB, etc. Andromeda Case Studies The Internet The Milky Way Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 4. The Universe Galaxies Stars Planets Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 5. What is the The Universe Universe Made of? Galaxies Stars Planets Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 6. What is the The Universe Universe Made of? Galaxies Stars Are there other Earth- Planets like planets? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 7. What is the The Universe Universe Made of? Galaxies Stars Are there other Earth- Planets like planets? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 8. What is the Universe Made of? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 9. What is the Universe Made of? Source: Wikipedia (Adam Evans) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 10. What is the Universe Made of? Rotational Speed Radius Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 11. What is the Universe Made of? Observed Rotational Speed Radius Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 12. What is the Universe Made of? Observed Rotational Speed WTF? Radius Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 13. What is the Universe Made of? Rotational Speed ? Observed WTF? Radius Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 14. What is the Universe Made of? Rotational Speed ? Observed WTF? Radius ? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 15. What is the Universe Made of? Observed Rotational Speed WTF? Radius ? ? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 16. What is the Universe Made of? Dark Matter Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 17. What is the Universe Made of? Size of the Universe PyGotham b le rva obse Time Source: NASA / WMAP Science Team Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 18. What is the Universe Made of? Dark Energy 73% Heavy Elements 0.03% Dark Matter 23% Atoms 4% Source: NASA / WMAP Science Team WMAP Year 7 (Larson et al. 2011) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 19. What is the Universe Made of? Dark Energy 73% Source: DFM & Widrow (in prep) Heavy Elements 0.03% Dark Matter 23% Atoms 4% Source: NASA / WMAP Science Team WMAP Year 7 (Larson et al. 2011) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 20. What is the Universe Made of? Source: http://apod.nasa.gov Dark Energy 73% Source: DFM & Widrow (in prep) Heavy Elements 0.03% Dark Matter 23% Atoms 4% Source: NASA / WMAP Science Team WMAP Year 7 (Larson et al. 2011) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 21. What is the Universe Made of? Source: http://apod.nasa.gov Dark Energy 73% Source: DFM & Widrow (in prep) Heavy Elements 0.03% Dark Matter 23% Atoms 4% Source: NASA / WMAP Science Team WMAP Year 7 (Larson et al. 2011) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 22. Dan Foreman-Mackey CCPP@NYU Credit: The Millennium Simulation Project dfm.github.com
  • 23. Dan Foreman-Mackey CCPP@NYU Credit: The Millennium Simulation Project dfm.github.com
  • 24. Dan Foreman-Mackey CCPP@NYU Credit: The Millennium Simulation Project dfm.github.com
  • 25. Data in Astronomy Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 26. Data in Astronomy Credit: Jonathan Sick jonathansick.ca Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 27. Data in Astronomy Credit: Jonathan Sick jonathansick.ca Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 28. Data in Astronomy MegaCam: 340 MegaPixels Credit: Jonathan Sick jonathansick.ca Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 29. Data in Astronomy MegaCam: 340 MegaPixels Credit: NASA Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 30. Data in Astronomy Imaging Source: NASA / ESA Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 31. Data in Astronomy Imaging Spectroscopy Source: NASA / ESA Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 32. Data in Astronomy Source: Riaud & Schneider (2007) Imaging Spectroscopy Spectroscopy Source: NASA / ESA Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 33. Data in Astronomy Source: Riaud & Schneider (2007) Imaging Spectroscopy Spectroscopy Source: NASA / ESA Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 34. a Data in Astronomy lot is Open of Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 35. a Data in Astronomy lot is Open of ! and there’s a lot of it Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 36. Data in Astronomy is Open 1990– 2000– 1997–2001 SDSS Hubble archive.stsci.edu/hst sdss.org 2MASS www.ipac.caltech.edu/2mass GAIA Pan-STARRS LSST Planned Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 37. Data in Astronomy is Open 1990– 2000– 1997–2001 SDSS Hubble archive.stsci.edu/hst sdss.org 2MASS www.ipac.caltech.edu/2mass GAIA Pan-STARRS LSST Planned Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 38. Data in Astronomy is Open 1990– 2000– 1997–2001 SDSS Hubble archive.stsci.edu/hst sdss.org 2MASS www.ipac.caltech.edu/2mass GAIA Pan-STARRS LSST Planned Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 39. Where does Python fit in? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 40. Where does Python fit in? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 41. Where does Python fit in? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 42. Where does Python fit in? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 43. Where does Python fit in? Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 44. Where does Python fit in? + Scientific Python Stack Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 45. Where does Python fit in? + Scientific Python Stack Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 46. Where does Python fit in? + Scientific Python Stack Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 47. What about ? Easy Flexible Pythonic Scalable Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 48. Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 49. Case Studies Variable Stars in Stripe 82 SDSS Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 50. Case Studies Variable Stars in Stripe 82 SDSS 728 SESAR ET AL. Ses S07 Labela Ntot A 84 B 144 C 54 D 8 E 11 F 11 Source: Sesar et al. (2010) G 10 H 7 I 4 J 26 K 8 Dan Foreman-Mackey CCPP@NYU L 3 dfm.github.com M 5
  • 51. Case Studies Variable Stars in Stripe 82 SDSS Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 52. Case Studies Variable Stars in Stripe 82 SDSS Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 53. Case Studies Variable Stars in Stripe 82 SDSS 800k “Fields” ~ 12TB Imaging data > 1M “Target Stars” Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 54. Case Studies Variable Stars in Stripe 82 SDSS Photons/Brightness Time Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 55. Case Studies Variable Stars in Stripe 82 SDSS Y N p(X|⇥) = [(1 Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)] ↵=1 Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 56. Case Studies Variable Stars in Stripe 82 SDSS Y N p(X|⇥) = [(1 Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)] ↵=1 Stars Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 57. Case Studies Variable Stars in Stripe 82 SDSS YN p(X|⇥) = [(1 Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)] ↵=1 Stars M Y M Y pconst ⌘ [(1 Pbad )pgood + Pbad pbad ] pvar ⌘ [(1 Pbad )pvar,good + Pbad pbad ] i=1 i=1 Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 58. Case Studies Variable Stars in Stripe 82 SDSS YN p(X|⇥) = [(1 Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)] ↵=1 Stars M Y M Y pconst ⌘ [(1 Pbad )pgood + Pbad pbad ] pvar ⌘ [(1 Pbad )pvar,good + Pbad pbad ] i=1 i=1 Runs Runs Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 59. Case Studies Variable Stars in Stripe 82 SDSS YN p(X|⇥) = [(1 Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)] ↵=1 Stars M Y M Y pconst ⌘ [(1 Pbad )pgood + Pbad pbad ] pvar ⌘ [(1 Pbad )pvar,good + Pbad pbad ] i=1 i=1 Runs Runs ⇤ ⇤ pgood ⌘ N (Ci↵ |fi0 f↵ , 2 i↵ + 2 i↵ ) pvar,good ⌘ N (Ci↵ |fi0 f↵ , 2 i↵ + 2 i↵ + ⌃2 ) var “Constant & Good” “Variable & Good” ⇤ pbad ⌘ N (Ci↵ |fi0 f↵ , 2 i↵ + 2 i↵ + ⌃2 ) bad “Bad” Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 60. Case Studies Variable Stars in Stripe 82 SDSS YN p(X|⇥) = [(1 Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)] ↵=1 Stars M Y M Y pconst ⌘ [(1 Pbad )pgood + Pbad pbad ] pvar ⌘ [(1 Pbad )pvar,good + Pbad pbad ] i=1 Npars = Nstars + Nruns + 6 i=1 Runs ~ 0 , ~ ⇤ , , ⌘, ⌃2 , PRuns , Pbad } 2 ⇥ = {f f var var , ⌃bad ⇤ ⇤ pgood ⌘ N (Ci↵ |fi0 f↵ , 2 i↵ + 2 i↵ ) pvar,good ⌘ N (Ci↵ |fi0 f↵ , 2 i↵ + 2 i↵ + ⌃2 ) var “Constant & Good” “Variable & Good” ⇤ pbad ⌘ N (Ci↵ |fi0 f↵ , 2 i↵ + 2 i↵ + ⌃2 ) bad “Bad” Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 61. Case Studies Variable Stars in Stripe 82 SDSS Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 62. Case Studies Variable Stars in Stripe 82 SDSS Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 63. Case Studies Variable Stars in Stripe 82 SDSS N Y p(X|⇥) = [(1 Pvar )pconst (X ↵ |⇥) + Pvar pvar (X ↵ |⇥)] ↵=1 Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 64. Case Studies Variable Stars in Stripe 82 SDSS N X f ⇤ (t) = A0 + [An sin(!t) + Bn cos(!t)] n=1 Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 65. Case Studies CFHT 4.7 Gigapixel mosaic of M31 Source: Jonathan Sick (Queen’s University) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 66. Dan Foreman-Mackey CCPP@NYU dfm.github.com Jonathan Sick Source: (Queen’s University)
  • 67. Dan Foreman-Mackey CCPP@NYU dfm.github.com Jonathan Sick Source: (Queen’s University)
  • 68. Dan Foreman-Mackey CCPP@NYU dfm.github.com Jonathan Sick Source: (Queen’s University)
  • 69. Case Studies CFHT Cosmic ray removal Flat-fielding Sky subtraction ... Mosaic making MongoDB Persistent Metadata + GeoSpatial Indexing img1.fits img2.fits ... img4000.fits Source: Jonathan Sick (Queen’s University) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 70. Astrometry.net Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 71. Astrometry.net Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 72. Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 73. Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 74. Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 75. Crowdsourcing Comet Holmes Case Studies Lang & Hogg (2011) ~2500 JPGs Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 76. Crowdsourcing Comet Holmes Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 77. Crowdsourcing Comet Holmes Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 78. Crowdsourcing Comet Holmes Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 79. Crowdsourcing Comet Holmes Case Studies Source: Lang & Hogg (2011) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 80. Crowdsourcing Comet Holmes Case Studies Source: Lang & Hogg (2011) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 81. Crowdsourcing Comet Holmes Case Studies Source: Lang & Hogg (2011) github.com/dfm/MarkovPy Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 82. Crowdsourcing Comet Holmes Case Studies Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 83. Growing Datasets User Interaction Number Data And Much Crunching Management More... ( ) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 84. Growing Datasets User Interaction Easy! Number Data And Much Crunching Management More... ( ) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 85. Growing Big Questions Datasets User Interaction Easy! Number Data And Much Crunching Management More... ( ) Dan Foreman-Mackey CCPP@NYU dfm.github.com
  • 86. Dan Foreman-Mackey Center for Cosmology & Particle Physics (NYU) dfm.github.com @__dfm__ Dan Foreman-Mackey CCPP@NYU dfm.github.com