1 / 42

Acknowledgments

Analysing Cosmological Simulations in the Virtual Observatory: Designing and Mining the Millennium Simulation Database Gerard Lemson German Astrophysical Virtual Observatory (GAVO) ARI, Heidelberg MPE, Garching bei M ü nchen. Acknowledgments. Alex Szalay Virgo consortium, in particular:

alyson
Download Presentation

Acknowledgments

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Analysing Cosmological Simulations in the Virtual Observatory:Designing and Mining the Millennium Simulation DatabaseGerard Lemson German Astrophysical Virtual Observatory (GAVO)ARI, HeidelbergMPE, Garching bei München

  2. Acknowledgments • Alex Szalay • Virgo consortium, in particular: • Volker Springel, Simon White, Gabriella DeLucia, Jeremy Blaizot(MPA, Munich, Germany), • Carlos Frenk, Richard Bower, John Helly (ICC, Durham, UK) • Similar efforts/sites to Millennium Database • Durham (mirror of Millennium DB) • Horizon/GalICS (Lyon) • ITVO (Trieste) • GAVO is funded by the German Federal Ministry for Education and Research(BMBF)

  3. Summary • VO aims to provide access to remote data for use/analysis by 3rd parties. • Data analysis requires • advanced methods for analysis • data • Data sets are often very large, often far away (makes them even larger!) • To analyse remote datasets, one needs to be able to bring the analysis to the data. • “Standard” approach using flat files and C/IDL/etc code sub-optimal • To analyse very large datasets we also need advanced methods of data organisation and data access • Structured approach supported by relational database system allows one to concentrate on science, iso worry about I/O optimisation etc • And the questions can become pretty complex !

  4. Case study: The Millennium SimulationSpringel V. et al. 2005 Nature 435, 629

  5. Millennium Simulation • Virgo consortium • Gadget 3 • 10 billion particles, dark matter only • 500 Mpc periodic box • Concordance model (as of 2004) initial conditions • 64 snapshots • 350000 CPU hours • O(30Tb) raw + post-processed data • Post-processing data products complex and large • Challenge to analyse, even locally! • SimDAP-like approach required for remote access.

  6. FTP and GREP are not adequate You can GREP/FTP 1 MB in a second You can GREP/FTP 1 GB in a minute You can GREP/FTP 1 TB in 2 days You can GREP/FTP 1 PB in 3 years SFTP much slower and 1PB ~2,000 disks At some point you need indices to limit searchparallel data search and analysis This is where databases can help Intermezzo: Data Access is Hitting a Wall(courtesy Alex Szalay)

  7. Analysis and Databases(courtesy Alex Szalay) • Much statistical analysis deals with • Creating uniform samples -- data filtering • Assembling relevant subsets • Estimating completeness • Censoring bad data • Counting and building histograms • Generating Monte-Carlo subsets • Likelihood calculations • Hypothesis testing • Traditionally these are performed on files • Most of these tasks are much better done inside a database

  8. Advantages of relational databases • Encapsulation of data in terms of logical structure, no need to know about internals of data storage • Standard query language for finding information • Advanced query optimizers (indexes, clustering) • Transparent internal parallelization • Authenticated remote access for multiple users at same time • Forces one to think carefully about data structure • Speeds up path from science question to answer • Facilitates communication (query code is cleaner) • Facilitates adaptation to IVOA standards (ADQL)

  9. Millennium Simulation Phenomenology • Density field on 2563 mesh • CIC • Gaussian smoothed: 1.25,2.5,5,10 Mpc/h • Friends-of-Friends (FOF) groups • SUBFIND Subhalos • Galaxies from 2 semi-analytical models (SAMs) • MPA (L-Galaxies, DeLucia & Blaizot, 2006; Bertone et al 2007) • Durham (GalForm, Bower et al, 2006) • Subhalo and galaxy formation histories: merger trees • Mock catalogues on light-cone • Pencil beams (Kitzbichler & White, 2006) • All-sky (depth of SDSS spectral sample)(Blaizot et al, 2005) • In preparation: Spectra for light cone galaxies

  10. Millennium Simulation Phenomenology • Density field on 2563 mesh • CIC • Gaussian smoothed: 1.25,2.5,5,10 Mpc/h • Friends-of-Friends (FOF) groups • SUBFIND Subhalos • Galaxies from 2 semi-analytical models (SAMs) • MPA (L-Galaxies, DeLucia & Blaizot, 2006; Bertone et al 2007) • Durham (GalForm, Bower et al, 2006) • Subhalo and galaxy formation histories: merger trees • Mock catalogues on light-cone • Pencil beams (Kitzbichler & White, 2006) • All-sky (depth of SDSS spectral sample)(Blaizot et al, 2005) • In preparation: Spectra for light cone galaxies

  11. FOF groups, (sub)halos and galaxies

  12. Millennium Simulation Phenomenology • Density field on 2563 mesh • CIC • Gaussian smoothed: 1.25,2.5,5,10 Mpc/h • Friends-of-Friends (FOF) groups • SUBFIND Subhalos • Galaxies from 2 semi-analytical models (SAMs) • MPA (L-Galaxies, DeLucia & Blaizot, 2006; Bertone et al 2007) • Durham (GalForm, Bower et al, 2006) • Subhalo and galaxy formation histories: merger trees • Mock catalogues on light-cone • Pencil beams (Kitzbichler & White, 2006) • All-sky (depth of SDSS spectral sample)(Blaizot et al, 2005) • In preparation: Spectra for light cone galaxies

  13. Time evolution: merger trees

  14. Millennium Simulation Phenomenology • Density field on 2563 mesh • CIC • Gaussian smoothed: 1.25,2.5,5,10 Mpc/h • Friends-of-Friends (FOF) groups • SUBFIND Subhalos • Galaxies from 2 semi-analytical models (SAMs) • MPA (L-Galaxies, DeLucia & Blaizot, 2006; Bertone et al 2007) • Durham (GalForm, Bower et al, 2006) • Subhalo and galaxy formation histories: merger trees • Mock catalogues on light-cone • Pencil beams (Kitzbichler & White, 2006) • All-sky (depth of SDSS spectral sample)(Blaizot et al, 2005) • In preparation: Spectra for light cone galaxies

  15. Mock catalogues

  16. Millennium Simulation Phenomenology • Density field on 2563 mesh • CIC • Gaussian smoothed: 1.25,2.5,5,10 Mpc/h • Friends-of-Friends (FOF) groups • SUBFIND Subhalos • Galaxies from 2 semi-analytical models (SAMs) • MPA (L-Galaxies, DeLucia & Blaizot, 2006; Bertone et al 2007) • Durham (GalForm, Bower et al, 2006) • Subhalo and galaxy formation histories: merger trees • Mock catalogues on light-cone • Pencil beams (Kitzbichler & White, 2006) • All-sky (depth of SDSS spectral sample)(Blaizot et al, 2005) • In preparation: Spectra for light cone galaxies

  17. Synthetic spectra (not yet available)

  18. Hierarchy of Data Products FOF Group Parent FOF group Subhalo Located in Density Field Mesh Cell Light Cone Galaxy SUBFIND result Located in original Subhalo MergerTree SAM Galaxy Merger Tree Parent halo Spectrum Tree relationships

  19. Designing the Database • Need a model for data, including relations between different objects • Model needs to support science: “20 questions” (following Gray & Szalay) • Return the galaxies residing in halos of mass between 10^13 and 10^14 solar masses. • Return the galaxy content at z=3 of the progenitors of a halo identified at z=0 • Return the complete halo merger tree for a halo identified at z=0 • Find all the z=3 progenitors of z=0 red ellipticals (i.e. B-V>0.8 B/T > 0.5) • Find the descendents at z=1 of all LBG's (i.e. galaxies with SFR>10 Msun/yr) at z=3 • Find all the z=2 galaxies which were within 1Mpc of a LBG (i.e. SFR>10Msun/yr) at some previous redshift. • Find the multiplicity function of halos depending on their environment (overdensity of density field smoothed on certain scale) • Find the dependency of halo properties on environment

  20. Data model features • Each object its table • properties are columns • each a unique identifier • Relations implemented through foreign keys, • pointers to unique identifier column • FOF to mesh cell it lies in • Sub-halo to its FOF group • galaxy to its sub-halo etc • Special design needed for • Hierarchical relations: merger trees • Spatial relations: multi-dimensional indexes required • Support for random sample selection

  21. Formation histories:Subhalo and Galaxy merger trees • Tree structure • halos have single descendant • halos have main progenitor • Hierarchical structures usually handled using recursive code • inefficient for data access • not (well) supported in RDBs • Tree indexes • depth first ordering of nodes defines identifier • pointer to last progenitor in subtree

  22. Merger trees : select prog.* from galaxies des , galaxies prog where des.galaxyId = 0 and prog.galaxyId between des.galaxyId and des.lastProgenitorId Branching points : select descendantId from galaxies des where descendantId != -1 group by descendantId having count(*) > 1

  23. Spatial queries, random samples • Spatial queries require multi-dimensional indexes. • (x,y,z) does not work: need discretisation • index on (ix,iy,iz) with ix=floor(x/10) etc • More sophisticated: space filling curves • bit-interleaving/oct-tree/Z-Index • Peano-Hilbert curve • Need custom functions for range queries (Implemented in T-SQL) • Random sampling using a RANDOM column • RANDOM from [0,1000000]

  24. The Millennium Database web site • SQLServer 2005 database • Web application (Java in Apache Tomcat web server) • portal: http://www.mpa-garching.mpg.de/millennium/ • public DB access: http://www.g-vo.org/Millennium • private access: http://www.g-vo.org/MyMillennium • MyDB • Access methods • browser with plotting capabilities through VOPlot applet • wget + IDL, R • TOPCAT (3.1)

  25. Usage statistics • Up since August 2006 (astro-ph/0608019) • ~225 registered users • > 5 million queries • > 40 billion rows • ~130 papers, ~50% not related to Virgo consortium (see http://www.mpa-garching.mpg.de/millennium )

  26. Some science questions and their implementation as SQL If time permits, in any case 1-1 demo possible.

  27. Find light cone galaxies in a slice in redshift, RA and Dec select ra,dec,redshift_obs from kitzbichler2006a_obs where redshift_obs between 1 and 1.1 and dec between -.05 and .0

  28. Color-magnitude for random sample of galaxies select mag_bdust , mag_bdust - mag_vdust as color , type from delucia2006a where snapnum=63 and random between 0 and 100 and mag_b < 0

  29. Get merger tree for identified galaxy select p.snapnum , p.x,p.y,p.z , p.stellarmass , p.mag_b-p.mag_v as color from delucia2006a d , delucia2006a p where d.galaxyid=0 and p.galaxyid between d.galaxyid and d.lastprogenitorid

  30. Histogram of density field at redshifts 0,1,2,3; Gaussian smoothing 5 Mpc/h select snapnum , .01*floor(f.g5/.01) as g5 , count(*) as num from mfield f where f.snapnum in (63,41,32,27) group by snapnum,.01*floor(f.g5/.01) order by 1,2

  31. FOF multiplicity function at redshifts 0,1,2,3, select snapnum , .1*floor(log10(np)/.1) as lognp , count(*) as num from fof where snapnum in (63,41,32,27) group by snapnum , .1*floor(log10(np)/.1) order by 1,2

  32. FOF mass multiplicity function, conditioned on density in environment select .1*floor(log10(fof.np)/.1) as lognp , count(*) as num from mfield f , fof where fof.snapnum=f.snapnum and fof.phkey = f.phkey and f.snapnum=63 and f.g5 between 1 and 1.1 group by .1*floor(log10(fof.np)/.1) order by 1

  33. Thank you !

More Related