-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from MingjieJian/develop
docs(driver_guide): renew ordinary driver_guide
- Loading branch information
Showing
8 changed files
with
100 additions
and
56 deletions.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# binary | ||
|
||
```py | ||
b = pymoog.binary.binary([[5777, 4, 0], [5777, 2, 0]], 10540, 10600, 50000, line_list='vald_3000_24000') | ||
b.prepare_file(deltaradvel=10.5, lumratio=1) | ||
b.run_moog() | ||
b.read_spectra() | ||
``` | ||
|
||
Using `plt.plot(b.wav, b.flux)`: |
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# blends: force-fitting abundances to match blended-line equivalent widths | ||
|
||
Blends driver fit the EW of a feature as a whole, only varing the abunance specified. | ||
The following example shows a fitting of Fe abundance of the feature from 10817.7 to 10818.9A, with an observed EW of 80mA. | ||
The following example shows a fitting of Fe abundance of the feature from 8002.076 to 8003.076A, with an observed EW of 38.76mA. | ||
|
||
```py | ||
b = pymoog.blends.blends(5000, 4.0, 0, 10817.7, 10818.9, 80, 26, line_list='vald_3000_24000') | ||
b = pymoog.blends.blends(5777, 4.0, 0, 8002.576-0.5, 8002.576+0.5, 38.76, 26) | ||
b.prepare_file() | ||
b.run_moog() | ||
b.read_output() | ||
b.blends_s_df | ||
``` | ||
|
||
The result is sotred in `b.blends_s_df`: | ||
|
||
```py | ||
wavelength ID EP logGF EWin logRWin abund delavg | ||
0 10818.275 26.0 3.96 -1.948 80.0 -5.131 7.325 0.0 | ||
wavelength ID EP logGF EWin logRWin abund delavg | ||
0 8002.576 26.0 4.58 -1.618 38.76 -5.315 7.706 0.0 | ||
``` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.