Samstag, 22. Dezember 2018

YSO selection for SDSS-V

Towards defining YSOs targets for SDSS-V

Science goals:

Previous post, dealt with identifying samples of stars that are massive (>5M_sun). I'd like to explore what can be done interms of an "algorithmic, all-sky" sample definition for (lower-mass) YSOs.

YSO's can be discerned by (any combination of) the following observational properties:
1)  their SEDs (0.5-20mum) are not-just-a-simple-photosphere (..disks, accretion, etc..)
2)  they lie off the(ir) main sequence
3)  many (most?) of them show some flux variability
4)  they are clustered in position and velocity space.
5)  dominant selection contaminants are dust-reddened giants of various sorts.


To start, I took a simple stab at combining the aspects 1), 3) 5)  Basically, I tried to find the objects that have YSO-like WISE colors (i.e. W1-W2 significantly > 0), that vary on year-timescales by a > few percent, and are within 5kpc (to cut out background). 
What I do requires some detection in Gaia (for starters I took G<18);
this clearly will miss seriously embedded sources.

This approach uses two aspects of Gaia that are perhaps non-obvious:
-- already now, Gaia is a high-precision, all-sky variability survey: 
    at the moment one gets only the rmsvariability amplitude
    on timescales of a year, encoded in variability == sqrt(N_obs)*flux_error/flux 
    (needs correction at the faint end).
-- and while the parallax measurements for such WISE-color-selected samples 
   will be insignificant for much of the sample,  plx/plx_error < 1, this is still very   
 informative: e.g. at plx_error < 0.2mas, plx/plx_error < 1 means you are NOT nearby.

Having said that, I queried GaiaDR2 x WISE for  
 variability>0.05mag,W1-W2>0.2Gaia_G<18  and no astrometry flags.
When plotted in WISE color space (excising bad W1 and W2 photometry, 
left-nad panel)  this selection yields 26.000 objects:

Stars selected by variability>0.05mag,W1-W2>0.2Gaia_G<18
These stars have an interesting distribution in variability amplitude.

Then I sub-select the objects that lie within 5kpc from the Sun (at least at >1sigma confidence),
i.e. parallax - parallax_error > 0.2mas; this is eliminate background; indeed, this cleans the large majority of objects, leaving only slightly over 5000.  In WISE color space,  this leaves a distinct population (the blob around (1.7,0.6):

Subsample from above, selected to be within 5kpc

If I then plot the objects surviving this simple procedure on the sky they look pleasing to my eye
(color-coding is the distance ), when trying isolate a sample of YSO within 5kpc:

This is the on-sky distribution of the stars, selected as above, color-coded by distance.
with a zoom-in on the Orion region (different distance color-scheme)



What seems good to me is:
1) the prominent nearby SF regions are there;
2) there is no apparent bulge/disk contamination;
3) the parallaxes indicate little contamination (i.e. patches in (l,b) have very similar parallaxes); note
that except for requiring parallax - parallax_error > 0.2mas, parallaxes have not entered the selection.

The query that created the sample is:

SELECT * , sqrt(g.phot_g_n_obs)/g.phot_g_mean_flux_over_error as variability
FROM gaiadr2.gaia_source AS g
INNER JOIN gaiadr2.allwise_best_neighbour as xaw
    ON xaw.source_id = g.source_id
INNER JOIN gaiadr1.allwise_original_valid as allwise
    ON xaw.allwise_oid = allwise.allwise_oid
WHERE
g.phot_g_mean_mag < 18  /* magnitude cut, so that variability at 0.05mag can be established */
and
sqrt(g.phot_g_n_obs)/g.phot_g_mean_flux_over_error > 0.05/* variability selection rms > 0.05mag */
and
sqrt( g.astrometric_chi2_al / ( g.astrometric_n_good_obs_al - 5)) < 2. /* weed out bad astrometry */
and
allwise.w1mpro - allwise.w2mpro > 0.25  /* stay away from the boring-star-locus in WISE */
and
g.parallax - g.parallax_error > 0.2  /* stars that are within 5kpc; to weed out background */

Comments in blue must be removed before the query runs

[I did do poor-WISE-photometry-cleaning afterwards]
The resulting output file can be found at:
https://www.dropbox.com/s/1ylqx7c9f4kmkbd/YSO_subset_v2_of_var%3E0.05%3EW1-W2%3E0.25.fits?dl=0

Next steps and action items for the working group:

Obvious limitations:

By construction, the above procedure only selects YSOs with W1-W2>0.25 and G-band variability > 0.05mag, and G<18; i.e. YSOs that do not show significant "W2 excess" and lie near the normal stellar locus, and those that don't vary (by 0.05mag) will not be captured; and those
with Gaia-G > 18. The first aspect means that Class-III objects and more mature PMS phases (sorry about the term) will be missed; the second aspect means severely reddened Class 0 objects will also be absent. This may, will and can lead to an augmentation of the above query.

For such objects, their variability and their position in the CMD must play a larger role; I have started to explore this, and will post next.

Verification steps:

-- do known YSOs, whose established measurements should satisfy the above criteria, show up in the sample? Does the query pick what it purports to. I.e. what falls through the cracks because of crowding, but would still make a good fiber target?
-- what is the overlap/mismatch with established catalogs?
-- can we use existing spectral surveys (incl. SDSS-IV) to verify the purity of the selection?


Sonntag, 16. Dezember 2018

Orbits and abundance patterns, based on many-abundance LAMOST DR4 (Maosheng Xiang)

Starting point:

The GALAH-label-transferred LAMOST DR4 data set is the (by far?) largest set of stars in the Milky Way with multi-element abundance information. [Of course, only to the extent that the labels can be trusted; see previous post]

Johanna Coronado has augmented this sample of >5M objects with action estimates she did that primarily to look at the correlation of abundances and detailed orbit structure in the Solar neighbourhood. But the sample should also be very good to look at the non-disk components of the MW. In particular, the population of 'inner halo' stars in very radial orbits (sausage, Enceladus, PEM=presumed-early-merger) bear a closer look. This is something that Yua-Sen Ting and Maosheng Xiang may want to pursue as an 'application of the data set'.

All subsequent points were done using a) a sample of 'giants' and b) 'MS stars', just to get at least one test on abundance-robustnes..

First glance intriguing results

Here are some issues to follow-up:
I isolated the set of "stars on slightly-counter-rotating, radial orbits", by picking all stars with
-0.4 < "Lz" < 0.1, where Lz is the normalized angular momentum "Lz" == Lz / (8kpc * 220 km/s);
and asking that these stars are at the same time on highly radial orbits,  sqrt("JR")>0.6, where
"JR" == J_R / (8kpc * 220 km/s).



If we look at the abundance abundance distributions of (only) these radial-orbit 'halo' stars (about 8500 giants, and 6500 MS stars), we find (always "radial orbits" first, then "all orbits").

For Magnesium:















For Manganese



 

For Aluminum:






For Europium (can we believe LAMOST from-GALAH-label-transferred Eu?)






in every case, the stars on highly radial orbits are just one striking feature of the overall abundance distribution.





The 'halo' below FeH<-2 looks different; but (see last post) we need to see whether this is an artifact of the abundance analysis.

Next steps 

These plots bring up many questions:
  1. Is the "tight" abundance feature -2<FeH<-0.7 a consequence of the label-transfer? E.g. if there are only 20 GALA stars in that regime that show no [X/Fe]-spred, then this is what we expect.  
  2. Do we now have a large-sample, many-abundance handle of Sausage/Gaia-Enceladus? How much larger is this sample than others? 
  3. Do the abundance trends that we see make astrophysical sense (esp. in the context of the trends expected for a mid-sized satellite galaxy)?
  4. The plots for dwarfs look analogous, but do not extend below FeH<-1.4. HWR suspects that this is because there are no very metal poor MS stars in the label-transfer training sample.

verifying the label-transfer GALA --> LAMOST DR4

Starting point

Maosheng Xiang und Sven Buder identified a GALAH DR2 - LAMOST DR4 overlap sample that allowed to attempt a many-label transfer, using Yuan-Sen Ting's data-driven, physical-prior-constrained Cannon-Payne hybrid. That resulted in 6.3M LAMOST objects with assigned labels:

Initial diagnostic plots

HWR made some initial plots, that basically showed that 
  1. in many cases everything looks plausible
  2. there many spectra where the assigned labels (even the stellar parameters) must be spurious, for a number of reasons. The two main ones are:
    1. there are LAMOST data problems, such as 'no blue spectra', etc...
    2. Action on Maosheng: put a flag on all objects, where there are serious data problems the labels fall outside of the training range. This is illustrated here (6.3M LAMOST labels in grey; training set as colored dots)

    The immediate reaction is to restrict all subsequent science analyses for the time being toobjects that fall within the training range.  [Neige Frankel raised the important point that not all LAMOST objects whose labels fall within the training range, have 'true' labels within that range'.  This may be illustrated with the following diagnostic plot from the low-metallicity regime:
    Seemingly, most giants with FeH<-2 have poor chi2; possibly because the label-transfer interpolator cannot predict spectra well that are essentially featureless. That brings up instantly the question of whether the poor chi2 at FeH<-2  systematically distort their FeH estimates

Next Steps

On the verification, most of the next steps are actions on Maosheng. Those steps include:
  1. describe how (before the label transfer was done) the input labels were pushed to the isochrones, using Gaia information. Was that done? Is the approach published, else sketch it.
  2. devise and implement the flagging (or excising) of 
    1. 'bad data'
    2. find algorithmic ways to identify spectra, whose label estimates may be distorted as a consequence of label-transfer extrapolation. There may be two ways: either split the training sample in half, and then make two predictions for extrapolated objects (i.e. pseudo-crossvalidation beyond the training set regime), ask how consistent the estimates are; or use chi2, which works in some ways, as this plots shows [color = log(chi2)?]

  3. Think about enlarging the training set. Specific proposal include:
    1. boost the overlap sample, e.g. by requiring that only logg,Teff,FeH,MgFe,(a 'few' others) are well-measured in GALAH
    2. Augment the training sample by synthetic, ab initio spectra (conceptually troubling, eh?), especially in the regime of hot stars (Kurucz Atlas models) or very metal poor stars FeH<-2 (see issue above.)
    3. Think about where we can get training labels of very cool MS stars (<4200K) from 

Samstag, 8. Dezember 2018

color-selection of OB stars


How to get a simple query criterion to select massive stars in SDSS-V?

Approach:

Find a locus in color-color space that contains hot stars (reddened by different amounts);

Then use Gaia parallax information (NOT: good parallaxes) to weed out all stars in this
color-color-locus that are inconsistent with being luminous (absK<0), or too faint to
be SDSS-V observable mH<12.

At the end, we need to see how complete and contaminated such a sample is.


Starting point: 


take a sample of W1mag-luminous stars from GDR2 x ALLWISE (courtesy Alcione Mora)
(all stars absW1 < -2, or so) and look at them in some color-color space. Below, the Y-axis is chosen to be constant under reddening.








There is a distinct 'plume' in the bottom left, which is (conjecture) reddened blue (massive, luminous) stars, while the mass of objects around (4,0.4) is luminous giants, AGB stars etc.. This is verified by comparison with the literature catalog of Galactic OB stars https://heasarc.gsfc.nasa.gov/w3browse/all/galobstars.html (green points).

Possible Implementation:


We must not rely on "good parallaxes" in any query (as they are usually not available); instead we query on sensible initial 2MASS colors, and only existence in the Gaia catalog (G<21), nothing else


SELECT        g.source_id,g.ra,g.dec,g.l,g.b,g.parallax,g.parallax_error,g.pmra,g.pmra_error,g.pmdec,
              g.pmdec_error,g.astrometric_n_good_obs_al,g.astrometric_excess_noise,g.astrometric_chi2_al
              ,g.phot_g_mean_mag,g.phot_bp_mean_mag,g.phot_rp_mean_mag,g.phot_variable_flag,g.teff_val,g.a_g_val,
         tm.j_m,tm.j_msigcom,tm.h_m,tm.h_msigcom,tm.ks_m,tm.ks_msigcom,g.phot_g_mean_mag - tm.h_m AS g_min_h 
FROM gaiadr2.gaia_source AS g
INNER JOIN gaiadr1.tmass_best_neighbour AS xmatch
ON g.source_id = xmatch.source_id
INNER JOIN gaiadr1.tmass_original_valid AS tm
ON tm.tmass_oid = xmatch.tmass_oid
WHERE  b between -15 and 15
and
tm.h_m - tm.ks_m -0.48*(tm.j_m - tm.h_m) between -0.12 and 0.5
and 
tm.j_m - tm.h_m < 0.8
and
tm.h_m < 12.5


This yields (in an analogous color-color) plot a hint of bimodality (with hot stars bottom left plume, again) ...  but these distributions (1.7M stars) are mushy.



We now excise all stars where Gaia information tells us that they are inconsistent (at say 1 sigma) with being luminous, absK< 0, (i.e. OB stars) (After 7Myears, H<0 corresponds to M>5M_sun; Padova isochrones, is that correct?). Effectively this does a ``forground clean".
kmag + 5log10(parallax+parallax_error)-10 < 0. This leaves 0.6M stars (i.e. 1.1M stars excised).
Note again that Gaia only comes in in two ways:
-- there must be some detection (G<21-ish)
-- and Gaia parallax measurement (however 'lousy') must not be inconsistent with this being a luminous star.



This yields a nice hot-stars r-- red giant/AGB bimodality; showing that the color-color locus of reddened hot stars is distinct from that of RGB, RC, AGB etc. stars. This is illustrated again by comparison with literature OB stars (reference above)


Taking the lower part of this bimodal distribution leaves ~75k candidates M>5M_sun and m_H<12.5; they are very much concentrated to the Galactic plane; the stripy pattern is Gaia scanning law....
Data at: https://www.dropbox.com/s/ogxmtxag05slkeg/initial_JHK_color_cut_consistent_with_K%3C0_J-H-W1_color_cut.fits?dl=0




Clearly all this needs verification, clean up etc.. but that's what I mean by algorithmic selection.

A few notes:
-- need to check how good or bad this initial strawman selection is
-- this could be done in a single query
-- we should understand why the bluest stars from the literature are being missed (Rigel too bright etc..)
-- the bimodality-based sample-selection should not be done by hand as here
-- when challenged, I could do the same for low-mass young stars; but I leave this to experts.





Dienstag, 14. August 2018

Identifying RC stars in Gaia data, and making 3D or 6D maps with them



From YST: can you remind me how do you infer the distance modulus is phot_g_mean_mag+1.27-1.5*bp_rp ? I always thought distance modulus is apparent - absolute magnitude. In other words, why 1.27-1.5*bp_rp is a good approximation for g band absolute magnitude?
Qualitatively, this is based on the fact that RC stars are remarkably good standard candles
in the near IR, say W1. Then you can ask, can I predict the W1 apparent magnitude from
phot_g_mean_mag and bp_rp, combining the effects of effective temperature spread
and reddening: and phot_g_mean_mag -1.5*bp_rp+ const. is the answer.

Then operationally you can take the RCs in APOGEE (which have a range of temperatures
and reddenings, and [Fe/H]..) and ask

what constant (and what bp_rp slope) to I need to predict the parallax (not the distance)
for the whole sample:
varpi_predicted = 10^ (  -(phot_g_mean_mag -a * bp_rp + b  - 10)/5)
and solve for a and b in a chi2 sense (varpi_obs - varpi_predicted)

Then you can go to clusters etc.. and ask whether there are any Teff,[Fe/H] residuals,
which there seem to be none at the 1% level...

Donnerstag, 2. August 2018

Notes on transformation to Galactocentric restframe

What's the best way to transform to Galactocentric restframe?
We have new pieces of information:
8122pc
proper motion of Sgr A*
we are 25pc above plane (Juric)
and we have radial velocity constraints\

Do we want to write/publish a note on this?

Freitag, 27. Juli 2018

Enceladus shells

Just a note: Helmi is interested in locating Enceladus shells, using RR Lyra.
Plan is to make plots in R_GC and look for peaks in p(R_GC) at low v_tan