How to write a light curve to a file? #483
Replies: 4 comments 6 replies
-
Hi John, There is an export_arrays method for this wrapped around np.savetxt. For example:
If that isn't flexible enough for the formatting you need, you can always access the individual arrays in the synthetic model and write them to a file manually:
You're right, though, this isn't currently covered in any of the tutorials. I'll give some thought where to sneak this in so that its easier to find in the future (although surprisingly it doesn't seem that its something many people try to do, so far). Thanks!
|
Beta Was this translation helpful? Give feedback.
-
hellow sir how i can inpute data in phoebe program version 0.30 |
Beta Was this translation helpful? Give feedback.
-
Hi,sir.I am new here.How can I input kepler's data into the phoebe 2.4 ? It would be better if there was an example. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to directly obtain/export the phases instead of times? At least naively changing 'times' by 'phases' or adding x='phases' doesn't work for me. PS: Please let me know if it's better to open a new discussion instead of commenting on old ones. |
Beta Was this translation helpful? Give feedback.
-
I have a nice light curve I'd like to model, and I'm finding I'm flummoxed by a simple procedural issue.
The tutorials generally end with a nice matplotlib plot, or animation. What I'd like to do is instead write the modeled light curve to a flle so that I can use other tools to compare it to the data and generate a plot for publication. I didn't see a clear way to do this -- can anyone enlighten me?
If it should matter, my usual workflow is not to use notebooks, but rather to write python scripts with a text editor and run them from the command line.
I suppose this could be interpreted as a plea for more elementary documentation!
Thanks - John Thorstensen
Beta Was this translation helpful? Give feedback.
All reactions