Intro to SQL. Two components. Data Definition Language (DDL): create table, etc. Data Manipulation Language (DML):

Similar documents
Birth & Death of Stars

Stars and their properties: (Chapters 11 and 12)

AST 101 Introduction to Astronomy: Stars & Galaxies

Life Expectancies for Main Sequence Stars available fuel supply mass

Clicker Question: Clicker Question: What is the expected lifetime for a G2 star (one just like our Sun)?

Agenda for Ast 309N, Sep. 27. Measuring Masses from Binary Stars

Remember from Stefan-Boltzmann that 4 2 4

The Universe. is space and everything in it.

TA feedback forms are online!

Announcements. Lecture 11 Properties of Stars. App Bright = L / 4!d 2

My God, it s full of stars! AST 248

The physics of stars. A star begins simply as a roughly spherical ball of (mostly) hydrogen gas, responding only to gravity and it s own pressure.

Test #2 results. Grades posted in UNM Learn. Along with current grade in the class

How do we measure properties of a star? Today. Some Clicker Questions - #1. Some Clicker Questions - #1

NSCI 314 LIFE IN THE COSMOS

Life and Death of a Star. Chapters 20 and 21

The Night Sky. The Universe. The Celestial Sphere. Stars. Chapter 14

Structure of the Milky Way. Structure of the Milky Way. The Milky Way

Mass-Luminosity and Stellar Lifetimes WS

Ch. 25 In-Class Notes: Beyond Our Solar System

University of Naples Federico II, Academic Year Istituzioni di Astrofisica, read by prof. Massimo Capaccioli. Lecture 16

Color-Magnitude Diagram Lab Manual

The Hertzsprung-Russell Diagram

Chapters 12 and 13 Review: The Life Cycle and Death of Stars. How are stars born, and how do they die? 4/1/2009 Habbal Astro Lecture 27 1

The Milky Way Galaxy

A star is at a distance of 1.3 parsecs, what is its parallax?

Review Questions for the new topics that will be on the Final Exam

Astr 323: Extragalactic Astronomy and Cosmology. Spring Quarter 2014, University of Washington, Željko Ivezić. Lecture 1:

What tool do astronomers use to understand the evolution of stars?

ASTRONOMY 1 EXAM 3 a Name

Last time: looked at proton-proton chain to convert Hydrogen into Helium, releases energy.

Lecture 21 Formation of Stars November 15, 2017

The Sun - Size and Mass. Masses. Note: Most of solar system mass is in. Radii } } Densities

Universe Celestial Object Galaxy Solar System

Directed Reading A. Section: The Life Cycle of Stars TYPES OF STARS THE LIFE CYCLE OF SUNLIKE STARS A TOOL FOR STUDYING STARS.

Today. When does a star leave the main sequence?

L = 4 d 2 B p. 4. Which of the letters at right corresponds roughly to where one would find a red giant star on the Hertzsprung-Russell diagram?

L = 4 d 2 B p. 1. Which outer layer of the Sun has the highest temperature? A) Photosphere B) Corona C) Chromosphere D) Exosphere E) Thermosphere

Beyond Our Solar System Chapter 24

Life Cycle of a Star - Activities

Lifespan on the main sequence. Lecture 9: Post-main sequence evolution of stars. Evolution on the main sequence. Evolution after the main sequence

Chapter 14 The Milky Way Galaxy

Chapter 8: The Family of Stars

Review: HR Diagram. Label A, B, C respectively

Chapter 15 Surveying the Stars

1. Basic Properties of Stars

Distance Measuring Techniques and The Milky Way Galaxy

25.2 Stellar Evolution. By studying stars of different ages, astronomers have been able to piece together the evolution of a star.

Chapter 15 Surveying the Stars Properties of Stars

Chapter 15 Surveying the Stars. Properties of Stars. Parallax and Distance. Distances Luminosities Temperatures Radii Masses

OPEN CLUSTER PRELAB The first place to look for answers is in the lab script!

Chapter 15: Surveying the Stars

Selected Questions from Minute Papers. Outline - March 2, Stellar Properties. Stellar Properties Recap. Stellar properties recap

LIFE CYCLE OF A STAR

Number of Stars: 100 billion (10 11 ) Mass : 5 x Solar masses. Size of Disk: 100,000 Light Years (30 kpc)

10/26/ Star Birth. Chapter 13: Star Stuff. How do stars form? Star-Forming Clouds. Mass of a Star-Forming Cloud. Gravity Versus Pressure

AST 101 INTRODUCTION TO ASTRONOMY SPRING MIDTERM EXAM 2 TEST VERSION 1 ANSWERS

Late Stages of Stellar Evolution. Late Stages of Stellar Evolution

Evolution of Stars Population III: Population II: Population I:

Energy. mosquito lands on your arm = 1 erg. Firecracker = 5 x 10 9 ergs. 1 stick of dynamite = 2 x ergs. 1 ton of TNT = 4 x ergs

Exam #2 Review Sheet. Part #1 Clicker Questions

Announcement: Quiz Friday, Oct 31

The Cosmic Perspective. Surveying the Properties of Stars. Surveying the Stars. How do we measure stellar luminosities?

Chapter 12 Stellar Evolution

The Local Group of Galaxies

The magnitude system. ASTR320 Wednesday January 30, 2019

HR Diagram, Star Clusters, and Stellar Evolution

Chapter 11 Surveying the Stars

Chapter 11 Review. 1) Light from distant stars that must pass through dust arrives bluer than when it left its star. 1)

ASTR Midterm 1 Phil Armitage, Bruce Ferguson

Chapter 33 The History of a Star. Introduction. Radio telescopes allow us to look into the center of the galaxy. The milky way

Things to do 2/28/17. Topics for Today. C-N-O Fusion Cycle. Main sequence (MS) stars. ASTR 1040: Stars & Galaxies

Review of stellar evolution and color-magnitude diagrams

The Life Histories of Stars I. Birth and Violent Lives

Project for Observational Astronomy 2017/2018: Colour-magnitude diagram of an open cluster

Low-mass Stellar Evolution

The Ecology of Stars

SEQUENCING THE STARS

The Electromagnetic Spectrum

AST 101 Introduction to Astronomy: Stars & Galaxies

Chapter 15 Lecture. The Cosmic Perspective Seventh Edition. Surveying the Stars Pearson Education, Inc.

Stellar Evolution Notes

Chapter 12 Stellar Evolution

Stellar Evolution. Stars are chemical factories The Earth and all life on the Earth are made of elements forged in stars

Astronomy 201: Cosmology, Fall Professor Edward Olszewski and Charles Kilpatrick

What is a star? A body of gases that gives off tremendous amounts of energy in the form of light & heat. What star is closest to the earth?

LIFE CYCLE OF A STAR

Chapter 28 Stars and Their Characteristics

Galaxy classification

Astro Fall 2012 Lecture 8. T. Howard

Magnitudes. How Powerful Are the Stars? Luminosities of Different Stars

A Star Becomes a Star

Exam # 3 Tue 12/06/2011 Astronomy 100/190Y Exploring the Universe Fall 11 Instructor: Daniela Calzetti

Cosmology, Galaxies, and Stars OUR VISIBLE UNIVERSE

Life of a Star. Pillars of Creation

Life Cycle of a Star Worksheet

Project for Observational Astronomy 2018/2019: Colour-magnitude diagram of an open cluster

Heading for death. q q

29:50 Stars, Galaxies, and the Universe Second Hour Exam November 10, 2010 Form A

( ) = 5log pc NAME: OPEN CLUSTER PRELAB

Transcription:

Intro to SQL Two components Data Definition Language (DDL): create table, etc. Data Manipulation Language (DML): select, insert, delete, update, etc.

The basic SELECT statement: Select From Where A1, A2,...AN R1, R2,...RN condition

The basic SELECT statement: 3 1 2 Select From Where A1, A2,...AN R1, R2,...RN condition

The basic SELECT statement: 3 Select A1, A2,...AN what to return 1 From R1, R2,...RN relations 2 Where condition combine/filter

The basic SELECT statement: SELECT s.ra, s.dec, s.psfmag_g-s.extinction_g as g, s.psfmag_rs.extinction_r as r, s.psfmag_i-s.extinction_i as i, pm.pmra, pm.pmdec, pm.pmraerr, pm.pmdecerr FROM star as s JOIN propermotions as pm ON s.objid = pm.objid WHERE s.ra BETWEEN 225.6 AND 225.8 and s.dec BETWEEN -2.0 and -1.8 AND CLEAN=1 AND s.psfmag_r <22 Load query into DR9 server show SELECT count(*) show check syntax and retrieval options show clean photometry query

relevant URL s from previous page: http://skyserver.sdss3.org/dr9/en/tools/search/sql.asp http://skyserver.sdss3.org/dr9/en/help/docs/ realquery.asp#cleanstars

Flags & Bitmasks One thing that's important to fully exploit the SDSS database is a good understanding of bitmasks. A bitmask uses the bits in an integer as "toggles" to indicate whether certain conditions are met. http://www.sdss3.org/dr10/algorithms/bitmasks.php

Binary, decimal, hexadecimal... What?? https://www.youtube.com/watch?v=tfy8yublnkc Go back to bitmasks page and show search with flags again.

Science Interlude: Stellar Evolution and CMDs CMD = Color-Magnitude Diagram (Color vs. Mag) Magnitude 10Msun Main Sequence Sun HR = Herzberg-Russell Diagram (Temp vs. Luminosity) When stars form there are a small number of high mass stars, and a large number of low mass stars. 0.1Msun Color/Temperature

Magnitudes, Luminosity and Fluxes An astronomical source gives off a certain number of photons (per second per wavelength) which we will call its luminosity, L. The flux we measure from a source depends on its distance: F = L 4 d 2 In the radio, fluxes are typically measured in Janskys, where: 1 Jansky = 10-26 watts / square meter / Hertz Optical and infrared astronomers quantify the brightness of an object using the magnitude system, which is the proportional to the logarithm of flux. Magnitudes are define as: m = 2.5 * log10(f) + 2.5*log10(F0) where 2.5*log10(F0) depends on the photometric system.

Dotter et al. (2011) Colors are defined as the ratio of fluxes, equivalently, the difference between magnitudes, e.g., V - I The star Sirius has an apparent magnitude mv = V = -1.4 The faintest stars observed with HST have apparent magnitudes V ~ 30.

The Magnitude System In addition to the UBVRI photometric system, the SDSS system is also widely used (ugriz): It is possible to transform between photometric systems.

Apparent versus Absolute Magnitude The observed flux of an object depends on its distance from us (F = L / 4*pi*d 2 ). Thus, when we observe an object, we are measuring its apparent magnitude (mv or V, mg or g) The absolute magnitude of an object (MV, Mg, etc.) is related to its total luminosity. Absolute magnitude is defined to be M = m when an object is placed at 10 parsecs (10 pc). In PS#2, you will show that: M = m + 5 + 5*log10(d) where d is distance in units of parsecs

Science Interlude: Stellar Evolution Stars form out of clouds of gas. Out of a single gas cloud, many stars are born at a single time: -> lots of small mass stars -> handful of massive stars Stellar birth is clustered.

1kpc = 3 x 10^19 m ~ 3300 ly Can we find traces of such events in our Local Group? Milky Way halo GC s bulge disk 8 kpc open clusters halo ~200 kpc 05.03.2007 Sun 25 kpc Sagittarius Magellanic Clouds Mürren - Saas-Fee-Course - E.K. Grebel 2MASS infrared 31 image

Science Interlude: Color Magnitude Diagrams several 1000 stars The Pleiades

~million stars M80

Science Interlude: Color Magnitude Diagrams M13 12 Billion years old Chemical abundance similar to early universe 100 million years old Chemical abundance similar to Sun. Significant binary star fraction

Stellar Evolution 10Msun Out of a single gas cloud, many stars are born at a single time: -> lots of small mass stars -> handful of massive stars Mass Main Sequence Sun Highest mass star ~100Msun, limit for fragmentation? 0.1Msun Lowest mass star 0.08Msun, limit for nuclear burning. Temperature

Stellar Evolution gravity pulls in While a star is on the main sequence, it is in equilibrium. Gravity balances pressure. pressure pushes out Pressure comes from heat generated by nuclear fusion in star s core. More massive stars therefore must have a higher pressure/ temperature in their core, in order to maintain equilibrium.

The Sun s Lifetime The Sun formed 4 billion years ago, and will live for another 4 billion years. Sun is born Now Sun runs out of hydrogen fuel White dwarf forms

The Sun s Lifetime At very end of evolution, outer region expands and disappears. Inner region shrinks, white dwarf left behind. white dwarf

Stellar Evolution Stars are ~black bodies, i.e., in thermal equilibrium.the radiation has a specific spectrum and intensity that depends only on the temperature of the body.

Stellar Evolution More massive stars must have a higher temperature to maintain equilibrium. Stars are approximately black-bodies, thus hotter stars are also bluer. Along the main sequence, temperature, T, and luminosity, L, are related: L T 4 L M 3.5

Stellar Evolution - Lifetimes How does stellar mass relate to a star s lifetime? The total energy released by a star in its lifetime is, E total : E total = L * time Nuclear fusion is turning mass into energy, which means E total = eff * M c 2 Using the relationship between L and M on the main sequence: t M 2.5 Massive star lifetimes are much shorter than lower mass stars.

Stellar Evolution Magnitude/Mass 10Msun Sun 0.1Msun 10-100 million years (very short lifetime) 2-8 billion years 10-100 billion years (longer than age of Universe) Color/Temperature

Stellar Evolution Magnitude/Mass 10Msun Sun How does Sun s post-main sequence evolution appear in color-magnitude space? 0.1Msun Color/Temperature

Stellar Evolution If stars of all masses form at same time, can determine age by noting which stars are just evolving off of the main sequence. Composite CMD for open star clusters in the Milky Way

Science Interlude: Color Magnitude Diagrams HB = Horizontal Branch RGB = Red Giant Branch MS = main sequence MS WD = White Dwarfs 12 Billion years old Chemical abundance similar to early universe 100 million years old Chemical abundance similar to Sun. Significant binary star fraction