multidworlds / eigenspectra

Eigenspectra
MIT License
0 stars 5 forks source link

Get STARRY working on everyone's computers #45

Closed meganmansfield closed 5 years ago

jlustigy commented 5 years ago

I have no problem running starry on my personal computer and have verified that our code that uses starry works on other computers. It would be helpful for each of you who still have issues running the code to try the following steps:

  1. Install starry (preferably using conda-forge): conda config --add channels conda-forge conda install starry
  2. Generate hot spot eclipse light curves using starry:
    
    # From the eigenspectra top-most directory:

Import the code used to generate the eclipse lightcurves

from gen_lightcurves import *

Get the high-res wavelength grid and pixel spectra (spaxels)

lamhr, spaxels = prep_spectral_hotspot_map()

Generate the multi-wavelength eclipse lightcurves using starry

time, lam, dlam, lcurves = create_lightcurves_with_starry(lamhr, spaxels, plot_lightcurves = False, plot_diagnostic = False)


And that should do it! 

**Please respond to this thread if you experience problems running this test.** 

If you run the above code with `plot_lightcurves = True`, you should get the following plot:

<img width="1087" alt="lcs" src="https://user-images.githubusercontent.com/8882466/53458076-813e0780-39e9-11e9-8d6a-b9cffe485c71.png">

And if you use `plot_diagnostic = True`: 

<img width="1049" alt="fpfs" src="https://user-images.githubusercontent.com/8882466/53458094-99158b80-39e9-11e9-9108-3e5d82214d49.png">
meganmansfield commented 5 years ago

I just tried this and it works fine on my computer now! Thanks for the fix!

jlustigy commented 5 years ago

Woot! Glad to hear it 👍

rodluger commented 5 years ago

🎉🎉🎉🎉

On Thu, Mar 7, 2019 at 1:18 PM Jacob Lustig-Yaeger notifications@github.com wrote:

Woot! Glad to hear it 👍

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/multidworlds/eigenspectra/issues/45#issuecomment-470698093, or mute the thread https://github.com/notifications/unsubscribe-auth/AI5FK6GsctifxCSI6qSUQEWYrBtN61k7ks5vUYIKgaJpZM4bDKWJ .