-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding PARSEC/COLIBRI + MIST stellar model support #60
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,4 +134,3 @@ def compute_metallicity_prior_weights(mets): | |
met_weights = np.full(len(mets),1.0) | ||
|
||
return met_weights | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
EZMIST -- A python package that allows you to download MIST/MESA isochrones directly from their website | ||
======================================================================================================= | ||
|
||
|
||
This small package provides a direct interface to the MIST/MESA isochrone | ||
webpage (http://waps.cfa.harvard.edu/MIST). | ||
It compiles the URL needed to query the website and retrives the data into a | ||
python variable. | ||
|
||
This package has been tested on python 2.7 and python 3. | ||
|
||
:version: 1 | ||
:author: MF | ||
|
||
(this package is similar to EzPadova: https://github.com/mfouesneau/ezpadova) | ||
|
||
|
||
EXAMPLE USAGE | ||
------------- | ||
|
||
* Basic example of downloading a sequence of isochrones, plotting, saving | ||
```python | ||
>>> r = ezmist.get_t_isochrones(6.0, 7.0, 0.05, FeH_value=0.0, theory_output='full') | ||
>>> import pylab as plt | ||
>>> plt.scatter(r['logT'], r['logL'], c=r['logA'], edgecolor='None') | ||
>>> plt.show() | ||
>>> r.write('myiso.fits') | ||
``` | ||
|
||
Note: MIST isochrone metallicities are defined in terms of [Fe/H] (not Z) | ||
|
||
* getting only one isochrone | ||
```python | ||
>>> r = ezmist.get_one_isochrones(1e7, 0.0, age_scale='linear') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .mist import get_one_isochrone, get_t_isochrones |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"version": [1.0], | ||
"url": "http://waps.cfa.harvard.edu/MIST/interp_isos.html", | ||
"request_url": "http://waps.cfa.harvard.edu/MIST/iso_form.php", | ||
"download_url": "http://waps.cfa.harvard.edu/MIST/", | ||
"query_options": ["version", "v_div_vcrit", "age_scale", "age_value", "age_range_low", | ||
"age_range_high", "age_range_delta", "age_list", "age_type", | ||
"FeH_value", "output_option", "theory_output", "output", "Av_value"], | ||
"v_div_vcrit": ["vvcrit0.4", "vvcrit0.0"], | ||
"age_scale": ["linear", "log10"], | ||
"age_type": ["single", "range", "list", "standard"], | ||
"age_value": "1.0", | ||
"age_range_low": 5, | ||
"age_range_high": 10.3, | ||
"age_range_delta": 0.1, | ||
"age_list": "", | ||
"FeH_value": 0, | ||
"output_option": ["theory", "photometry"], | ||
"theory_output": ["basic", "full"], | ||
"output": [ | ||
["UBVRIJHKsKp", "UBVRI + 2MASS JHKs + Kepler"], | ||
["WashDDOuvby", "Washington + Strömgren + DDO51"], | ||
["HST_WFC3", "HST WFC3/UVIS+IR"], | ||
["HST_ACS_HR", "HST ACS/HRC"], | ||
["HST_ACS_WF", "HST ACS/WFC"], | ||
["HST_WFPC2", "HST WFPC2"], | ||
["SDSSugriz", "SDSS"], | ||
["CFHTugriz", "CFHT/MegaCam"], | ||
["DECam", "DECam"], | ||
["PanSTARRS", "PanSTARRS"], | ||
["SkyMapper", "SkyMapper"], | ||
["SPITZER", "Spitzer IRAC "], | ||
["WISE", "WISE"], | ||
["Swift", "Swift"], | ||
["GALEX", "GALEX"], | ||
["UKIDSS", "UKIDSS"] | ||
], | ||
"Av_value": 0, | ||
"defaults": { | ||
"version": 1.0, | ||
"v_div_vcrit": "vvcrit0.0", | ||
"age_scale": "log10", | ||
"age_type": "standard", | ||
"output_option": "theory", | ||
"theory_output": "basic", | ||
"output": "UBVRIJHKsKp", | ||
"FeH_value": 0, | ||
"Av_value": 0 | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comes from Yumi's needs. It filters out PMS data points. Maybe moving that back into the PadovaWeb class as an option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this cut back into PadovaWeb, in
_filter_iso_points()
, but have all cuts commented out. I need to enable keyword passing (filterPMS
&filterBad
boolean variables) to this function so that these cuts can be optionally applied.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just document the filter function and remove the
_
in front (that indicates private/don't use by convention). The important part is to tell Yumi too. It makes sense that you don't want it to be generic for all projects.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think filtering PMS leaves as an option is a good idea.